[cfe-dev] GSL compiles pretty much

Eli Friedman eli.friedman at gmail.com
Sun Jun 29 09:58:14 PDT 2008


On Sun, Jun 29, 2008 at 1:01 AM, Kelly Wilson <wilsonkk at shaw.ca> wrote:
> There are some errors in landau.c (known clang error
> in constants.c for the lexer)

What's the bug number in Bugzilla?

> 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 (one
> could also just pass this in via configure, I guess).

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

> The library builds until the gsl-randist tool in the main directory is
> building, then I get 'undefined reference to __builtin_nanf' all over the
> place. I thought this was defined internally within LLVM? Any ideas?

It's a gcc builtin, so it has to be implemented in clang.  There's a
patch for this at
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-May/001744.html, which
was never finished.

-Eli



More information about the cfe-dev mailing list