Stage 2 cc1 hang on AIX 7.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am having problems getting gcc to compile on AIX 7.1. Specifically,
it seems to go ok through stage 1, however it hangs at stage 2 when
invoking xgcc (which seems to invoke cc1 and hangs).

The build log looks like this:

.....
mkdir -p -- powerpc-ibm-aix7.1/libgcc
Checking multilib configuration for libgcc...
Configuring stage 2 in powerpc-ibm-aix7.1/libgcc
configure: creating cache ./config.cache
checking build system type... powerpc-ibm-aix7.1
checking host system type... powerpc-ibm-aix7.1
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /mnts/cdstools/share/bin/install-sh
checking for gawk... nawk
checking for powerpc-ibm-aix7.1-ar... ar -X32_64
checking for powerpc-ibm-aix7.1-lipo... lipo
checking for powerpc-ibm-aix7.1-nm...
/local/cds/alitvin/aix-ppc-7.1/gcc-4.8.0p1/./gcc/nm -B -X32_64
checking for powerpc-ibm-aix7.1-ranlib... ranlib
checking for powerpc-ibm-aix7.1-strip... strip
checking whether ln -s works... yes
checking for powerpc-ibm-aix7.1-gcc...
/local/cds/alitvin/aix-ppc-7.1/gcc-4.8.0p1/./gcc/xgcc
-B/local/cds/alitvin/aix-ppc-7.1/gcc-4.8.0p1/./gcc/
-B/mnts/cdstools/gcc-4.8.0p1/aix-ppc-7.1/powerpc-ibm-aix7.1/bin/
-B/mnts/cdstools/gcc-4.8.0p1/aix-ppc-7.1/powerpc-ibm-aix7.1/lib/
-isystem /mnts/cdstools/gcc-4.8.0p1/aix-ppc-7.1/powerpc-ibm-aix7.1/include
-isystem /mnts/cdstools/gcc-4.8.0p1/aix-ppc-7.1/powerpc-ibm-aix7.1/sys-include
<HANG HERE>

Attaching with GDB gives me some stack trace (however probably bogus
due to optimizations .. at least it mentions global constructors):

> gdb /local/cds/alitvin/aix-ppc-7.1/gcc-4.8.0p1/./gcc/cc1 47186020
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix5.3.0.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /local/cds/alitvin/aix-ppc-7.1/gcc-4.8.0p1/gcc/cc1...done.
Attaching to program:
/local/cds/alitvin/aix-ppc-7.1/gcc-4.8.0p1/gcc/cc1, process 47186020
0x108a5eec in std::__timepunct<char>::__timepunct(std::__timepunct_cache<char>*,
unsigned long) ()
(gdb) bt
#0  0x108a5eec in
std::__timepunct<char>::__timepunct(std::__timepunct_cache<char>*,
unsigned long) ()
#1  0x108a0310 in std::locale::_Impl::_Impl(unsigned long) () at  _start_ :420
#2  0x108a69e0 in std::locale::_S_initialize_once () at  _start_ :267
#3  0x108a697c in std::locale::_S_initialize () at  _start_ :279
#4  0x1089fd9c in text () at  _start_ :210
#5  0x10899f50 in std::ios_base::Init::Init() () at  _start_ :543
#6  0x109ff674 in global constructors keyed to
65535_0__Z10free_scops3vecIP4scop7va_heap6vl_ptrE () at  _start_ :3281
#7  0x10b66ce0 in _GLOBAL__FI_cc1 ()
#8  0xd017f974 in mod_init1 () from /usr/lib/libc.a(shr.o)
#9  0xd017f674 in __modinit () from /usr/lib/libc.a(shr.o)
#10 0x100001c8 in __start ()
(gdb)

The configure for gcc is extreamly messy mainly because 3rd party
tools (mpc, mpfr etc) are built separately and the config is generated
by a custom-built 3rd party build script. It does not look to contain
anyting too bad as far as I can tell. It looks like this:

