Relocation error, Solaris/SPARC, 20000320

Jim McKelvey
Tue Mar 21 11:52:00 GMT 2000

mushroom...PM>g++ -I/usr/local/include    -DNO_NAMESPACE -D__USE_GNU 
-D_GNU_SOURCE -g -ansi -pedantic -pedantic-errors -fsjlj-exceptions 
-fno-keep-static-consts -fshort-enums -fstrict-aliasing -ffloat-store 
-fno-common -ffor-scope -Wsign-promo -ftemplate-depth-30 -fverbose-asm 
-fimplicit-templates -fno-external-templates -fno-repo -Wall -W -Wpointer-arith 
-Wcast-qual -Wconversion -Wmissing-prototypes -Wwrite-strings -Winline 
-Wno-long-long -L. -o compare --save-temps -v
Reading specs from 
gcc version 2.96 20000320 (experimental)
2.5.1/2.96/cpp -lang-c++ -v -I/usr/local/include -D__GNUC__=2 -D__GNUG__=2 
-D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__cplusplus -trigraphs  
-D__STRICT_ANSI__ -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc 
-D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -g -Wsign-promo 
-Wall -W -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes 
-Wwrite-strings -Winline -Wno-long-long -pedantic -pedantic-errors 
-D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) -DNO_NAMESPACE -D__USE_GNU 
-D_GNU_SOURCE compare.ii
GNU CPP version 2.96 20000320 (experimental) (cpplib)
ignoring duplicate directory `/usr/local/include'
#include "..." search starts here:
#include <...> search starts here:
End of search list.
2.5.1/2.96/cc1plus compare.ii -quiet -dumpbase -g -Wsign-promo -Wall 
-W -Wpointer-arith -Wcast-qual -Wconversion -Wmissing-prototypes -Wwrite-strings 
-Winline -Wno-long-long -pedantic -pedantic-errors -ansi -version 
-fsjlj-exceptions -fno-keep-static-consts -fshort-enums -fstrict-aliasing 
-ffloat-store -fno-common -ffor-scope -ftemplate-depth-30 -fverbose-asm 
-fimplicit-templates -fno-external-templates -fno-repo -o compare.s
GNU C++ version 2.96 20000320 (experimental) (sparc-sun-solaris2.5.1) compiled 
by GNU C version 2.96 20000320 (experimental).
 /usr/ccs/bin/as -V -Qy -s -o compare.o compare.s
/usr/ccs/bin/as: WorkShop Compilers 4.2 dev 13 May 1996
2.5.1/2.96/collect2 -V -Y P,/usr/ccs/lib:/usr/lib -Qy -o compare 
2.5.1/2.96/crti.o /usr/ccs/lib/values-Xc.o 
2.5.1/2.96/crtbegin.o -L. 
is2.5.1/2.96 -L/usr/ccs/bin -L/usr/ccs/lib 
is2.5.1/2.96/../../.. compare.o -lstdc++ -lm -lgcc -lc -lgcc 
ld: Software Generation Utilities - Solaris/ELF (3.0)
ld: warning: relocation error: R_SPARC_32: file compare.o: symbol _:
        external symbolic relocation against non-allocatable section .stab;
        cannot be processed at runtime: relocation ignored
Undefined                       first referenced
 symbol                             in file
_                                   compare.o
ld: fatal: Symbol referencing errors. No output written to compare
collect2: ld returned 1 exit status

-------------- next part --------------
A non-text attachment was scrubbed...
Name: compare.ii.bz2
Type: application/x-bzip2
Size: 26711 bytes
Desc: not available
URL: <>

More information about the Gcc-bugs mailing list