From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10965 invoked by alias); 29 Sep 2005 12:10:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 10771 invoked by uid 48); 29 Sep 2005 12:09:53 -0000 Date: Thu, 29 Sep 2005 12:10:00 -0000 From: "h dot m dot brand at xs4all dot nl" To: gcc-bugs@gcc.gnu.org Message-ID: <20050929120943.24119.h.m.brand@xs4all.nl> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/24119] New: gcc-4.x fails to build on AIX 5.2.0.0-ML04 X-Bugzilla-Reason: CC X-SW-Source: 2005-09/txt/msg03594.txt.bz2 List-Id: Building gcc-4.x (anything post 4.0.0-20040919) fails for me on AIX 5.2 First problem is a missing -bbigtoc to the loader, causing a message like gcc -B/usr/local/ppc64/bin -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_ GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes - pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing- format-attribute -fno-common -DHAVE_CONFIG_H -o cc1-dummy c-lang.o stub-objc. o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux- info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c- ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o dummy-checksum.o \ main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a - liconv ../libiberty/libiberty.a ld: 0711-781 ERROR: TOC overflow. TOC size: 65880 Maximum size: 65536 which I `fixed' with --- /wrk/ppc64/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0.0/specs.org 2005-09-29 13: 22:08 +0200 +++ /wrk/ppc64/lib/gcc/powerpc-ibm-aix5.2.0.0/4.0.0/specs 2005-09-29 13: 18:32 +0200 @@ -45,7 +45,7 @@ cc1 -E %{traditional|ftraditional|tradit *link: --bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect %{static:-bnso % (link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}} %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64} %{mpe:-binitfini:poe_remote_main} +-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect -bbigtoc %{static:- bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}} %{!maix64:%{!shared :%{g*: %(link_libg) }}} %{maix64:-b64} %{mpe:-binitfini:poe_remote_main} *lib: %{pg:-L/lib/profiled -L/usr/lib/profiled} %{p:-L/lib/profiled -L/usr/lib/ profiled} %{!maix64:%{!shared:%{g*:-lg}}} %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd} %{pthread:-lpthreads} -lc but that would probably not promote to the build I am attempting to complete Second problem appears after that fix: echo timestamp > s-options-h stage1/xgcc -Bstage1/ -B/usr/local/ppc64/powerpc-ibm-aix5.2.0.0/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes - pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing- format-attribute -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. - Ibuild -I../../src/gcc -I../../src/gcc/build -I../../src/gcc/../include -I../../ src/gcc/../libcpp/include -o build/genmodes.o ../../src/gcc/genmodes.c stage1/xgcc -Bstage1/ -B/usr/local/ppc64/powerpc-ibm-aix5.2.0.0/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes - pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing- format-attribute -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. - Ibuild -I../../src/gcc -I../../src/gcc/build -I../../src/gcc/../include -I../../ src/gcc/../libcpp/include -o build/errors.o ../../src/gcc/errors.c stage1/xgcc -Bstage1/ -B/usr/local/ppc64/powerpc-ibm-aix5.2.0.0/bin/ -g -O2 - DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes - pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing- format-attribute -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,- bbigtoc -o build/genmodes \ build/genmodes.o build/errors.o ../build-powerpc-ibm-aix5.2.0.0/libiberty/ libiberty.a build/genmodes -h > tmp-modes.h make[2]: *** [s-modes] Segmentation fault (core dumped) How-To-Repeat: On AIX 5.2.0.0-ML04, using gcc-4.0.0-20040919 # bzip2 -d file core core: AIX core file 32-bit, genmodes i4:/pro/3gl/GNU/gcc/obj/gcc 130 > gdb build/genmodes core GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-ibm-aix5.2.0.0"... Core was generated by `genmodes'. Program terminated with signal 11, Segmentation fault. #0 0x100015e8 in main (argc=2, argv=0x2ff20f9c) at ../../src/gcc/genmodes.c: 1221 1221 progname = argv[0]; Breakpoint 1 at 0x10002a3c: file ../../src/gcc/errors.c, line 133. Breakpoint 2 at 0x10002990: file ../../src/gcc/errors.c, line 97. Breakpoint 3 at 0xd020aab8 Breakpoint 4 at 0xd020a6e8 (gdb) where #0 0x100015e8 in main (argc=2, argv=0x2ff20f9c) at ../../src/gcc/genmodes.c: 1221 (gdb) FWIW that gcc-4.0.0 passed all tests, and is still used in my smoke tests for the perl development branche, at which it still passes all tests -- Summary: gcc-4.x fails to build on AIX 5.2.0.0-ML04 Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: h dot m dot brand at xs4all dot nl CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-ibm-aix5.2.0.0 GCC host triplet: powerpc-ibm-aix5.2.0.0 GCC target triplet: powerpc-ibm-aix5.2.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24119