earle@MAHENDO.JPL.NASA.GOV (Greg Earle) (10/10/88)
Newsgroups: gnu.g++.bug
Reply-To: earle@mahendo.JPL.NASA.GOV (Greg Earle)
Organization: Sun Microsystems - Western Area Professional Services
I was able to build g++ 1.27 with gcc 1.28 (after having commented out one
section of code in stmt.c that referenced MAX_SETS_PER_INSN, a constant
that no longer exists), but when I try to use the resulting g++ to build
the g++ library (libg++ 1.25) I get this:
Particulars:
Sun-3/160, SunOS 4.0;
g++ 1.27, gcc 1.28;
tm.h -> tm-sun3.h w/ `crt0+.o' patch installed;
md -> m68k.md;
config.h -> config-sun4.h
poseur:2:172 # make test0
g++ -c -g -O -fchar-charconst test.hello.cc -o test.hello.o
At top level:
/usr/include/sys/fcntlcom.h:62: warning: type
declaration of flock shadows previous declaration
/usr/include/sys/fcntlcom.h:62: warning: `flock' was declared `extern' and
later `static'
test.hello.cc:20: parse error before `header'
In function void *tfile::load ():
test.hello.cc:56: object in '.' expression is not of aggregate type
test.hello.cc:56: object in '.' expression is not of aggregate type
test.hello.cc:114: warning: initialization between incompatible pointer types
test.hello.cc:123: warning: assignment between incompatible pointer types
*** Error code 1
make: Fatal error: Command failed for target `test.hello.o'
And then:
poseur:2:174 # make libg++.a
g++ -v -g -O -fchar-charconst -c builtin.cc
g++ version 1.27.0
/usr/local/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__OPTIMIZE__ builtin.cc /tmp/cca00748.cpp
GNU CPP version 1.27.0
/usr/local/lib/gcc-c++ /tmp/cca00748.cpp -quiet -dumpbase builtin.cc -fchar-charconst -opt -version -G -o /tmp/cca00748.s
GNU C++ version 1.27.0 (68k, MIT syntax) compiled by GNU C version 1.28.
g++: Program c++ got fatal signal 6.
poseur:2:175 # dbx -I../src-g++ /usr/local/lib/gcc-c++ ./core
Reading symbolic information...
Read 58242 symbols
(dbx) where
kill(?args?)
etext() at 0xed8f07e
push_reload(in = 0x1226a0, out = (nil), inloc = 0x122440, outloc = (nil), class = DATA_REGS, inmode = SImode, outmode = VOIDmode, strict_low = 0, optional = 0), line 267 in "reload.c"
find_reloads(insn = 0x12248c, replace = 0, ind_ok = 0, live_known = 1, reload_reg_p = 0xb30ca), line 1646 in "reload.c"
reload(first = 0x11fedc, global = 1, dumpfile = (nil)), line 425 in "reload1.c"
global_alloc(file = 0x3), line 316 in "global-alloc.c"
rest_of_compilation(decl = 0xaf750), line 1343 in "toplev.c"
finish_function(call_poplevel = 0), line 6293 in "decl.c"
yyparse(), line 250 in "bison.simple"
compile_file(name = 0x3 ""), line 910 in "toplev.c"
main(argc = 1188928, argv = 0xaf750, envp = 0xefffa48), line 1720 in "toplev.c"
(dbx) quit
Any ideas?!?
--
Greg Earle earle@Sun.COM
Sun Microsystems poseur!earle@mahendo.JPL.NASA.GOV
Los Angeles Consulting earle%mahendo@elroy.JPL.NASA.GOV
...!{cit-vax,ames}!elroy!poseur!earle ...!sun!tsunami!valley!poseur!earle