public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24119] New: gcc-4.x fails to build on AIX 5.2.0.0-ML04
@ 2005-09-29 12:10 h dot m dot brand at xs4all dot nl
  2005-09-29 13:21 ` [Bug target/24119] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2005-09-29 12:10 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <bug-24119-11434@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-11 14:52 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-29 12:10 [Bug c/24119] New: gcc-4.x fails to build on AIX 5.2.0.0-ML04 h dot m dot brand at xs4all dot nl
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
     [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
2005-10-02  4:45 ` dje at gcc dot gnu dot org
2005-10-02 13:23 ` h dot m dot brand at xs4all dot nl
2005-10-04 14:24 ` h dot m dot brand at xs4all dot nl
2005-10-04 15:00 ` dje at watson dot ibm dot com
2005-10-04 19:13 ` h dot m dot brand at xs4all dot nl
2005-10-04 19:24 ` dje at watson dot ibm dot com
2005-10-06  4:30 ` dje at gcc dot gnu dot org
2005-10-06  6:33 ` h dot m dot brand at xs4all dot nl
2005-10-06  8:44 ` h dot m dot brand at xs4all dot nl
2005-10-06 13:30 ` dje at watson dot ibm dot com
2005-10-06 14:04 ` h dot m dot brand at xs4all dot nl
2005-10-06 14:07 ` dje at watson dot ibm dot com
2005-10-06 17:24 ` dje at gcc dot gnu dot org
2005-10-11 14:37 ` h dot m dot brand at xs4all dot nl
2005-10-11 14:52 ` h dot m dot brand at xs4all dot nl

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).