public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "h dot m dot brand at xs4all dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/24119] New: gcc-4.x fails to build on AIX 5.2.0.0-ML04
Date: Thu, 29 Sep 2005 12:10:00 -0000	[thread overview]
Message-ID: <20050929120943.24119.h.m.brand@xs4all.nl> (raw)

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 <gcc-4.1-20050924.tar.bzip2 | tar xf -
# ln -s gcc-4.1-20050924 src
# export CONFIG_SITE=
# export CC="gcc -B/usr/local/ppc64/bin"
# export PATH=.:/usr/local/ppc64/bin:/pro/local/bin
# export PATH=$PATH"":/usr/vac/bin:/usr/bin:/usr/ccs/bin
# export PATH=$PATH"":/usr/bin/X11R6:/usr/bin/X11
# rm -rf obj
# mkdir obj
# cd obj
# ../src/configure \
    --enable-languages=c \
    --prefix=/usr/local/ppc64 --with-local-prefix=/usr/local/ppc64 \
    --with-ld=/usr/ccs/bin/ld \
    --disable-shared \
    --disable-nls
# make bootstrap-lean


Core dump info:

i4:/pro/3gl/GNU/gcc/obj/gcc 129 > 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


             reply	other threads:[~2005-09-29 12:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-29 12:10 h dot m dot brand at xs4all dot nl [this message]
2005-09-29 13:21 ` [Bug target/24119] " pinskia at gcc dot gnu dot org
2005-09-30 16:24 ` dje at gcc dot gnu dot org
2005-09-30 18:07 ` h dot m dot brand at xs4all dot nl
2005-10-01 16:00 ` dje at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050929120943.24119.h.m.brand@xs4all.nl \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).