Article View: gnu.gcc.help
Article #49467Compilation Error with gcc-2.5.4 on NeXT 68k
From: James A. Risinger
Date: Mon, 24 Jan 1994 00:47
Date: Mon, 24 Jan 1994 00:47
51 lines
3294 bytes
3294 bytes
I am trying to install gcc v. 2.5.4 with libg++ 2.5 on a NeXT 68k
running Nextstep 3.0, and I am running into some problems. I
configure gcc with m68k-next-mach. The build of gcc and the build of
Libg++ go okay. However, when I go to link in a program that uses any
libg++ classes I get errors from the linker:
make
g++ -v template.o -o temp
Reading specs from /usr/local/lib/gcc-lib/m68k-next-mach/2.5.4/specs
gcc version 2.5.4
ld -o temp -lcrt0.o -L/usr/local/lib/gcc-lib/m68k-next-mach/2.5.4 -L/usr/local/lib template.o -lg++ -lgcc -lsys_s -lgcc
ld: /usr/local/lib/libg++.a(Rational.o) symbol 474 (x:r57)'s n_sect field (33) is greater than the number of sections in this object (6)
ld: /usr/local/lib/libg++.a(Rational.o) symbol 474 (x:r57)'s n_sect field (33) is greater than the number of sections in this object (6)
etc...
That was with the libg++ library compiled with -g. If I compile
libg++ without -g I get undefined symbols.
make
g++ -v -c template.cc -o template.o
Reading specs from /usr/local/lib/gcc-lib/m68k-next-mach/2.5.4/specs
gcc version 2.5.4
/usr/local/lib/gcc-lib/m68k-next-mach/2.5.4/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=5 -Dmc68000 -Dm68k -DNeXT -Dunix -D__MACH__ -D__BIG_ENDIAN__ -D__ARCHITECTURE__="m68k" -D__mc68000__ -D__m68k__ -D__NeXT__ -D__unix__ -D__MACH__ -D__BIG_ENDIAN__ -D__ARCHITECTURE__="m68k" -D__mc68000 -D__m68k -D__NeXT -D__unix -D__MACH__ -D__BIG_ENDIAN__ -D__ARCHITECTURE__="m68k" -Asystem(unix) -Asystem(mach) -Acpu(m68k) -Amachine(m68k) -D__STDC__ -D_NEXT_SOURCE template.cc /usr/tmp
/cc000265.i
GNU CPP version 2.5.4 (68k, MIT syntax)
Stuff ignored to link line...
g++ -v template.o Rational.o Integer.o -o temp
Reading specs from /usr/local/lib/gcc-lib/m68k-next-mach/2.5.4/specs
gcc version 2.5.4
ld -o temp -lcrt0.o -L/usr/local/lib/gcc-lib/m68k-next-mach/2.5.4 -L/usr/local/lib template.o Rational.o Integer.o -lg++ -lgcc -lsys_s -lgcc
ld: Undefined symbols:
_foo__FG8RationalT0
_S_ISREG
_S_ISCHR
Any ideas? If I am trying to use versions of gcc/libg++ that are not
yet stable for NeXT, which ones should I use? If this is some problem
pertaining to NS 3.0, I am willing to purchase the upgrade, but would
like to avoid the $$$$ if possible.
Also, configure picks m68k-next-bsd automatically. I tried that
configuration also, with the same results.
Thanks in advance,
James A. Risinger
risinger@csn.org
Technical Details
Message-ID:
<RISINGER.94Jan23174755@teal.csn>Path:
arc1-ca.pugleaf.net!gmd.de!urmel.informatik.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!hrz-ws11.hrz.uni-kassel.de!news.th-darmstadt.de!math.fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!col.hp.com!csn!mail-2.csn.net!risingerShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a553e31310fd8b4f,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-23 18:48:47 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!urmel.informatik.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!hrz-ws11.hrz.uni-kassel.de!news.th-darmstadt.de!math.fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!col.hp.com!csn!mail-2.csn.net!risinger From: risinger@teal.csn (James A. Risinger) Subject: Compilation Error with gcc-2.5.4 on NeXT 68k Message-ID: <RISINGER.94Jan23174755@teal.csn> Sender: news@csn.org (The Daily Planet) Nntp-Posting-Host: teal.csn.org Organization: Colorado SuperNet, Inc. Distribution: gnu Date: Mon, 24 Jan 1994 00:47:55 GMT Lines: 48