AIX, gcc-2.95.1, and alloca -buildm error
stevepr@crt.com
stevepr@crt.com
Thu Oct 14 08:53:00 GMT 1999
> Laruie,
> I have gotten gcc to build and install on aix.
>
> cd into some dir
> gunzip -c gcc-2.95.1.tar.gz | tar xvf -
> mkdir aix-gcc
> cd aix-gcc
> export $MAKE={ path to gnu make, I used 3.78.1, gnu make may be required
> and
> xlc will build it }
> ../gcc-2.95.1/configure --enable-languages=c,c++
> $MAKE bootstrape
> $MAKE -k check
> $MAKE info
> $MAKE install
>
> This will also build the stdlibc++.a.2.10.0 which contains the stl for
> c++.
>
> Good luck.
>
> Steve Pribyl
>
>
> > > -----Original Message-----
> > > From: Laurie Zirkle [SMTP:lat@cns.vt.edu]
> > > Sent: Tuesday, October 05, 1999 1:32 PM
> > > To: stevepr@crt.com
> > > Subject: Re: Your message to gcc-help
> > >
> > > I went poking thru the AIX faq and found this tidbit; maybe it will
> help
> > > you
> > > (I don't have time to try again today).
> > >
> > > Subject: 2.01: I cannot make alloca work
> > >
> > > A famous routine, in particular in GNU context, is the allocation
> > > routine alloca(). Alloca allocates memory in such a way that it
> is
> > > automatically free'd when the block is exited. Most
> implementations
> > > does this by adjusting the stack pointer. Since not all C
> > > environments
> > > can support it, its use is discouraged, but it is included in the
> xlc
> > > compiler. In order to make the compiler aware that you intend to
> use
> > > alloca, you must put the line
> > >
> > > #pragma alloca
> > >
> > > before any other statements in the C source module(s) where
> alloca
> is
> > > called. If you don't do this, xlc will not recognize alloca as
> > > anything
> > > special, and you will get errors during linking.
> > >
> > > For AIX 3.2, it may be easier to use the -ma flag.
> > >
> > >
> > >
> > > From the fingers of stevepr@crt.com:
> > > > Nope not yet.
> > > >
> > > > However I have found that there may be some issues with the native
> make
> > > > program. I have tried the gnu make, It seems to work better, still
> > > fails
> > > > but at a different point.
> > > >
> > > > I will be sure to post what ever answer I get.
> > > > Steve Pribyl
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Laurie Zirkle [SMTP:lat@cns.vt.edu]
> > > > > Sent: Tuesday, October 05, 1999 7:32 AM
> > > > > To: stevepr@crt.com
> > > > > Subject: Your message to gcc-help
> > > > >
> > > > > Have you received any responses yet? I have the exact same
> problem
> > > trying
> > > > > to compile gcc under AIX 4.3.2 using cc. I didn't see an answer
> to
> > > the
> > > > > list yet.
> > > > >
> > > > > --
> > > > > Laurie Zirkle, CSE E-mail: lat@vt.edu Pager:
> > > (540)953-3691
> > > > > Virginia Tech CNS Voice: (540)231-6370 Fax: (540)
> 231-3928
> > > > > Blacksburg VA 24061-0506
> > >
> > > --
> > > Laurie
> >
More information about the Gcc-help
mailing list