AIX

AIX

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


#Power
#Power
 View Only
  • 1.  Broken gcc compiler

    Posted Tue August 11, 2009 07:13 AM

    Originally posted by: SystemAdmin


    In attempting to upgrade my gcc compiler from 4.2.0 to 4.2.4 it appears I´ve broken it.

    To upgrade it I ran the command:

    rpm -Uvh gcc-4.2.4-1.aix6.1.ppc.rpm

    When I do a gcc -v the upgrade appears successful. However, when try to use the compiler I get the following error:

    configure: loading cache ./config.cache
    checking for gcc... /opt/freeware/bin/gcc -maix64
    checking for C compiler default output file name... configure: error: C compiler cannot create executables
    See `config.log' for more details.

    Help!!!!
    #AIX-Forum


  • 2.  Re: Broken gcc compiler

    Posted Tue August 11, 2009 09:59 AM

    Originally posted by: SystemAdmin


    Looking at my log file I´ve found the problem:

    gcc: error trying to exec 'cc1': execvp: No such file or directory
    configure:1810: $? = 1
    configure: failed program was:
    | /* confdefs.h. */
    Anyone know how to resolve this???
    #AIX-Forum


  • 3.  Re: Broken gcc compiler

    Posted Tue August 11, 2009 11:30 AM

    Originally posted by: SystemAdmin


    Well I managed to get the gcc compiler working. For those who are interested you need to install the following rpms to get gcc working:

    gcc-4.2.4-1.aix6.1.ppc.rpm
    libgcc-4.2.4-1.aix6.1.ppc.rpm
    gcc-c++-4.2.4-1.aix6.1.ppc.rpm
    libstdc++-4.2.4-1.aix6.1.ppc.rpm
    libstdc++-devel-4.2.4-1.aix6.1.ppc.rpm
    gcc-cpp-4.2.4-1.aix6.1.ppc.rpm
    gmp-4.3.1-1.aix5.1.ppc.rpm
    mpfr-2.4.1-1.aix5.1.ppc.rpm
    gcc-gfortran-4.2.4-1.aix6.1.ppc.rpm

    Luckily they can all be found on the following website (big thank you to the guy who runs it):

    http://www.perzl.org/aix/
    #AIX-Forum


  • 4.  Re: Broken gcc compiler

    Posted Fri August 20, 2010 04:54 AM

    Originally posted by: saavyone


    I had the same problem compiling apache 2.2.16 on AIX 6.1. I wasted a lot of time until I stumbled on to this thread.
    Thanks to paul_in_madrid for the list.
    Special thanks to Dr. Michael Perzl for the rpms

    Here's the ones I needed:
    expat-2.0.1-2.aix5.1.ppc.rpm (required by gettext)
    gettext-0.17-1.aix5.1.ppc.rpm (required by info)
    info-4.13a-1.aix5.1.ppc.rpm (required by gcc)
    libgcc-4.2.4-2.aix6.1.ppc.rpm (required by gcc)
    gcc-4.2.4-2.aix6.1.ppc.rpm (required by gcc-cpp)
    gcc-cpp-4.2.4-2.aix6.1.ppc.rpm
    #AIX-Forum


  • 5.  Re: Broken gcc compiler

    Posted Thu January 12, 2012 07:32 PM

    Originally posted by: rsennewald


    I was having the same issue, then came across this thread. I installed all rpms listed by Paul and voila! My C Compiler was now working! I was then able to install ruby from source! Thanks for the tips.
    #AIX-Forum