Problem compiling gcc 4.2.1 on AIX 5.3

Anant S Athavale
Fri Jan 18 04:44:00 GMT 2008

----- Message from ---------
     Date: Thu, 17 Jan 2008 11:20:04 +0200
     From: Kai Ruottu <>
Reply-To: Kai Ruottu <>
  Subject: Re: Problem compiling gcc 4.2.1 on AIX 5.3
       To: Anant Athavale <>

> Anant Athavale wrote:
>> gcc compilation fails with the following error AIX 5.3
>> "prefix=/usr/local" "tooldir=/usr/local/powerpc-ibm-aix" "AR=ar"   
>> "AS=as" "CC=gcc" "CXX=c++" "LD=ld" make[3]: Entering directory   
>> `/tmp/gcc-4.2.1/host-powerpc-ibm-aix/gcc'
>> make[3]: *** No rule to make target `all'.  Stop.
> The "tooldir" part tells the guessed, given or somehow else got $target
> name being 'powerpc-ibm-aix'...
> But the 'gcc/config.gcc' doesn't know this $target :(  Possible ones
> can be '*-*-aix4*' and '*-*-aix5*'
> where the first star can be 'rs6000', 'powerpc' or 'ppc'. So that bare
> 'aix' isn't understood....
> Please see what the command :
>    ./config.guess
> gives in the main GCC source directory. There shouldn't be that bare
> 'aix' in the answer to the guess!

./config.guess output is as below:

/usr/bin/oslevel[845]: sed:  not found
/usr/bin/oslevel: Broken pipe

But when I execute which sed, the output is


and this is gnu sed.

Now that I have some hint, I will check, what could be the reason and  
let you know again later.



> If there is (The system is really stupid in its guesses...), then you
> must be wiser and tell the right names,
> for instance :
> ..../configure --build=powerpc-ibm-aix5.3 --host=powerpc-ibm-aix5.3
> --target=powerpc-ibm-aix5.3 ....

----- End message from -----


Anant Athavale,
Computer and Information Group,
ISRO Satellite Centre,
Airport Road,
Bangalore - 560017

Landline: 080-25083512
Cell: 99809 13616

My Free/BusyURL:

More information about the Gcc-help mailing list