Solaris 2.5.1, gcc 20000501, as external symbol problem

Jim McKelvey mckelvey@bean.jpl.nasa.gov
Thu May 4 13:26:00 GMT 2000


Does this error mean I need to instal binutils? I see that the FAQ reports 
problems with shared libraries if I do use binutils.

I couldn't include the .s file since the Cygnus mailer won't take more than 100K 
bytes.

This problem goes away when -g is added.

mushroom...PM>g++ -c -v -save-temps SymbolTable.cc
Reading specs from 
/afs/jpl.nasa.gov/home/m/mckelvey/private/Software/lib/gcc-lib/sparc-sun-solaris
2.5.1/2.96/specs
gcc version 2.96 20000501 (experimental)
 
/afs/jpl.nasa.gov/home/m/mckelvey/private/Software/lib/gcc-lib/sparc-sun-solaris
2.5.1/2.96/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=96 
-D__GNUC_PATCHLEVEL__=0 -D__cplusplus -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 
-D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix 
-Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc) 
-Amachine(sparc) SymbolTable.cc SymbolTable.ii
GNU CPP version 2.96 20000501 (experimental) (cpplib)
 (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /afs/jpl.nasa.gov/home/m/mckelvey/private/Software/include/g++-3
 /usr/local/include
 
/afs/jpl.nasa.gov/home/m/mckelvey/private/Software/lib/gcc-lib/sparc-sun-solaris
2.5.1/2.96/include
 
/afs/jpl.nasa.gov/home/m/mckelvey/private/Software/sparc-sun-solaris2.5.1/includ
e
 /usr/include
End of search list.
 
/afs/jpl.nasa.gov/home/m/mckelvey/private/Software/lib/gcc-lib/sparc-sun-solaris
2.5.1/2.96/cc1plus SymbolTable.ii -quiet -dumpbase SymbolTable.cc -version -o 
SymbolTable.s
GNU C++ version 2.96 20000501 (experimental) (sparc-sun-solaris2.5.1) compiled 
by GNU C version 2.96 20000501 (experimental).
 /usr/ccs/bin/as -V -Qy -s -o SymbolTable.o SymbolTable.s
/usr/ccs/bin/as: WorkShop Compilers 4.2 dev 13 May 1996
/usr/ccs/bin/as: "SymbolTable.s", line 6155: error: can't compute value of an 
expression involving an external symbol
mushroom...PM>
SymbolTable.ii.bz2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: SymbolTable.ii.bz2
Type: application/x-bzip2
Size: 41543 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000504/77044af1/attachment.bz2>


More information about the Gcc-bugs mailing list