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; 5+ 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] 5+ messages in thread

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
  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 ` pinskia at gcc dot gnu dot org
  2005-09-30 16:24 ` dje at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-29 13:21 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target
           Keywords|                            |build


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24119


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
  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
  3 siblings, 0 replies; 5+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-09-30 16:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dje at gcc dot gnu dot org  2005-09-30 16:23 -------
Yes, GCC 4.1 needs -Wl,-bbigtoc, but what is "-B/usr/local/ppc64/bin" for?  Once
you do something like that, it's an unsupported build.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24119


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
  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
  3 siblings, 0 replies; 5+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2005-09-30 18:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From h dot m dot brand at xs4all dot nl  2005-09-30 18:06 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04

On 30 Sep 2005 16:23:07 -0000, "dje at gcc dot gnu dot org"
<gcc-bugzilla@gcc.gnu.org> wrote:

> 
> ------- Additional Comments From dje at gcc dot gnu dot org  2005-09-30
> 16:23 ------- Yes, GCC 4.1 needs -Wl,-bbigtoc, but what is
> "-B/usr/local/ppc64/bin" for?  Once you do something like that, it's an
> unsupported build.

That's the location where the previous gcc is built, and where this one is to
be placed. I'll try without, but until now building gcc's like this using the
previous build always worked fine.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24119


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
  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
                   ` (2 preceding siblings ...)
  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
  3 siblings, 0 replies; 5+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-10-01 16:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dje at gcc dot gnu dot org  2005-10-01 16:00 -------
Either GCC is installed or not.  If it's installed, you should not need any -B
options.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24119


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-10-01 16:00 UTC | newest]

Thread overview: 5+ 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

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