Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Linker problem while building spidermonkey



In article <4EC2BF6A.60602%julipedia.org@localhost>,
Julio Merino  <jmmv%julipedia.org@localhost> wrote:
>Hello,
>
>While trying to build spidermonkey from pkgsrc on a macppc machine, I 
>reach the following error:
>
>gcc -o pkgsrc_OPT.OBJ/js -O2 -DJS_USE_FDLIBM_MATH=0 -g 
>-fno-strict-aliasing -I/usr/include -Wall -Wno-format -L/usr/pkg/lib -Os 
>-DXP_UNIX -DSYSV -DSOLARIS -DHAVE_LOCALTIME_R -DHAVE_VA_COPY 
>-DVA_COPY=va_copy -DPIC -fPIC  -UDEBUG -DNDEBUG -UDEBUG_jmmv -DEDITLINE 
>-Ipkgsrc_OPT.OBJ  -Wall -Wno-format -L/usr/pkg/lib -Os -DXP_UNIX -DSYSV 
>-DSOLARIS -DHAVE_LOCALTIME_R -DHAVE_VA_COPY -DVA_COPY=va_copy -DPIC 
>-fPIC  -UDEBUG -DNDEBUG -UDEBUG_jmmv -DEDITLINE -Ipkgsrc_OPT.OBJ 
>pkgsrc_OPT.OBJ/js.o -Lpkgsrc_OPT.OBJ -L/usr/lib -Wl,-R/usr/lib 
>-Wl,-R/usr/pkg/lib \
>          editline/pkgsrc_OPT.OBJ/libedit.a -ljs -lm
>ld: pkgsrc_OPT.OBJ/js: hidden symbol `_savefpr_29' in 
>/usr/lib/libgcc.a(crtsavfpr.o) is referenced by DSO
>ld: final link failed: Bad value
>gmake[1]: *** [pkgsrc_OPT.OBJ/js] Error 1
>gmake[1]: Leaving directory 
>`/home/jmmv/os/pkgsrc/lang/spidermonkey/work/js/src'
>gmake: *** [all] Error 2
>*** Error code 2
>
>This is with NetBSD 5.99.56.  I have just installed a fresh build (with 
>sources from yesterday) and rebuilt all packages (just in case some 
>incompatible ABI change was left behind), but that did not fix the issue...
>

Can you nm /usr/lib/libgcc_s.so | grep _savefpr_29?
Also try adding -shared-libgcc to the link line.

christos



Home | Main Index | Thread Index | Old Index