[racket-dev] Trouble building on FreeBSD 9.1
Hi,
When building Racket from source on FreeBSD 9.1, I get the following errors:
gcc -o racketcgc main.o libracket.a libmzgc.a -pthread -lm
-rdynamic -L/usr/local/lib -lffi
libracket.a(number.o): In function `sch_powl':
/usr/nick/git/racket/src/build/racket/src/../../../racket/src/number.c:3461:
undefined reference to `powl'
libracket.a(number.o): In function `scheme_long_double_exp':
/usr/nick/git/racket/src/build/racket/src/../../../racket/src/number.c:2974:
undefined reference to `expl'
libracket.a(number.o): In function `scheme_long_double_log':
/usr/nick/git/racket/src/build/racket/src/../../../racket/src/number.c:2973:
undefined reference to `logl'
libracket.a(bignum.o): In function `scheme_bignum_from_long_double':
/usr/nick/git/racket/src/build/racket/src/../../../racket/src/bgnfloat.inc:70:
undefined reference to `powl'
*** [racketcgc] Error code 1
Full build log here: https://gist.github.com/kogir/508178314d18ede3a38d
I'm not sure what the problem is because the "undefined references"
should be included in the math library correctly referenced by the -lm
option passed to GCC.
Does anyone have any ideas or suggestions I can try?
Thanks,
Nick