AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

GCC 3.4.6 compile error on AIX 5.2 (help needed)

  • 1.  GCC 3.4.6 compile error on AIX 5.2 (help needed)

    Posted Fri September 29, 2006 01:17 PM

    Originally posted by: SystemAdmin


    Here is how last compile was configured.

    ./configure

    --prefix=/usr/local/gcc-3.46 \

    --enable-languages=c,c++ \

    --with-pic \

    --enable-shared=libgcc,libgcc_s,libffi,zlib,boehm-gc,libjava2 \

    --enable-threads=posix

    Here is how makefile was run

    gmake CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-template ' bootstrap

    Here are the errors I get

    checking for powerpc-ibm-aix5.2.0.0-gcc... /usr/sys/inst.images/gcc346/gcc-build/gcc/xgcc -B/usr/sys/inst.images/gcc346/gcc-build/gcc/ -B/usr/local/gcc-3.4.6/powerpc-ibm-aix5.2.0.0/bin/ -B/usr/local/gcc-3.4.6/powerpc-ibm-aix5.2.0.0/lib/ -isystem /usr/local/gcc-3.4.6/powerpc-ibm-aix5.2.0.0/include -isystem /usr/local/gcc-3.4.6/powerpc-ibm-aix5.2.0.0/sys-include -maix64

    checking for C compiler default output file name... a.out

    checking whether the C compiler works... configure: error: cannot run C compiled programs.

    If you meant to cross compile, use `--host'.

    See `config.log' for more details.

    gmake[1]: *** configure-target-libstdc++-v3 Error 1

    gmake[1]: Leaving directory `/usr/sys/inst.images/gcc346/gcc-build'

    gmake: *** bootstrap Error 2

    Here is what is written in config.log

    configure:3917: checking for ranlib

    configure:3956: checking for powerpc-ibm-aix5.2.0.0-windres

    configure:3989: checking for windres

    configure:4056: checking whether to enable maintainer-specific portions of Makefiles

    I am not sure how to fix this error or what is missing on the AIX system.

    Please help!!!!!!!


  • 2.  Why compile that "old" stuff?

    Posted Sat September 30, 2006 11:05 AM

    Originally posted by: nagger


    Why not use GCC 4?

    You can download it precompiled from http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html

    Or GCC 4.1.1 from
    http://aixpdslib.seas.ucla.edu/index.html