This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bootstrap failure on powerpc-ibm-aix4.1.4.0 after ppc branch merge
- To: geoffk at cygnus dot com
- Subject: Bootstrap failure on powerpc-ibm-aix4.1.4.0 after ppc branch merge
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 16 Mar 2000 17:31:01 -0500 (EST)
- Cc: egcs-bugs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
Now that the newppc branch is merged back in, I tried
bootstrapping on powerpc-ibm-aix4.1.4.0. The first problem I had was
that collect2 couldn't compile in stage1 because of missing functions
normally found in libld.a. I think x-aix41/x-aix43 used to have
CLIB=-lld in it, but these lines got moved to target files so cross
compiles would work. Now t-aix43 has the CLIB setting and there is no
t-aix41. So I created one. Here's the patch I used to get past this
problem.
diff -rup orig/egcs-CVS20000316/gcc/config/rs6000/t-aix41 egcs-CVS20000316/gcc/config/rs6000/t-aix41
--- orig/egcs-CVS20000316/gcc/config/rs6000/t-aix41 Thu Mar 16 11:36:29 2000
+++ egcs-CVS20000316/gcc/config/rs6000/t-aix41 Thu Mar 16 10:55:55 2000
@@ -0,0 +1,4 @@
+# We need -lld for collect2 (actually this only matters
+# for a native compiler, but this is as good a place as any
+# to define the symbol).
+CLIB=-lld
diff -rup orig/egcs-CVS20000316/gcc/configure.in egcs-CVS20000316/gcc/configure.in
--- orig/egcs-CVS20000316/gcc/configure.in Thu Mar 16 08:33:34 2000
+++ egcs-CVS20000316/gcc/configure.in Thu Mar 16 10:57:28 2000
@@ -3157,7 +3157,7 @@ changequote([,])dnl
then
tmake_file=rs6000/t-xnewas
else
- tmake_file=rs6000/t-newas
+ tmake_file="rs6000/t-newas rs6000/t-aix41"
fi
xmake_file=rs6000/x-aix41
float_format=none
Now having done that, I got an error in stage2 when building libgcc2.a:
> _muldi3
> xgcc: Internal compiler error: program cc1 got fatal signal 4
> make[4]: *** [libgcc2.a] Error 1
Here is the backtrace from gdb:
> This GDB was configured as "powerpc-ibm-aix4.1.4.0"...
> Core was generated by `cc1'.
> Program terminated with signal 4, Illegal instruction.
> #0 rs6000_stack_info ()
> at ../../egcs-CVS20000316/gcc/config/rs6000/rs6000.c:4271
> 4271 return info_ptr;
> Breakpoint 1 at 0xd0000648
> Breakpoint 2 at 0x1000c8a8: file ../../egcs-CVS20000316/gcc/rtl.c, line 1248.
> Breakpoint 3 at 0xd00199e8
> (gdb) where
> #0 rs6000_stack_info ()
> at ../../egcs-CVS20000316/gcc/config/rs6000/rs6000.c:4271
> #1 0x10097f30 in rs6000_stack_info ()
> at ../../egcs-CVS20000316/gcc/config/rs6000/rs6000.c:4190
> #2 0x10046e34 in set_initial_elim_offsets ()
> at ../../egcs-CVS20000316/gcc/reload1.c:3218
> #3 0x10041c20 in reload (first=0x300dd200, global=1, dumpfile=0x0)
> at ../../egcs-CVS20000316/gcc/reload1.c:848
> #4 0x101f389c in global_alloc (file=0x0)
> at ../../egcs-CVS20000316/gcc/global.c:581
> #5 0x100044f0 in rest_of_compilation (decl=0x20023a3c)
> at ../../egcs-CVS20000316/gcc/toplev.c:3498
> #6 0x10016b30 in finish_function (nested=0)
> at ../../egcs-CVS20000316/gcc/c-decl.c:6491
> #7 0x101690f8 in yyparse () at c-parse.y:65
> #8 0x10002270 in compile_file (
> name=0x300d5580 <Address 0x300d5580 out of bounds>)
> at ../../egcs-CVS20000316/gcc/toplev.c:2451
> #9 0x10006908 in main (argc=537011420, argv=0x300d5580)
> at ../../egcs-CVS20000316/gcc/toplev.c:4928
> (gdb) l
> 4266 info_ptr->cr_save_offset = 0;
> 4267
> 4268 if (! info_ptr->toc_save_p)
> 4269 info_ptr->toc_save_offset = 0;
> 4270
> 4271 return info_ptr;
> 4272 }
> 4273
> 4274 void
> 4275 debug_stack_info (info)
> (gdb)
Should I install the CLIB/t-aix41 patch? Any ideas on the core dump?
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions