Thursday, April 06, 2006

How to Compile gcc 3.4.4 on aix

## Build environment
# make -v
GNU Make 3.80
# gcc -v
Reading specs from /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/specs
gcc version 2.9-aix51-020209
# CONFIG_SHELL=/usr/local/bin/bash
# export CONFIG_SHELL
# /usr/local/src/gcc-3.4.2/gcc-3.4.2/config.guess
powerpc-ibm-aix5.2.0.0
# /usr/local/src/gcc-3.4.2/gcc-3.4.2/configure --enable-languages=c,c++ --enable-threads=aix --disable-nls
# date
Mon Oct 18 13:51:06 PDT 2004
# make -j 2
# date
Mon Oct 18 15:00:12 PDT 2004
## Note - this is a 2-processor system (IBM P15).
## I did the build twice, with and without -j 2 and saw no performance gain/loss.
## Results
# gcc -v
Reading specs from /usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.2/specs
Configured with: /usr/local/src/gcc-3.4.2/gcc-3.4.2/configure --enable-languages=c,c++ --enable-threads=aix --disable-nls
Thread model: aix
gcc version 3.4.2

2 comments:

Anonymous said...

can u give some help on compiling Progeram codes

Amol P Kesare said...

Please can be specific..
what kind of programe??