public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* AIX, gcc-2.95.1, and alloca -buildm error
@ 1999-10-04  9:22 stevepr
  1999-10-31 13:57 ` stevepr
  0 siblings, 1 reply; 6+ messages in thread
From: stevepr @ 1999-10-04  9:22 UTC (permalink / raw)
  To: gcc-help

I am trying to build gcc-2.95.1 on an RS6000 running AIX 4.2 an get the
following error.  Does anybody know what this is about.  I can provide more
information if it is needed.

        xlC  -DIN_GCC -DHAIFA    -O2 -g   -DHAVE_CONFIG_H -Wl,-bbigtoc -o
genattr  genattr.o rtl.o bitmap.o print-rtl.o ` case "obstack.o" in ?*) echo
obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;; esac ` ` case
"" in ?*) echo  ;; esac `    ` case "" in ?*) echo  ;; esac ` ` case "" in
?*) echo  ;; esac `  -lld
ld: 0711-317 ERROR: Undefined symbol: .alloca
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.

Thanks
Steve Pribyl


^ permalink raw reply	[flat|nested] 6+ messages in thread

* AIX, gcc-2.95.1, and alloca -buildm error
  1999-10-04  9:22 AIX, gcc-2.95.1, and alloca -buildm error stevepr
@ 1999-10-31 13:57 ` stevepr
  0 siblings, 0 replies; 6+ messages in thread
From: stevepr @ 1999-10-31 13:57 UTC (permalink / raw)
  To: gcc-help

I am trying to build gcc-2.95.1 on an RS6000 running AIX 4.2 an get the
following error.  Does anybody know what this is about.  I can provide more
information if it is needed.

        xlC  -DIN_GCC -DHAIFA    -O2 -g   -DHAVE_CONFIG_H -Wl,-bbigtoc -o
genattr  genattr.o rtl.o bitmap.o print-rtl.o ` case "obstack.o" in ?*) echo
obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;; esac ` ` case
"" in ?*) echo  ;; esac `    ` case "" in ?*) echo  ;; esac ` ` case "" in
?*) echo  ;; esac `  -lld
ld: 0711-317 ERROR: Undefined symbol: .alloca
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.

Thanks
Steve Pribyl


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: AIX, gcc-2.95.1, and alloca -buildm error
  1999-10-18  6:42 stevepr
@ 1999-10-31 13:57 ` stevepr
  0 siblings, 0 replies; 6+ messages in thread
From: stevepr @ 1999-10-31 13:57 UTC (permalink / raw)
  To: scott.kinnane; +Cc: gcc-help

Scott,

I did get 2.95.1 to build and run on 4.2.
You need to do the following
build gnu make.  gcc will not build with the AIX make

$ export MAKE={your gnu make path}
$ cd somedir
$ gunzip -c gcc-2.95.1.tar.gz | tar xvf -
$ mkdir {build-dir} 
$ cd {build-dir}
$ ../gcc-2.95.1/configure --enable-languages=c,c++ {do not build all,  java
does not seem to work yet and will fail.}
$ $MAKE bootstrap
$ $MAKE -k check
$ $MAKE info
$ $MAKE install

NOTE: The build-dir and gcc-2.95.1 should be in the same dir as gcc-2.95.1.
Do not build gcc in gcc-2.95.1 it won't work.

However we ran into the parsing bug and can't us it, see known bugs.
We have installed egcs-1.1.2 instead and it seems to be working fine.

Thanks
Steve Pribyl


> -----Original Message-----
> From:	Scott Kinnane [SMTP:scott.kinnane@prth.pgs.com]
> Sent:	Monday, October 18, 1999 1:23 AM
> To:	stevepr@crt.com
> Subject:	Re: AIX, gcc-2.95.1, and alloca -buildm error
> 
> Steve,
> 
> I know this isn't what you wanted to see, but I was wondering if you'd
> had any success building 2.95.1 under AIX?
> 
> I've been trying it under 4.3.2 and got the same problem. FYI, I just
> downloaded a source from http://aixpdslib.seas.ucla.edu/aixpdslib.html I
> don't know if its any different, but the site claims to have 2.95.1
> working for 4.3 (probably 4.2 as well).
> 
> Anyway, if you don't mind, can you let me know how you got any/any tips
> you may have received. ... So much for a self compiling compiler ...
> 
> scott << File: Card for Scott Kinnane >> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: AIX, gcc-2.95.1, and alloca -buildm error
  1999-10-14  8:53 stevepr
@ 1999-10-31 13:57 ` stevepr
  0 siblings, 0 replies; 6+ messages in thread
From: stevepr @ 1999-10-31 13:57 UTC (permalink / raw)
  To: gcc-help; +Cc: lat

> 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
> >

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: AIX, gcc-2.95.1, and alloca -buildm error
@ 1999-10-18  6:42 stevepr
  1999-10-31 13:57 ` stevepr
  0 siblings, 1 reply; 6+ messages in thread
From: stevepr @ 1999-10-18  6:42 UTC (permalink / raw)
  To: scott.kinnane; +Cc: gcc-help

Scott,

I did get 2.95.1 to build and run on 4.2.
You need to do the following
build gnu make.  gcc will not build with the AIX make

$ export MAKE={your gnu make path}
$ cd somedir
$ gunzip -c gcc-2.95.1.tar.gz | tar xvf -
$ mkdir {build-dir} 
$ cd {build-dir}
$ ../gcc-2.95.1/configure --enable-languages=c,c++ {do not build all,  java
does not seem to work yet and will fail.}
$ $MAKE bootstrap
$ $MAKE -k check
$ $MAKE info
$ $MAKE install

NOTE: The build-dir and gcc-2.95.1 should be in the same dir as gcc-2.95.1.
Do not build gcc in gcc-2.95.1 it won't work.

However we ran into the parsing bug and can't us it, see known bugs.
We have installed egcs-1.1.2 instead and it seems to be working fine.

Thanks
Steve Pribyl


> -----Original Message-----
> From:	Scott Kinnane [SMTP:scott.kinnane@prth.pgs.com]
> Sent:	Monday, October 18, 1999 1:23 AM
> To:	stevepr@crt.com
> Subject:	Re: AIX, gcc-2.95.1, and alloca -buildm error
> 
> Steve,
> 
> I know this isn't what you wanted to see, but I was wondering if you'd
> had any success building 2.95.1 under AIX?
> 
> I've been trying it under 4.3.2 and got the same problem. FYI, I just
> downloaded a source from http://aixpdslib.seas.ucla.edu/aixpdslib.html I
> don't know if its any different, but the site claims to have 2.95.1
> working for 4.3 (probably 4.2 as well).
> 
> Anyway, if you don't mind, can you let me know how you got any/any tips
> you may have received. ... So much for a self compiling compiler ...
> 
> scott << File: Card for Scott Kinnane >> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: AIX, gcc-2.95.1, and alloca -buildm error
@ 1999-10-14  8:53 stevepr
  1999-10-31 13:57 ` stevepr
  0 siblings, 1 reply; 6+ messages in thread
From: stevepr @ 1999-10-14  8:53 UTC (permalink / raw)
  To: gcc-help; +Cc: lat

> 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
> >

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-10-31 13:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-04  9:22 AIX, gcc-2.95.1, and alloca -buildm error stevepr
1999-10-31 13:57 ` stevepr
1999-10-14  8:53 stevepr
1999-10-31 13:57 ` stevepr
1999-10-18  6:42 stevepr
1999-10-31 13:57 ` stevepr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).