———————————————————————–
/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:
http://rescomp.stanford.edu/~ejalbert/archives/2003/11/16.html

Submitted on 2 July 2004 at 21:32

On 2 July 2004 at 21:46 Jira commented:

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


On 2 July 2004 at 21:57 Jira commented:

STR-137, martin:
See also:
http://gcc.gnu.org/ml/gcc/2004-03/msg01173.html

I’ve used -L of Apple’s libgcc, which is horrible, but works as far as the build currently is …


On 2 July 2004 at 22:00 Jira commented:

STR-137, martin:
make LDFLAGS=“-L/usr/lib/gcc/darwin/3.3 -lgcc”


On 2 July 2004 at 23:20 Jira commented:

STR-137, martin:
Linking with Apple’s lib is stupid of course: this will use the broken trampoline implementation.


On 9 July 2004 at 18:35 Jira commented:

STR-137, martin:
Not relevant: the latest GCC is not required. Apple’s GCC 3.3 works fine.

Log in to post comments