GCC in AIX

Vardhan, Sundara (GE Infra, Energy) sundara.vardhan@ge.com
Wed Nov 19 14:21:00 GMT 2008


Hi Andrew

Did as you have adviced. Had to change config.in in gcc/libiberty. In
config.in

#ifndef __cplusplus
#define inline __inline
#endif

Changed that to
#ifdef __cplusplus
#define inline __inline
#endif

After this change it compiled fine. However, I have not yet investigated
the implications of this change overall.

Thanks much.

With Regards

Vardhan 

-----Original Message-----
From: Andrew Haley [mailto:aph@redhat.com] 
Sent: Tuesday, November 11, 2008 2:42 PM
To: Vardhan, Sundara (GE Infra, Energy)
Cc: GCC-help
Subject: Re: GCC in AIX

Vardhan, Sundara (GE Infra, Energy) wrote:

> Is it necessary to use the local native compiler - xlc in this case, 
> to compile gcc ? I have a gcc-4.2.3 installed on AIX and would now 
> like to install gcc 4.3.2. However if I compile with existing gcc then

> the compiles is extremly slow and almost does not do much. It took 
> about a day to just finish stage-1. I tried to check for any load etc 
> but could not find any issues with the node. Even rebooted and 
> restarted the compiles still the same issue. Then I switched to the 
> native xlc and xlC compilers, the make was fast but got the following
error :
> 
> "./config.h", line 435.9: 1506-213 (S) Macro name inline cannot be 
> redefined.
> "./config.h", line 435.9: 1506-358 (I) "inline" is defined on line 182

> of /cots/gnu/gcc-4.3.2/libiberty/../include/ansidecl..
> make[3]: *** [pex-common.o] Error 1
> make[3]: Leaving directory `/cots/gnu/build-4.3.2/libiberty'
> make[2]: *** [all-stage1-libiberty] Error 2
> make[2]: Leaving directory `/cots/gnu/build-4.3.2'
> 
> Any ideas as to what the above is.

Well, you know, if I were there I would have actually looked inside
./config.h" to see what xlc was complaining about.  It might be
interesting.

You could try that.  And if you find out that inline is being
incorrectly redefined, you could fix it.

Andrew.



More information about the Gcc-help mailing list