[racket] Failed to build Racket Textual 5.1.2 (CentOS)

From: Rodolfo Carvalho (rhcarvalho at gmail.com)
Date: Fri Aug 12 02:01:54 EDT 2011


I was trying to compile Racket Textual from source in a Webfaction's shared
host machine. It's running CentOS 5.6.

After downloading and extracting the tarball, cd racket-textual-5.1.2/src/;
mkdir build; cd build; ../configure; make:

[...lots of things...]

ar: creating ../libracket3m.a
a - salloc.o
a - bignum.o
a - validate.o
a - vector.o
a - foreign.o
a - ../src/gmp.o
a - ../src/unwind.o
a - ../../foreign/libffi/src/closures.o
a - ../../foreign/libffi/src/debug.o
a - ../../foreign/libffi/src/java_raw_api.o
a - ../../foreign/libffi/src/prep_cif.o
a - ../../foreign/libffi/src/raw_api.o
a - ../../foreign/libffi/src/types.o
a - ../../foreign/libffi/src/x86/ffi.o
a - ../../foreign/libffi/src/x86/sysv.o
a - gc2.o
ranlib ../libracket3m.a
cd ..; gcc -o racket3m  gc2/main.o libracket3m.a  -pthread -ldl -lm  -ldl
-lm -rdynamic
libracket3m.a(symbol.o): In function `mzrt_cas':
undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make[4]: *** [../racket3m] Error 1
make[4]: Leaving directory
make[3]: *** [all] Error 2
make[3]: Leaving directory
make[2]: *** [3m] Error 2
make[2]: Leaving directory
make[1]: *** [3m] Error 2
make[1]: Leaving directory `/home/rodolfo/racket-textual-5.1.2/src/build'
make: *** [all] Error 2


I tried three times and consistently got the same error. Then I decided to
try 5.1.1, and I was able to compile with no errors.

Could it be the case that something is wrong
with racket-textual-5.1.2-src-unix.tgz?
(the "/mzrt.h:132: undefined reference to `__sync_bool_compare_and_swap_4'"


Rodolfo Carvalho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110812/de02e150/attachment.html>

Posted on the users mailing list.