AIX

AIX

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

 View Only
  • 1.  GCC compiler on AIX6.1

    Posted Wed January 16, 2008 08:57 PM

    Originally posted by: SystemAdmin


    I've recently installed AIX 6.1 and have installed the latest fixes. I'm trying to install the GCC compiler but am having problems. The AIX toolbox site has GCC for AIX 5.1, 5.2 and 5.3 but not for 6.1. I've tried the version for 5.1 but it doesn't seem to be working. I get the same parse errors on everything I compile.

    I've tried the version out on Bullfreeware as well, it's older, but I get the same errors. Is there a GCC that is specifically compiled for AIX 6.1?

    Thank you.


  • 2.  Re: GCC compiler on AIX6.1

    Posted Wed January 16, 2008 09:21 PM

    Originally posted by: orphy


    I haven't tried 6.1 myself but have you tried using the 5.3 GCC? You might have better luck with it working under 6.1. Just a thought!
    Orphy


  • 3.  Re: GCC compiler on AIX6.1

    Posted Thu January 17, 2008 10:39 AM

    Originally posted by: SystemAdmin


    Well, that's what I am saying, the GCC for AIX 5.3 doesn't seem to be working.

    Actually, though, I've been poking further into this. It seems that there is a bug in one of the files on AIX 6.1

    /usr/include/inistd.h has three lines that both the AIX make and GNU make seem to get hung on. These are lines 914 through 916. There is something about 'rid_t' and a '(' being expected before '[' and some other errors involved.

    Anyway, I saved the file, remarked out the three lines (914-916) and tried running my compile again and found that everything worked just fine.

    I'm think maybe that there needs to be a patch for this file.


  • 4.  Re: GCC compiler on AIX6.1

    Posted Thu January 17, 2008 10:41 AM

    Originally posted by: SystemAdmin


    I'm sorry, I meant ghe GCC for AIX 5.3, not 5.1. Yes, I did try it, but am having the problems with that.


  • 5.  Re: GCC compiler on AIX6.1

    Posted Mon January 21, 2008 01:20 PM

    Originally posted by: SystemAdmin


    Hello I'm having the same issue when I try to install compilers. I even get the same problem when I install XL Fortran.
    Has anyone solved this issue?
    Thanks.


  • 6.  Re: GCC compiler on AIX6.1

    Posted Mon January 21, 2008 04:57 PM

    Originally posted by: SystemAdmin


    We have someone working on a build of gcc for AIX6.1 with intent to add it to the AIX Toolbox. It will be uploaded there when it is ready to go.

    Meanwhile, the rid_t thing is due to the fact that 5.3 headers are being mixed with 6.1 headers by using the 5.3 gcc image on a 6.1 system. This is the result of the compiler doing some local tweaks to system header files in a compiler-local copy. It does this to <sys/types.h> in which "rid_t" is new to 6.1. But, the 5.3 gcc patch copy of this file (installed with the 5.3 compiler) doesn't know about rid_t, and during compile gcc uses these in place of the native system headers, where they exist (but since unistd.h didn't have a patch, you get that one from 6.1 and thus it's looking for a 'rid_t' type that it never saw.)

    Hopefully it won't take much longer to get the 6.1 gcc images. They'll be uploaded when ready.
    (I have no info on XL Fortran install question.)


  • 7.  Re: GCC compiler on AIX6.1

    Posted Wed February 06, 2008 04:16 PM

    Originally posted by: SystemAdmin


    Thank you.


  • 8.  Re: GCC compiler on AIX6.1

    Posted Fri February 08, 2008 02:21 PM

    Originally posted by: SystemAdmin


    Hi there

    Are there any updates on this yet?


  • 9.  Re: GCC compiler on AIX6.1

    Posted Sun February 10, 2008 01:03 PM

    Originally posted by: nagger


    Get you GCC for AIX 6.1 here http://www.perzl.org/aix/

    And full marks to Michael Perzl for making these are other Open Source tools available.

    ta N