/mnts/cdstools/bash-4.2/aix-ppc-7.1/bin/bash -p
/mnts/cdstools/build/source/gcc-4.8.0p1/configure
BOOT_LDFLAGS=-Wl,-bmaxdata:0x40000000 -Wl,-blibpath:/usr/lib:/lib
-Wl,-bsvr4 -Wl,-bnoipath
PKG_CONFIG_PATH=/mnts/cdstools/cloog-0.18.0/aix-ppc-7.1-gcc-4.6-static/lib/pkgconfig:/mnts/cdstools/isl-0.11.1/aix-ppc-7.1-gcc-4.6-static/lib/pkgconfig:/mnts/cdstools/zlib-1.2.5/aix-ppc-7.1/lib/pkgconfig
LDFLAGS=-L/mnts/cdstools/cloog-0.18.0/aix-ppc-7.1-gcc-4.6-static/lib
-L/mnts/cdstools/isl-0.11.1/aix-ppc-7.1-gcc-4.6-static/lib
-L/mnts/cdstools/mpc-0.9/aix-ppc-7.1-gcc-4.6-static/lib
-L/mnts/cdstools/mpfr-3.1.0/aix-ppc-7.1-gcc-4.6-static/lib
-L/mnts/cdstools/gmp-5.0.5/aix-ppc-7.1-gcc-4.6-static/lib
-L/mnts/cdstools/zlib-1.2.5/aix-ppc-7.1/lib
-L/mnts/cdstools/coreutils-7.4/aix-ppc-7.1/lib
-L/mnts/cdstools/autogen-5.5.2/aix-ppc-7.1/lib
-Wl,-blibpath:/usr/lib:/lib -Wl,-bsvr4 -Wl,-bnoipath
CONFIG_SHELL=/mnts/cdstools/bash-4.2/aix-ppc-7.1/bin/bash
CPPFLAGS=-I/mnts/cdstools/cloog-0.18.0/aix-ppc-7.1-gcc-4.6-static/include
-I/mnts/cdstools/isl-0.11.1/aix-ppc-7.1-gcc-4.6-static/include
-I/mnts/cdstools/mpc-0.9/aix-ppc-7.1-gcc-4.6-static/include
-I/mnts/cdstools/mpfr-3.1.0/aix-ppc-7.1-gcc-4.6-static/include
-I/mnts/cdstools/gmp-5.0.5/aix-ppc-7.1-gcc-4.6-static/include
-I/mnts/cdstools/zlib-1.2.5/aix-ppc-7.1/include
-I/mnts/cdstools/autogen-5.5.2/aix-ppc-7.1/include
-I/mnts/cdstools/dejagnu-1.4.4/aix-ppc-7.1/include
-I/mnts/cdstools/expect-5.43/share/include -Wfatal-errors OBJCXX=false
OBJC=gcc -static-libgcc -mcpu=power7 -O2 F77=gfortran -std=legacy
-static-libgcc -mcpu=power7 -O2 -static-libgfortran FC=gfortran
-static-libgcc -mcpu=power7 -O2 -static-libgfortran CXX=g++
-static-libgcc -mcpu=power7 -O2 CC=gcc -static-libgcc -mcpu=power7 -O2
LIBPATH=/mnts/cdstools/autogen-5.5.2/aix-ppc-7.1/lib
PATH=/mnts/cdstools/cloog-0.18.0/aix-ppc-7.1-gcc-4.6-static/bin:/mnts/cdstools/m4-1.4.13/aix-ppc-7.1/bin:/mnts/cdstools/bison-2.3/aix-ppc-7.1/bin:/mnts/cdstools/coreutils-7.4/aix-ppc-7.1/bin:/mnts/cdstools/diffutils-2.8.1/aix-ppc-7.1/bin:/mnts/cdstools/gdb-7.3.1/aix-ppc-7.1/bin:/mnts/cdstools/autoconf-2.64/aix-ppc-7.1/bin:/mnts/cdstools/autogen-5.5.2/aix-ppc-7.1/bin:/mnts/cdstools/dejagnu-1.4.4/aix-ppc-7.1/bin:/mnts/cdstools/expect-5.43/aix-ppc-7.1/bin:/mnts/cdstools/zip-2.32/aix-ppc-7.1/bin:/mnts/cdstools/unzip-6.0/aix-ppc-7.1/bin:/mnts/cdstools/gcc-4.6.3/aix-ppc-7.1/bin:/mnts/cdstools/make-3.81gr4/aix-ppc-7.1/bin:/mnts/cdstools/texinfo-4.8a/aix-ppc-7.1/bin:/mnts/cdstools/pkg-config-0.22/aix-ppc-7.1/bin:/mnts/cdstools/findutils-4.4.2/aix-ppc-7.1/bin:/mnts/cdstools/bash-4.2/aix-ppc-7.1/bin:/mnts/cdstools/grep-2.7/aix-ppc-7.1/bin:/mnts/cdstools/aix-ppc-7.1/bin:/mnts/cdstools/share/bin:/usr/ccs/bin:/usr/bin:/bin
--docdir=/mnts/cdstools/gcc-4.8.0p1/aix-ppc-7.1/doc
--prefix=/mnts/cdstools/gcc-4.8.0p1/aix-ppc-7.1
--datadir=/mnts/cdstools/gcc-4.8.0p1/aix-ppc-7.1 --without-gnu-as
--without-gnu-ld --disable-pythondir --with-pkgversion=GCC
(Algorithmics) --build=powerpc-ibm-aix7.1 --enable-cloog-backend=isl
--with-cloog=/mnts/cdstools/cloog-0.18.0/aix-ppc-7.1-gcc-4.6-static
--with-isl=/mnts/cdstools/isl-0.11.1/aix-ppc-7.1-gcc-4.6-static
--with-mpc=/mnts/cdstools/mpc-0.9/aix-ppc-7.1-gcc-4.6-static
--with-mpfr=/mnts/cdstools/mpfr-3.1.0/aix-ppc-7.1-gcc-4.6-static
--with-gmp=/mnts/cdstools/gmp-5.0.5/aix-ppc-7.1-gcc-4.6-static
--with-system-zlib --with-as=/usr/bin/as --with-ld=/usr/bin/ld
--with-local-prefix=/mnts/cdstools/aix-ppc-7.1

Any ideas where to start investigating how to fix this? I have been
trying for the last 2 days without any progress. Some more info:

- I tried to bootstrap using a gcc 4.3.3 built fo aix 5.3 (had to
remove fixincludes and patch cstdio to make it work). It hags
- I tried to bootstrap using gcc 4.6.3 built for aix 7.1 without
graphite optimizations. It still hangs

About the AIX version I am using:

> oslevel -s
7100-01-00-0000


Thank you for the help,
Andrei





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux