------- Additional Comments From david dot billinghurst at comalco dot riotinto 
dot com dot au  2005-02-08 00:30 -------
Subject: RE:  [4.0 Regression] Bootstrap fails: Unresolved data symbol 
"set_fpc_csr"

I can see the problem here once I compile with -v.  

get_fpc_csr and set_fpc_csr are in libc.so, but -lc linked before 
stage1/irix-csr.o,
so the routines aren't found.  If I run collect2 by hand with -lc after 
irix-csr.o
then all is well.  

bash-2.04$ stage1/xgcc -Bstage1/ 
-B/disk4/billingd/tmp/gcc/mips-sgi-irix6.5/bin/   -g -O2 -DIN_GCC   -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic 
-Wno-long-long -Wno-variadic-macros -Wold-style-definition -Werror -fno-common  
 -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/genmodes build/genmodes.o 
build/errors.o ../build-mips-sgi-irix6.5/libiberty/libiberty.a -v
Reading specs from stage1/specs
Target: mips-sgi-irix6.5
Configured with: /disk4/billingd/src/gcc/configure --enable-shared 
--enable-haifa --enable-threads=single --enable-libjava 
--with-as=/disk4/billingd/tmp/binutils/bin/as --disable-nls 
--with-gmp=/usr/local --enable-languages=c,c++,java,objc,f95 
--disable-libmudflap --prefix=/disk4/billingd/tmp/gcc
Thread model: single
gcc version 4.0.0 20050203 (experimental)
 stage1/collect2 -call_shared -no_unresolved -init __gcc_init -fini __gcc_fini 
-_SYSTYPE_SVR4 -woff 131 -n32 -o build/genmodes /usr/lib32/mips3/crt1.o 
stage1/irix-crti.o stage1/crtbegin.o -Lstage1 
-L/disk4/billingd/tmp/gcc/lib/gcc/mips-sgi-irix6.5/../.. -L/lib/../lib32 
-L/usr/lib/../lib32 build/genmodes.o build/errors.o 
../build-mips-sgi-irix6.5/libiberty/libiberty.a -dont_warn_unused -lgcc 
-lgcc_eh -warn_unused -L/usr/lib32/mips3 -L/usr/lib32 -dont_warn_unused -lc 
-warn_unused -dont_warn_unused -lgcc -lgcc_eh -warn_unused stage1/irix-csr.o 
stage1/crtend.o stage1/irix-crtn.o /usr/lib32/mips3/crtn.o
ld32: ERROR   33 : Unresolved data symbol "get_fpc_csr" -- 1st referenced by 
stage1/irix-csr.o.
        Use linker option -v to see when and which objects, archives and dsos 
are loaded.  
ld32: ERROR   33 : Unresolved data symbol "set_fpc_csr" -- 1st referenced by 
stage1/irix-csr.o.
        Use linker option -v to see when and which objects, archives and dsos 
are loaded.  
ld32: INFO    152: Output file removed because of error.
collect2: ld returned 2 exit status


NOTICE
This e-mail and any attachments are private and confidential and may contain 
privileged information. If you are not an authorised recipient, the copying or 
distribution of this e-mail and any attachments is prohibited and you must not 
read, print or act in reliance on this e-mail or attachments.
This notice should not be removed.


-- 


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

Reply via email to