https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86559

            Bug ID: 86559
           Summary: Build failure on AIX 5.3
           Product: gcc
           Version: 7.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugzilla-gcc at thewrittenword dot com
  Target Milestone: ---

I tried building gcc-7.2.0 on AIX 5.3 as follows:
  $ gtar Jxf gcc-7.2.0.tar.xz
  $ cd gcc-7.2.0
  $ mkdir .obj
  $ cd .obj
  $ PATH=/opt/TWWfsw/gcc47/bin:$PATH LDR_CNTRL=MAXDATA=0x70000000 \
  ../configure SHELL=/opt/fsw/bash42/bin/bash LDFLAGS="-Wl,-brtl \
-Wl,-blibpath:/opt/TWWfsw/libisl016/lib:/opt/TWWfsw/libgmp61/lib:\
/opt/TWWfsw/libmpc10/lib:/opt/TWWfsw/libmpfr31/lib:/usr/lib" \
  --enable-nls --with-included-gettext --enable-shared \
  --enable-threads --enable-languages=c,c++ \
  --with-gmp=/opt/TWWfsw/libgmp61 --with-isl=/opt/TWWfsw/libisl016 \
  --with-mpc=/opt/TWWfsw/libmpc10 --with-mpfr=/opt/TWWfsw/libmpfr31 \
  --with-local-prefix=/tmp/gcc7 --prefix=/tmp/gcc7
  ...
  $ PATH=/opt/TWWfsw/gcc47/bin:$PATH LDR_CNTRL=MAXDATA=0x70000000 gmake

The build failed with the following:
g++ -std=gnu++98    -g -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-bbigtoc
-Wl,-bmaxdata:0x40000000 -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o
c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o
c/c-objc-common.o c/c-parser.o c/c-array-notation.o c/c-fold.o
c/gimple-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o
c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o
c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o
c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o
c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o
c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o
c-family/c-attribs.o c-family/c-warn.o default-c.o rs6000-c.o \
  cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a ./../intl/libintl.a -liconv 
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a  -L/opt/TWWfsw/libisl016/lib -lisl
-L/opt/TWWfsw/libgmp61/lib -L/opt/TWWfsw/libmpfr31/lib
-L/opt/TWWfsw/libmpc10/lib -lmpc -lmpfr -lgmp   -L./../zlib -lz
ld: 0711-783 WARNING: TOC overflow. TOC size: 207328    Maximum size: 65536
        Extra instructions are being generated for each reference to a TOC
        symbol if the symbol is in the TOC overflow area.
ld: 0711-380 STABSTRING ERROR: Symbol table entry 953, object file attribs.o
        Length of stabstring in .debug section is invalid.
        The stabstring is being deleted.
ld: 0711-380 STABSTRING ERROR: Symbol table entry 1587, object file c/c-decl.o
        Length of stabstring in .debug section is invalid.
        The stabstring is being deleted.
ld: 0711-380 STABSTRING ERROR: Symbol table entry 1604, object file
c/c-typeck.o
        Length of stabstring in .debug section is invalid.
        The stabstring is being deleted.
ld: 0711-380 STABSTRING ERROR: Symbol table entry 761, object file
c/c-convert.o
        Length of stabstring in .debug section is invalid.
        The stabstring is being deleted.
ld: 0711-380 STABSTRING ERROR: Symbol table entry 1533, object file
c/c-parser.o
        Length of stabstring in .debug section is invalid.
        The stabstring is being deleted.
...
collect2: error: ld returned 12 exit status
gmake[3]: *** [cc1] Error 1
gmake[3]: Leaving directory `/opt/build/china/gcc-7.2.0/.obj/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory `/opt/build/china/gcc-7.2.0/.obj'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/opt/build/china/gcc-7.2.0/.obj'
gmake: *** [all] Error 2

Some info about this system:
  $ oslevel -s
  5300-11-08-1140
  $ lslpp -h bos.rte.bind_cmds
    Fileset         Level     Action       Status       Date         Time
   
----------------------------------------------------------------------------
  Path: /usr/lib/objrepos
    bos.rte.bind_cmds
                   5.3.0.50   COMMIT       COMPLETE     01/13/07     19:57:05
                   5.3.0.51   COMMIT       COMPLETE     01/14/07     19:44:07
                    5.3.8.0   COMMIT       COMPLETE     09/05/08     08:06:25
                    5.3.8.2   COMMIT       COMPLETE     09/05/08     08:29:06
                   5.3.11.4   COMMIT       COMPLETE     06/18/12     16:56:58
                   5.3.11.7   APPLY        COMPLETE     06/18/12     17:28:20

Reply via email to