I've been successfully using gcc 5.3.0 on my AIX box for a few years. I tried building gcc 6.4.0 and that build fine. 7.2.0, however, fails with ld errors (AIX ld). The command that fails is this: 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 -lintl -liconv ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/opt/jenkins/bg/gcc/act-gcc-7.2.0-sandbox/build-gcc/./isl/.libs -lisl -L/opt/jenkins/bg/gcc/act-gcc-7.2.0-sandbox/build-gcc/./gmp/.libs -L/opt/jenkins/bg/gcc/act-gcc-7.2.0-sandbox/build-gcc/./mpfr/src/.libs -L/opt/jenkins/bg/gcc/act-gcc-7.2.0-sandbox/build-gcc/./mpc/src/.libs -lmpc -lmpfr -lgmp -L./../zlib -lz ld: 0711-783 WARNING: TOC overflow. TOC size: 213012 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 971, object file attribs.o Length of stabstring in .debug section is invalid. The stabstring is being deleted. ... followed by a few dozen more errors for different .o files. This looks just like one of the issues in comment 17 of pr 46072 ( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46072#c17). However, since I've been able to compile earlier versions of gcc just fine, I can't see how it is the same issue. According to the TL and SP I'm on, the AIX ld bug seen in pr46072 should be fixed on my host. I'm on TL6 SP9, the ld bug should was fixed in TL6 SP6. # oslevel -s 6100-06-09-1228 I'm not even sure what to look into here. Any ideas? Thanks!