https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63714
Bug ID: 63714 Summary: AIX (5.3.7, xlC v11) fails to bootstrap for gcc 4.9.2, 4.8.3 and 4.7.4 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: aixtools at gmail dot com The announcement of gcc 4.9.2 got me started - time to get gcc packaged. As much as possible I want to be packaging with tools I have assembled/packaged myself. And, although I failed miserably years ago - now is the time to move forward. In the details below (and I apologize if my emphasis is wrong - I have a lot to learn about how gcc is organized) you can see that the failure for GCC 4.9.2 and GCC 4.8.3 are at the same spot. GCC 4.7.4 looks as if it wants to complete, but is getting lost - after coming a long way "configure" complains: checking for powerpc-ibm-aix5.3.0.0-gcc... /data/prj/gnu/gcc/objdir/gcc-4.7.4/./gcc/xgcc -B/data/prj/gnu/gcc/objdir/gcc-4.7.4/./gcc/ -B/opt/powerpc-ibm-aix5.3.0.0/bin/ -B/opt/powerpc-ibm-aix5.3.0.0/lib/ -isystem /opt/powerpc-ibm-aix5.3.0.0/include -isystem /opt/powerpc-ibm-aix5.3.0.0/sys-include checking for suffix of object files... configure: error: in `/data/prj/gnu/gcc/objdir/gcc-4.7.4/powerpc-ibm-aix5.3.0.0/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[2]: *** [configure-stage1-target-libgcc] Error 1 So, as it is getting much closer this is what I want to work on and should be considered the "bug" of this report. Additional Info (and request) GCC 4.9.2 and GCC 4.8.3 exit at a different point in time compared to GCC 4.7.4. (This can be a new bug later): config.status: creating backtrace-supported.h config.status: creating config.h config.status: executing libtool commands config.status: executing gstdint.h commands config.status: executing default commands make[3]: Entering directory `/data/prj/gnu/gcc/gcc-4.9.2/host-powerpc-ibm-aix5.3.0.0/libba cktrace' make all-am make[4]: Entering directory `/data/prj/gnu/gcc/gcc-4.9.2/host-powerpc-ibm-aix5.3.0.0/libba cktrace' /bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.././libbacktrace -I ../.././libbacktrace/../include -I ../.././libbacktrace/../libgcc -I ../libgcc -funwi nd-tables -frandom-seed=atomic.lo -g -c -o atomic.lo ../.././libbacktrace/atomic.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.././libbacktrace -I ../.././libbacktrace/. ./include -I ../.././libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=ato mic.lo -g -c ../.././libbacktrace/atomic.c -o atomic.o /bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../.././libbacktrace -I ../.././libbacktrace/../include -I ../.././libbacktrace/../libgcc -I ../libgcc -funwi nd-tables -frandom-seed=dwarf.lo -g -c -o dwarf.lo ../.././libbacktrace/dwarf.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I../.././libbacktrace -I ../.././libbacktrace/. ./include -I ../.././libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=dwa rf.lo -g -c ../.././libbacktrace/dwarf.c -o dwarf.o "../.././libbacktrace/dwarf.c", line 1048.7: 1506-046 (S) Syntax error. "../.././libbacktrace/dwarf.c", line 1048.10: 1506-045 (S) Undeclared identifier Skip. "../.././libbacktrace/dwarf.c", line 1055.7: 1506-046 (S) Syntax error. "../.././libbacktrace/dwarf.c", line 2690.11: 1506-068 (W) Operation between types "struct line*" and "int" is not allowed. "../.././libbacktrace/dwarf.c", line 2873.17: 1506-068 (W) Operation between types "struct dwarf_data*" and "int" is not allowed. "../.././libbacktrace/dwarf.c", line 3006.17: 1506-068 (W) Operation between types "struct dwarf_data*" and "int" is not allowed. make[4]: *** [dwarf.lo] Error 1 make[4]: Leaving directory `/data/prj/gnu/gcc/gcc-4.9.2/host-powerpc-ibm-aix5.3.0.0/libbac ktrace' make[3]: *** [all] Error 2 make[3]: Leaving directory `/data/prj/gnu/gcc/gcc-4.9.2/host-powerpc-ibm-aix5.3.0.0/libbac ktrace' make[2]: *** [all-stage1-libbacktrace] Error 2 make[2]: Leaving directory `/data/prj/gnu/gcc/gcc-4.9.2' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/data/prj/gnu/gcc/gcc-4.9.2' make: *** [bootstrap] Error 2 Configure command: CPPFLAGS="-I/opt/include" CFLAGS="-I/opt/aixtools/include -qlanglvl=extc89" ./configure \ --prefix=/opt \ --sysconfdir=/var/gcc/etc \ --sharedstatedir=/var/gcc/com \ --localstatedir=/var/gcc \ --mandir=/usr/share/man \ --infodir=/opt/share/info/gcc --with-gmp=/opt --with-mpfr=/opt --with-mpc=/opt --enable-languages=c,c++ Small bits: when I do not include -qlanglvl=extc89 as part of CFLAGS I get the following result: root@x064:[/data/prj/gnu/gcc/objdir/gcc-4.7.4]make [ -f stage_final ] || echo stage3 > stage_final /bin/sh[3]: 0403-057 Syntax error at line 1 : `-qlanglvl=extc89' is not expected. Besides AIX 5.3 TL7 CSP install, plus xlC/vacv11 FP19 The following is installed: root@x064:[/data/prj/gnu/gcc/objdir/gcc-4.7.4]lslpp -L | grep aixtools aixtools.binutils.man 2.24.0.0 C F man pages 2014.Nov.02 11.20 aixtools.binutils.rte 2.24.0.0 C F binutils 2014.Nov.02 11.20 CUT aixtools.binutils.share 2.24.0.0 C F share and documentation aixtools.buildaix.man 1.0.9.0 C F man pages 2014.Jun.13 13.04 aixtools.buildaix.rte 1.0.9.0 C F buildaix 2014.Jun.13 13.04 CUT aixtools.gettext.man 0.18.1.1 C F gettext man pages 2013.Aug.24 aixtools.gettext.rte 0.18.1.1 C F gettext 0.18.1.1 2013.Aug.24 aixtools.gettext.share 0.18.1.1 C F gettext share and aixtools.gmp.rte 5.0.5.0 C F gmp version 5.0.5 for powerpc aixtools.gmp.share 5.0.5.0 C F gmp share and documentation aixtools.make.man 3.82.0.0 C F make man pages 2013.Aug.24 aixtools.make.rte 3.82.0.0 C F make 3.82.0.0 2013.Aug.24 aixtools.make.share 3.82.0.0 C F make share and documentation aixtools.mpc.rte 1.0.2.0 C F mpc 2014.Oct.31 15.44 CUT aixtools.mpc.share 1.0.2.0 C F share and documentation aixtools.mpfr.rte 2.4.2.0 C F mpfr 2014.Oct.31 15.19 CUT aixtools.mpfr.share 2.4.2.0 C F share and documentation aixtools.texinfo.man 5.2.0.0 C F texinfo man pages 2013.Oct.02 aixtools.texinfo.rte 5.2.0.0 C F texinfo 5.2.0.0 2013.Oct.02 aixtools.texinfo.share 5.2.0.0 C F texinfo share and Note that ./configure reports mpc 0.80+ (while 1.0.1 is the lowest level currently available for download); mpfr 2.4.0+ (while 2.4.2 is needed). As O already had gmp 5.0.5 packaged I did not test lowest levels there. The web-based documentation does say mpfr 2.4.2 is needed (required by mpc 1.0.2). Looking forward to a productive collaboration. Michael p.s. If you want to read my notes collected while I was working (waiting for an gcc account) you may read http://www.aixtools.net/index.php/gcc p.p.s. If I have omitted something "basic" to make a good bug-report - please be kind and patient. I will give this as much time as possible, and warn you when that time is severely limited.