This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: compiler chain on AIX


Well,

Here's a couple quick ones for you, one that I've had some luck at unwinding - 

The gcc compiler has a flag '-b' which also is used by the underlying linker.

If I for example, change:

	gcc -bmaxdata:0x80000000

to
	gcc -Wl,-bmaxdata:0x8000000

then I have better luck compiling. I've run into these 'expect gnu ld flag' errors
in quite a few places, because the underlying gnu tools generate make scripts with these
flags in them.

Another one.. There are broken libraries that ship with AIX (for one, the AIX library
that ships with it in /usr/lib) Link with those, and you'll get run-time errors.

As I'm going through, yes I can make mods to work around these bugs, but it sure is
a pain.. It would be much easier if gnu-ld simply *worked* on AIX (and of course AIX 
stopped shipping broken libraries)

Ed


On Fri, Aug 24, 2007 at 04:53:21PM -0400, David Edelsohn wrote:
> >>>>> Ed S Peschko writes:
> 
> Ed> which would be fine if the AIX linker works, but I'm getting segmentation
> Ed> faults when compiling perl out of the box, using the gcc-4.1.0 compiler
> Ed> provided.. I'm wondering if its the compiler, the linker, or both...
> 
> 	You have not provided information for anyone to help with that
> assessment.
> 
> Ed> (ps - if I can't get ld to work with gcc, my guess is that it's 
> Ed> going to be very painful to compile the freeware packages on AIX 
> Ed> that are needed, considering that half of them expect gnu ld flags,
> Ed> not native ones... so I'm hoping that someone has gotten gnu ld to 
> Ed> work out there.)
> 
> 	Again, there is no reason to assume that this is a problem with
> the interaction between AIX ld and GCC.
> 
> 	Also, many freeware packages test the configuration and do not
> assume GNU+Linux linker options.
> 
> David
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]