public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Bootstrap failure on AIX4, alloca missing, (main trunk only)
@ 1999-06-08 9:01 Kaveh R. Ghazi
1999-06-30 23:07 ` Jim Wilson
0 siblings, 1 reply; 3+ messages in thread
From: Kaveh R. Ghazi @ 1999-06-08 9:01 UTC (permalink / raw)
To: egcs-bugs; +Cc: wilson
I'm having a strange problem bootstrapping gcc-2.96 19990607
on powerpc-ibm-aix4.1.4.0. It occurs when I use cc for stage1.
> cc -DIN_GCC -DHAIFA -g -DHAVE_CONFIG_H -o cccp cccp.o cexp.o intl.o
> prefix.o version.o mbchar.o obstack.o ../libiberty/libiberty.a
> ld: 0711-317 ERROR: Undefined symbol: .alloca
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> make[2]: *** [cccp] Error 8
Normally x-aix41 tells gcc to link with alloca.o, but it
hasn't worked for a couple of weeks. I did some investigation and it
appears that x-aix41 is no longer inserted into the Makefile at all.
(E.g. if you link with alloca.o by hand everywhere, there are other
problems caused by x-aix41 not being used.) I think this started
happening after the following patch was installed. I can't tell why
the patch would cause this to happen though. (I.e. the patch looks
perfectly fine.)
> Mon May 24 20:30:08 1999 Jim Wilson <wilson@cygnus.com>
>
> * configure.in (rs6000-ibm-aix4.[12]*): Delete use of aix41-gld.h.
> Add use of x-aix41-gld.
Note this patch, and thus the problem itself, only occurs on
the trunk, not on the 2.95 branch.
So you ask: why didn't the link get alloca.o from libiberty.a? :-)
Well that's because AC_FUNC_ALLOCA determines that AIX4 does have
alloca because the test utilizes "#pragma alloca", but we don't issue
that pragma or do any other alloca handling in the sources other than
in the x-* files. I don't know if we want to change that, but it did
throw me a puzzle... :-)
Anyway, if someone familiar with the $xmake_file handling in
configure.in could give me some tips I'd appreciate it. Otherwise,
I'll try to figure it out myself.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions
>From dave@hiauly1.hia.nrc.ca Tue Jun 08 10:52:00 1999
From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
To: egcs-bugs@egcs.cygnus.com
Subject: autogen Expression error in ../../../gcc/fixinc/fixincl.tpl on line 25
Date: Tue, 08 Jun 1999 10:52:00 -0000
Message-id: <199906081752.NAA16182@hiauly1.hia.nrc.ca>
X-SW-Source: 1999-06/msg00197.html
Content-length: 794
The following error occurs in gcc-2.95 19990608:
make[3]: Entering directory `/xxx/gnu/gcc-2.95/objdir/gcc/fixinc'
autogen -DPROGRAM=1 -b fixincl inclhack.def
autogen -T fixincl.tpl -b fixincl inclhack.def
autogen Expression error in ../../../gcc/fixinc/fixincl.tpl on line 25
invalid expression Cannot find function: KRSTR
make[3]: *** [fixincl.x] Error 1
make[3]: Leaving directory `/xxx/gnu/gcc-2.95/objdir/gcc/fixinc'
Could not install binary fixincludes.
Installing shell script instead.
I guess I need to update autogen to version 4.5.3 to evaluate this
expression. However, this is non trivial under hpux for a variety
of reasons.
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
>From law@cygnus.com Tue Jun 08 11:09:00 1999
From: Jeffrey A Law <law@cygnus.com>
To: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
Cc: egcs-bugs@egcs.cygnus.com
Subject: Re: autogen Expression error in ../../../gcc/fixinc/fixincl.tpl on line 25
Date: Tue, 08 Jun 1999 11:09:00 -0000
Message-id: <8216.928865114@upchuck.cygnus.com>
References: <199906081752.NAA16182@hiauly1.hia.nrc.ca>
X-SW-Source: 1999-06/msg00198.html
Content-length: 818
In message < 199906081752.NAA16182@hiauly1.hia.nrc.ca >you write:
> The following error occurs in gcc-2.95 19990608:
>
> make[3]: Entering directory `/xxx/gnu/gcc-2.95/objdir/gcc/fixinc'
> autogen -DPROGRAM=1 -b fixincl inclhack.def
> autogen -T fixincl.tpl -b fixincl inclhack.def
> autogen Expression error in ../../../gcc/fixinc/fixincl.tpl on line 25
> invalid expression Cannot find function: KRSTR
> make[3]: *** [fixincl.x] Error 1
> make[3]: Leaving directory `/xxx/gnu/gcc-2.95/objdir/gcc/fixinc'
> Could not install binary fixincludes.
> Installing shell script instead.
>
> I guess I need to update autogen to version 4.5.3 to evaluate this
> expression. However, this is non trivial under hpux for a variety
> of reasons.
Yes. You need a newer version of autogen.
jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bootstrap failure on AIX4, alloca missing, (main trunk only)
1999-06-08 9:01 Bootstrap failure on AIX4, alloca missing, (main trunk only) Kaveh R. Ghazi
@ 1999-06-30 23:07 ` Jim Wilson
0 siblings, 0 replies; 3+ messages in thread
From: Jim Wilson @ 1999-06-30 23:07 UTC (permalink / raw)
To: Kaveh R. Ghazi; +Cc: egcs-bugs, egcs-patches
The problem is a typo in my patch. I checked in the following patch to fix
it.
Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
* configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.253
diff -p -r1.253 configure.in
*** configure.in 1999/06/07 21:38:30 1.253
--- configure.in 1999/06/08 20:06:09
*************** changequote([,])dnl
*** 2931,2937 ****
then
xmake_file=rs6000/x-aix41-gld
else
! xmake_file=rx6000/x-aix41
fi
float_format=none
use_collect2=yes
--- 2931,2937 ----
then
xmake_file=rs6000/x-aix41-gld
else
! xmake_file=rs6000/x-aix41
fi
float_format=none
use_collect2=yes
Index: configure
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure,v
retrieving revision 1.249
diff -p -r1.249 configure
*** configure 1999/06/07 21:38:27 1.249
--- configure 1999/06/08 20:06:09
*************** for machine in $build $host $target; do
*** 5240,5246 ****
then
xmake_file=rs6000/x-aix41-gld
else
! xmake_file=rx6000/x-aix41
fi
float_format=none
use_collect2=yes
--- 5240,5246 ----
then
xmake_file=rs6000/x-aix41-gld
else
! xmake_file=rs6000/x-aix41
fi
float_format=none
use_collect2=yes
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bootstrap failure on AIX4, alloca missing, (main trunk only)
@ 1999-06-30 23:07 Kaveh R. Ghazi
0 siblings, 0 replies; 3+ messages in thread
From: Kaveh R. Ghazi @ 1999-06-30 23:07 UTC (permalink / raw)
To: wilson; +Cc: egcs-bugs, egcs-patches
> From: Jim Wilson <wilson@cygnus.com>
>
> The problem is a typo in my patch. I checked in the following patch
> to fix it.
>
> Tue Jun 8 13:06:15 1999 Jim Wilson <wilson@cygnus.com>
>
> * configure.in (rs6000-ibm-aix4.[12]*): Change rx6000 to rs6000.
> * configure: Regenerate.
Grr, I must have stared at it a thousand times without
noticing that typo. :-) Thanks Jim.
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-06-30 23:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-08 9:01 Bootstrap failure on AIX4, alloca missing, (main trunk only) Kaveh R. Ghazi
1999-06-30 23:07 ` Jim Wilson
1999-06-30 23:07 Kaveh R. Ghazi
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).