Strange behavior (bug?)
Alkis G. Polyzotis
Alkis.Polyzotis@dblab.ece.ntua.gr
Wed Jan 14 12:25:00 GMT 1998
Apologies if this was reported before. Since I am not on the
mailing list, please Cc me the reply. TIA.
I am trying to compile using egcs v.1.01 and I get a strange
error from the assembler:
(401) milos ~/tales/test >make test
g++ -I../include -c test.cc -o test.o
/usr/ccs/bin/as: "/var/tmp/cca005o3.s", line 9377: error: can't compute value of an expression involving an external symbol
make: *** [test.o] Error 1
When I use the -g flag, the compile stage works fine, but I get
an error from the linker:
(403) milos ~/tales/test >make CXXFLAGS=-g
g++ -g -I../include -c test.cc -o test.o
g++ test.o -o test
ld: warning: file test.o: relocation against external symbol `<unknown>'
from a non-allocatable section `.stab'
cannot be processed at runtime: relocation ignored
Undefined first referenced
symbol in file
test.o
ld: fatal: Symbol referencing errors. No output written to test
collect2: ld returned 1 exit status
make: *** [test] Error 1
(395) milos ~ >g++ -v
Reading specs from /usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
(396) milos ~ >uname -a
SunOS milos 5.5.1 Generic_103640-12 sun4u sparc
--
Alkis Polyzotis
More information about the Gcc-bugs
mailing list