🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #407

Re: libg++-2.3 compilation problem - ncr 3000

#407
From: Tom McConnell~
Date: Sat, 19 Dec 1992 14:06
59 lines
2952 bytes
In article <9212122148.AA04633@ilws35.intel.com>, iancu@iil.intel.com (Igal Iancu) writes:
> Hi,
> 
> I am having compilation problem of the libg++-2.3 release:
> System: NCR 3340, SYSVR4.02
> GCC 2.3.2
> 
> tail of log file:
> 
> /usr/ccs/ATT/cc -c  -I. -I../../libiberty/../include   ../../libiberty/random.c
> /usr/ccs/ATT/cc -c  -I. -I../../libiberty/../include   ../../libiberty/rindex.c
> rm -rf libiberty.a
> ar cq libiberty.a argv.o basename.o concat.o cplus-dem.o fdmatch.o getopt.o getopt1.o obstack.o spaces.o strerror.o strsignal.o index.o sigsetmask.o alloca.o getpagesize.o bcmp.o bzero.o bcopy.o random.o index.o rindex.o 
> true libiberty.a
> rootme=`pwd`/ ; export rootme; CC="/usr/ccs/ATT/cc "; export CC; CXX="gcc  -nostdinc++"; export CXX; CONFIG_NM="nm"; export CONFIG_NM; ../../libg++/utils/gen-params LIB_VERSION=2.3  >tmp-params.h
> mv tmp-params.h _G_config.h
> gcc -g -O -nostdinc++ -I.. -I../../../libg++/src -I../../../libg++/src/../iostream -I../../../libg++/src/../g++-include  -c ../../../libg++/src/AllocRing.cc
> gcc -g -O -nostdinc++ -I.. -I../../../libg++/src -I../../../libg++/src/../iostream -I../../../libg++/src/../g++-include  -c ../../../libg++/src/Obstack.cc
> Assembler: Obstack.cc
> 	aline 1879	: multiply defined label
> 	aline 2557	: multiply defined label
> 	aline 2860	: multiply defined label
> 	aline 3228	: multiply defined label
> 	aline 3615	: multiply defined label
> 	aline 3952	: multiply defined label
> 	aline 4230	: multiply defined label
> gmake[2]: *** [Obstack.o] Error 1
> gmake[1]: *** [in-src] Error 1
> gmake: *** [all-libg++] Error 1
> 
> 
> any suggestions?
> 
> Thanks in advance,
> 
> -- 
> 
>                               
>                                      -- Igal Iancu
> 

  This is the "-g" problem that the NCR boxes have. The problem appears to be
that gcc does not generate the correct assembler code when debugging is turned
on.

  The simple fix is to turn off debugging by adding "CXXFLAGS = -O" to
./libg++-2.3/config/mh-ncr3000. This overrides CXXFLAGS in the Makefile.

  The problem with this is that debugging will not be available when using
libg++. It does compile and run "make check", however.

    Cheers,

    Tom McConnell

 Tom McConnell          |     Internet: tmcconne@sedona.intel.com
 Intel, Corp. C3-91     |     Phone: (602)-554-8229
 5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
 Chandler, AZ  85226    | their right mind would claim them.
Technical Details
Message-ID: <9212200406.AA42284@thunder.intel.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sedona.intel.com!tmcconne

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sedona.intel.com!tmcconne
From: tmcconne@sedona.intel.com (Tom McConnell~)
Subject: Re: libg++-2.3 compilation problem - ncr 3000
Message-ID: <9212200406.AA42284@thunder.intel.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 19 Dec 1992 14:06:52 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 60