STR-137: FSF GCC requires -lgcc to define restFP and saveFP
———————————————————————–
/tmp/gcc/bin/gcc -g -O2 -o xtc xtc.o -L/tmp/stratego/strategoxt-0.11pre/pre-pkgs/build//tmp/usr/strategoxt/hand/lib/srts -L/tmp/usr/aterm/current/lib /tmp/stratego/strategoxt-0.11pre/pre-pkgs/build//tmp/usr/strategoxt/hand/lib/srts/.libs/libstratego.opt.a /tmp/stratego/strategoxt-0.11pre/pre-pkgs/build//tmp/usr/strategoxt/hand/lib/srts/.libs/libstratego-choice.opt.a /tmp/stratego/strategoxt-0.11pre/pre-pkgs/build//tmp/usr/strategoxt/hand/lib/srts/.libs/libstratego-lib.opt.a -lATerm-gcc -lm
/usr/bin/ld: Undefined symbols:
restFP
saveFP
———————————————————————–Workaround:
———————————————————————–
./configure … LDFLAGS=-lgcc
———————————————————————–See also:
Submitted on 2 July 2004 at 21:32
http://rescomp.stanford.edu/~ejalbert/archives/2003/11/16.html
Issue Log
STR-137, martin:
Actually restFP are not defined in libgcc provided by the FSF, but they are in the libgcc provided by Apple. Grmbl.See also:
http://gcc.gnu.org/ml/gcc/2004-03/threads.html#01173
STR-137, martin:
See also:
http://gcc.gnu.org/ml/gcc/2004-03/msg01173.htmlI’ve used -L of Apple’s libgcc, which is horrible, but works as far as the build currently is …
STR-137, martin:
make LDFLAGS=“-L/usr/lib/gcc/darwin/3.3 -lgcc”
STR-137, martin:
Linking with Apple’s lib is stupid of course: this will use the broken trampoline implementation.
STR-137, martin:
Not relevant: the latest GCC is not required. Apple’s GCC 3.3 works fine.
Log in to post comments