This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bootstrap/9930: gcc 3.2.2 bootstrap fails on AIX 5.1 with binutils 2.13.2


>Number:         9930
>Category:       bootstrap
>Synopsis:       gcc 3.2.2 bootstrap fails on AIX 5.1 with binutils 2.13.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 04 01:46:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     cruvolo at inviosoftware dot com
>Release:        gcc 3.2.2
>Organization:
>Environment:
AIX 5.1, powerpc-ibm-aix5.1.0.0, gcc 2.9-aix51-020209
>Description:
Unable to make bootstrap on AIX 5.1 with gcc 2.9-aix51-020209.

Yes, APAR IY25528 is applied already.

This build bombs out with a core dump.  Where in the bootstrap the core dump happens depends on the config line (see "how-to-repeat"), but happens within the same bfd function.

I have not been able to fix this by using an older version of binutils either.  Any ideas?


With the first config line (--without-gnu-as --without-gnu-ld):

/vol2/cruvolo/fbe/gcc-objdir/gcc/../binutils/ar -X32_64 rc ./libgcc.a libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_exit.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./_pack_sf.o libgcc/./_unpack_sf.o libgcc/./_addsub_sf.o libgcc/./_mul_sf.o libgcc/./_div_sf.o libgcc/./_fpcmp_parts_sf.o libgcc/./_compare_sf.o libgcc/./_eq_sf.o libgcc/./_ne_sf.o libgcc/./_gt_sf.o libgcc/./_ge_sf.o libgcc/./_lt_sf.o libgcc/./_le_sf.o libgcc/./_unord_sf.o libgcc/./_si_to_sf.o libgcc/./_sf_to_si.o libgcc/./_negate_sf.o libgcc/./_make_sf.o libgcc/./_sf_to_df.o libgcc/./_thenan_sf.o libgcc/./_sf_to_usi.o libgcc/./_usi_to_sf.o libgcc/./_pack_df.o libgcc/./_unpack_df.o libgcc/./_addsub_df.o libgcc/./_mul_df.o libgcc/./_div_df.o libgcc/./_fpcmp_parts_df.o libgcc/./_compare_df.o libgcc/./_eq_df.o libgcc/./_ne_df.o libgcc/./_gt_df.o libgcc/./_ge_df.o libgcc/./_lt_df.o libgcc/./_le_df.o libgcc/./_unord_df.o libgcc/./_si_to_df.o libgcc/./_df_to_si.o libgcc/./_negate_df.o libgcc/./_make_df.o libgcc/./_df_to_sf.o libgcc/./_thenan_df.o libgcc/./_df_to_usi.o libgcc/./_usi_to_df.o libgcc/./_eprintf.o libgcc/./_bb.o libgcc/./__gcc_bcmp.o
gmake[3]: *** [libgcc.a] Segmentation fault (core dumped)
gmake[3]: Leaving directory `/vol2/cruvolo/fbe/gcc-objdir/gcc'


The following is the gdb backtrace (using GNU gdb 5.0-aix51-020209) of lt-ar using the given core:

#0  0xd0d2ab90 in objalloc_create ()
#1  0xd0d2529c in _bfd_new_bfd () at ../../gcc-3.2.2/bfd/opncls.c:53
#2  0xd0d254a8 in bfd_openr (filename=0x2ff21214 "libgcc/./_muldi3.o", 
    target=0x0) at ../../gcc-3.2.2/bfd/opncls.c:148
#3  0x10001f68 in open_inarch (archive_filename=0x2ff21209 "./libgcc.a", 
    file=0x2ff21214 "libgcc/./_muldi3.o") at ../../gcc-3.2.2/binutils/ar.c:773
#4  0x10001d3c in main (argc=95, argv=0x2ff20e5c)
    at ../../gcc-3.2.2/binutils/ar.c:676
#5  0x100001dc in __start ()


With the second configure line (using gas):

./xgcc -B./ -B/usr/local/fbe/1.0/powerpc-ibm-aix5.1.0.0/bin/ -isystem /usr/local/fbe/1.0/powerpc-ibm-aix5.1.0.0/include -isystem /usr/local/fbe/1.0/powerpc-ibm-aix5.1.0.0/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include   -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc-3.2.2/gcc -I../../gcc-3.2.2/gcc/. -I../../gcc-3.2.2/gcc/config -I../../gcc-3.2.2/gcc/../include  -DL_muldi3 -c ../../gcc-3.2.2/gcc/libgcc2.c -o libgcc/./_muldi3.o
xgcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
gmake[3]: *** [libgcc/./_muldi3.o] Error 1
gmake[3]: Leaving directory `/vol2/cruvolo/fbe/gcc-objdir/gcc'


The following is the gdb backtrace (using GNU gdb 5.0-aix51-020209) of lt-as-new using the given core:

#0  0xd0d2ab90 in objalloc_create ()
#1  0xd0d2529c in _bfd_new_bfd () at ../../gcc-3.2.2/bfd/opncls.c:53
#2  0xd0d25830 in bfd_openw (
    filename=0x20010a08 <Address 0x20010a08 out of bounds>, 
    target=0x10048b3c "aixcoff-rs6000") at ../../gcc-3.2.2/bfd/opncls.c:357
#3  0x1003eed8 in output_file_create (
    name=0x20010a08 <Address 0x20010a08 out of bounds>)
    at ../../gcc-3.2.2/gas/output-file.c:50
#4  0x100022d8 in main (argc=2, argv=0x200109d8)
    at ../../gcc-3.2.2/gas/as.c:860
#5  0x100001dc in __start ()
>How-To-Repeat:
unpack gcc-3.2.2
unpack binutils-2.13.2
cd gcc-3.2.2

rm -rf libiberty
ln -s ../binutils-2.13.2/libiberty libiberty
ln -s ../binutils-2.13.2/bfd bfd
ln -s ../binutils-2.13.2/binutils binutils
ln -s ../binutils-2.13.2/gas gas
ln -s ../binutils-2.13.2/gprof gprof
ln -s ../binutils-2.13.2/ld ld
ln -s ../binutils-2.13.2/opcodes opcodes
ln -s ../binutils-2.13.2/intl intl

mkdir ../gcc-objdir
cd ../gcc-objdir

../gcc-3.2.2/configure --prefix=$FBETOP --with-stabs  --enable-shared --enable-threads=posix --without-gnu-as --with-as=/usr/bin/as --without-gnu-ld --with-ld=/usr/bin/ld

gmake CFLAGS='-O -g' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2' bootstrap 


-- OR --

../gcc-3.2.2/configure --prefix=$FBETOP --with-stabs --enable-shared --enable-threads=posix

gmake CFLAGS='-O -g' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2' bootstrap 
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]