bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC 2.95.3 and later on AIX 5.2


From: edward . davignon
Subject: Re: GCC 2.95.3 and later on AIX 5.2
Date: Thu, 6 Mar 2003 10:12:58 -0500




I ran in to a similar problem while trying to compile gcc-2.95.3 with
libstdc++-2.90.8 on a IBM pSeries 660 running AIX 5.1

The unrecognized opcode problem is caused by the older version of the
config.guess script used in gcc-2.95.3.  It identifies the machine as an
"rs6000" not a "powerpc".

The "rs6000" trys to use the "POWER" instruction set used by the original
RS/6000 systems.  The "powerpc" instruction set is used by the newer
RS/6000
and pSeries systems. The gcc info page gives more details under "RS/6000
and
PowerPC Options".

I started over.  This time I specified the host type for the configure
script.
The unrecognized opcode errors went away.

gmake distclean
../gcc-2.95.3/configure powerpc-ibm-aix5.1.0.0
gmake

I also successfully compiled gcc-2.95.3 using binutils-2.13.2.1 as follows:

cd ../binutils-2.13.2.1-`uname -n`
../binutils-2.13.2.1/configure --prefix=/opt/binutils-2.13.2.1
gmake
gmake install

cd ../gcc-2.95.3-`uname -n`
gmake distclean
../gcc-2.95.3/configure \
  --with-gnu-as --with-as=/opt/binutils-2.13.2.1/bin/as \
  --with-gnu-ld --with-ld=/opt/binutils-2.13.2.1/bin/ld \
  --prefix=/opt/gcc-2.95.3-libstdc++-2.90.8-binutil-2.13.2.1 \
  powerpc-ibm-aix5.1.0.0



> From: Harald Milz <hm at seneca dot muc dot de>
> To: bug-binutils at gnu dot org, gcc-help at gcc dot gnu dot org
> Date: Thu, 31 Oct 2002 08:52:50 +0100
> Subject: GCC 2.95.3 and later on AIX 5.2
>
> I am trying to compile gcc-2.95.3 on a new AIX 5.2 system, and I have a
> problem with an unrecognized opcode.
>
> The machine is a RS64-II system (model 7044-170). The error message is,
>
> _muldi3
> /tmp/cc869kEn.s: Assembler messages:
> /tmp/cc869kEn.s:424: Error: Unrecognized opcode: `maskir'
>
> Seems GNU as doesn't know about this instruction. The IBM as knows even
> less... and throws a lot more unknown opcode errors.
>
> The system is recognized as rs6000-ibm-aix, and I ran configure without
> options. binutils-2.13 are installed and in the path. The IBM compiler is
> not yet installed but I'm downloading it right now.
>
> Do you have an idea what to do here?
>
> I can give you access to the machine if you like, just send me your
public
> SSH1 key.
>
> The machine is currently being used for porting am-utils to AIX 5.2 ...
> Erez Zadok is working on it.
>
> PS GCC 3.2 and 3.1.1 produce even worse error messages, I'll post these
> over the week end. If I can be of any more help porting the GCCs to AIX
> 5.2...
>
>
> Kind regards,
> Harald Milz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]