[cfe-dev] FW: GSL compiles pretty much

Kelly Wilson wilsonkk at shaw.ca
Tue Jul 1 22:49:50 PDT 2008


Didn't notice this was only sent to Eli.


-----Original Message-----
From: Kelly Wilson [mailto:wilsonkk at shaw.ca] 
Sent: Tuesday, July 01, 2008 11:15 PM
To: 'Eli Friedman'
Subject: RE: [cfe-dev] GSL compiles pretty much

Hey Eli,

I found that the -O2 flag in the Makefile which makes the compilation of GSL
fail is actually being passed to llvm-ld not ccc. If you set CFLAGS so that
no -O2 argument is passed in (and -lm is), then things work. I am not sure
why -lm is not being included by the configure script but it is easy to pass
in, as well.

Just type: export CFLAGS='-g'; export LDFLAGS='-lm'; ./configure

in the gsl-1.11 directory (this is for the bash shell with debugging) and
everything compiles out of the box. I am just being explicit here for new
users ;)

There are still a couple errors when doing a 'make check' but I will open a
new thread for them, when I investigate. Seems like some rounding errors and
a couple complex number errors to start :(


-----Original Message-----
From: Eli Friedman [mailto:eli.friedman at gmail.com] 
Sent: Sunday, June 29, 2008 10:58 AM
To: Kelly Wilson
Cc: cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] GSL compiles pretty much

> regarding constants but one can fix this by
> removing leading zeros for a couple lines. I also hand modified the
> Makefiles to get rid of the '-O2' flag and added the '-lm' linker flag
> could also just pass this in via configure, I guess).

You shouldn't need to mess with that... maybe a bug in ccc?


More information about the cfe-dev mailing list