SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-24-2008, 12:39 AM
Hemant Shah
 
Posts: n/a
Default Problem building gcc 4.2.2 on AIX 5.3



Folks,

Has anyone compiled gcc 4.2.2 on AIX 5.3?
I have gcc 3.3.2 installed on the system and I am trying to build gcc 4.2.2
but the compile process ran for 2 days and failed while building libstdc++-v3.

Here is what I did:

mkdir /s7/gcc
cd /s7/gcc
gtar -xzf /tmp/gcc-4.2.2.tgz
cd /s7/gcc/gcc-4.2.2
mkdir objdir
cd objdir
/s7/gcc/gcc-4.2.2/configure --prefix=/usr/local --program-suffix==4.2.2 --enable-languages=c,c++
gmake

Here is the error message that I get:

gmake[4]: Leaving directory `/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/pthread/ppc64/libiberty'
gmake[3]: Leaving directory `/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/libiberty'
gmake[2]: Leaving directory `/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/libiberty'
/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/libstdc++-v3
gmake[2]: Entering directory `/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/libstdc++-v3'
gmake[2]: *** No rule to make target `all'. Stop.
gmake[2]: Leaving directory `/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/libstdc++-v3'
gmake[1]: *** [all-target-libstdc++-v3] Error 2
gmake[1]: Leaving directory `/s7/gcc/gcc-4.2.2/objdir'
gmake: *** [all] Error 2



How do I fix the problem?

Thanks.


--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: [email protected] \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-24-2008, 11:12 AM
Timothy J. Bogart
 
Posts: n/a
Default Re: Problem building gcc 4.2.2 on AIX 5.3

Hemant Shah wrote:
> Folks,
>
> Has anyone compiled gcc 4.2.2 on AIX 5.3?
> I have gcc 3.3.2 installed on the system and I am trying to build gcc 4.2.2
> but the compile process ran for 2 days and failed while building libstdc++-v3.
>
> Here is what I did:
>
> mkdir /s7/gcc
> cd /s7/gcc
> gtar -xzf /tmp/gcc-4.2.2.tgz
> cd /s7/gcc/gcc-4.2.2
> mkdir objdir
> cd objdir
> /s7/gcc/gcc-4.2.2/configure --prefix=/usr/local --program-suffix==4.2.2 --enable-languages=c,c++
> gmake
>
> Here is the error message that I get:
>
> gmake[4]: Leaving directory `/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/pthread/ppc64/libiberty'
> gmake[3]: Leaving directory `/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/libiberty'
> gmake[2]: Leaving directory `/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/libiberty'
> /s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/libstdc++-v3
> gmake[2]: Entering directory `/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/libstdc++-v3'
> gmake[2]: *** No rule to make target `all'. Stop.
> gmake[2]: Leaving directory `/s7/gcc/gcc-4.2.2/objdir/powerpc-ibm-aix5.3.0.0/libstdc++-v3'
> gmake[1]: *** [all-target-libstdc++-v3] Error 2
> gmake[1]: Leaving directory `/s7/gcc/gcc-4.2.2/objdir'
> gmake: *** [all] Error 2
>
>
>
> How do I fix the problem?
>
> Thanks.
>
>

You might look at my last post

objdir under sourcedir isn't supported (though I, too, read the
instructions like that for several versions).
CONFIG_SHELL=/opt/freeware/bin/bash

Time spent with the prereqs and platform specific is time well spent.

Sounds like you don't have the toolbox version installed, so :

-bash-3.00$ gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.2.0.0
Configured with: ../configure --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --disa
ble-nls --enable-languages=c,c++ --prefix=/opt/freeware --enable-threads
--enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.2.0.0
Thread model: aix
gcc version 4.0.0

HTH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote