🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #195

Re:

#195
From: Tom McConnell
Date: Wed, 29 Jul 1992 18:05
64 lines
2794 bytes
In article <9207290546.AA47295@st6000.sct.edu>, install2@st6000.sct.edu (Ron Skopitz) writes:
> 
> Howdy!
> 	Thanks all for the help!  GCC compiled flawlessly after your
> instructions!  Now I assuming that I must build the libraries in order to
> get anything to work. (?)  I compiled gcc into an install acount (not into
> /bin/...) so maybr that is part of my trouble with the following error I get
> when trying to compile libraries.  Any suggestions???  Once again, this is
> an RS/6000 running AIX 3.2.  Thanks!!
> 

  If you want g++, yes, you must compile libg++. Other than that there are no
libraries.

> 
> 
> 
> make all
>         rootme=`pwd` ; export rootme; CC="cc `if [ -f ${rootme}/../gcc/gcc ] ; \
>                 then echo -I${rootme}/../gcc/include ; \
>                 else echo ; fi`"; export CC; \
>                 ./utils/gen-params  >tmp-params.h
> cc: 1501-218 file dummy.C contains an incorrect file suffix
> nm: dummy.o: 0654-200 Cannot open the specified file.
> 

  This appears to be from the libg++ stuff, trying to build  _G_config.h. In the
version of libg++ I have (2.1), CC is passed as

    CC="gcc `if [ -f ${rootme}/../gcc/gcc ] ...

not as cc. I believe the only time cc is used is during the build of libiberty.
Are you sure you ran configure:

    <libg++-2.1> configure rs6000

it may be that CC is being forced in one of the files in the ./libg++-2.1/config 
directory (it shouldn't be).

  The other problem you may have is that gcc must be compiled with the knowledge
of which nm to use:

  To make collect2 work on the RS/6000, you need to add the following to
./gcc-2.2.2/config/xm-rs6000.h:
===========================================================================
/* This is the only version of nm that collect2 can work with.  */
#define REAL_NM_FILE_NAME "/usr/ucb/nm"
===========================================================================


> 	See if you can make any sense outa this?!?  Thanks again...
> 
> 					--Ron Skopitz
> 					  install2@st6000.sct.edu

    Cheers,

    Tom McConnell
-- 
 Tom McConnell          |     Internet: tmcconne@sedona.intel.com
 Intel, Corp. C3-21     |     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: <12567@inews.intel.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!iWarp.intel.com|inews!tmcconne
References: <9207290546.AA47295@st6000.sct.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!iWarp.intel.com|inews!tmcconne
From: tmcconne@sedona.intel.com (Tom McConnell)
Newsgroups: gnu.gcc.help
Subject: Re:
Message-ID: <12567@inews.intel.com>
Date: 29 Jul 92 18:05:26 GMT
References: <9207290546.AA47295@st6000.sct.edu>
Sender: news@inews.intel.com
Reply-To: tmcconne@sedona.intel.com
Distribution: gnu
Organization: Intel Corporation
Lines: 64
Originator: tmcconne@sedona