------- Comment #2 from hubicka at gcc dot gnu dot org  2010-08-22 09:15 -------
It works for me on clean tree at today mainline.
+ ../xgcc -B .. -fPIC -fno-exceptions -fwhopr=24 -fuse-linker-plugin
-fno-strict-aliasing -pthread -pipe -Os -freorder-blocks -fno-reorder-functions
-fomit-frame-pointer -c sysunix.i
+ ../xgcc -B .. -fPIC -fno-exceptions -fwhopr=24 -fuse-linker-plugin
-fno-strict-aliasing -pthread -pipe -Os -freorder-blocks -fno-reorder-functions
-fomit-frame-pointer -c editline.i
+ ../g++ -B .. -L ../../x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/ -fPIC
-fno-exceptions -fwhopr=24 -fuse-linker-plugin -fno-strict-aliasing -pthread
-pipe -Os -freorder-blocks -fno-reorder-functions -fomit-frame-pointer -c
-fno-rtti -fpermissive -Wno-invalid-offsetof js.ii
+ ../g++ -B .. -L ../../x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/ -fPIC
-fno-exceptions -fwhopr=24 -fuse-linker-plugin -fno-strict-aliasing -pthread
-pipe -Os -freorder-blocks -fno-reorder-functions -fomit-frame-pointer -c
-fno-rtti -fpermissive -Wno-invalid-offsetof jsworkers.ii
+ ../g++ -B .. -L ../../x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/ -o js
-fPIC -fno-exceptions -fwhopr=24 -fuse-linker-plugin -fno-strict-aliasing
-pthread -pipe -Os -freorder-blocks -fno-reorder-functions -fomit-frame-pointer
js.o jsworkers.o editline.o sysunix.o -lpthread -Wl,-rpath-link,/bin
-Wl,-rpath-link,/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm
/abuild/jh/trunk-install/x86_64-unknown-linux-gnu/bin/ld:
/tmp/ccqrfzic.ltrans0.ltrans.o: in function
_ZL18split_getObjectOpsP9JSContextP7JSClass.5202.4730:ccqrfzic.ltrans0.o(.text+0x2f):
error: undefined reference to 'js_ObjectOps'
/abuild/jh/trunk-install/x86_64-unknown-linux-gnu/bin/ld:
/tmp/ccqrfzic.ltrans0.ltrans.o: in function
_ZL22ShellOperationCallbackP9JSContext.4851.5014:ccqrfzic.ltrans0.o(.text+0xb1):
error: undefined reference to 'JS_ClearPendingException'
/abuild/jh/trunk-install/x86_64-unknown-linux-gnu/bin/ld:
/tmp/ccqrfzic.ltrans0.ltrans.o: in function
_ZN8ToStringC2EP9JSContextli.local.285.constprop.348.3463:ccqrfzic.ltrans0.o(.text+0xd4):
error: undefined reference to 'JS_ValueToString'
....

Can you double check if it works for you too? Might be also gold bug.
Mine is:
j...@evans:/abuild/jh/trunk-2/gcc> gold --version
GNU gold (GNU Binutils; SUSE Linux Enterprise 11 2.20.0.20100122-0.7.9) 1.9
Copyright 2008 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.


-- 

hubicka at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tglek at mozilla dot com
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45194

Reply via email to