problem compiling simple program w 2.95.2 under solaris

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue Jan 4 14:16:00 GMT 2000


> g++     cpptest.cpp   -o cpptest
> /sup/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/libgcc.a: could not read 
> symbols: Bad value
> collect2: ld returned 1 exit status
[...]
> Both gcc builds were 'make bootstrap's.  Thanks for your help...

Could that be a configuration problem? Are you using GNU binutils?
Did you give --with-gnu-something to configure?

Please try to inspect
/sup/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/libgcc.a

in more detail. Unpack it with ar, do nm on each object file that
comes out of it. Use the verbose mode of the linker (if it has one).

Regards,
Martin


More information about the Gcc-bugs mailing list