This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Unsuccessful build of 3.1 on AIX 5.1
- From: Walter Landry <wlandry at ucsd dot edu>
- To: dje at watson dot ibm dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 20 May 2002 14:43:29 -0700 (PDT)
- Subject: Re: Unsuccessful build of 3.1 on AIX 5.1
- References: <wlandry@ucsd.edu><200205201626.MAA30608@makai.watson.ibm.com>
David Edelsohn <dje@watson.ibm.com> wrote:
> >>>>> Walter Landry writes:
>
> Walter> The mpcc script adds -binitfini:poe_remote_main to the arguments for the C
> Walter> compiler, which sounds a lot like what the special crt0.o is supposed
> Walter> to do. Certainly, the programs run fine without this special crt0.o.
>
> If your version of POE no longer needs crt0.o, you should be able
> to edit the "specs" file on your GCC installation so that it adds
> -binitfini:poe_remote_main to the link line and uses the normal system
> crt0.o. Supporting two different versions of POE in GCC will be
> difficult.
Aha! That is exactly what I needed to do. I made a specs file with
*link:
-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}} %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64} %{mpe:-binitfini:poe_remote_main}
*startfile:
%{!shared: %{mpe:%{pg:/usr/lib/gcrt0.o} %{!pg:%{p:/usr/lib/mcrt0.o} %{!p:/usr/lib/crt0.o}}} %{!mpe: %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}} %{!maix64: %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}} %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}}
Now I can compile and link with -mpe and everything works fine.
Thanks a lot!
Walter Landry
wlandry@ucsd.edu
p.s. Fortran actually seems to work fine. It is just that libf2c
isn't installed.