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

* [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; 20+ 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] 20+ 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; 20+ 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] 20+ 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; 20+ 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] 20+ 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; 20+ 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] 20+ messages in thread

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (13 preceding siblings ...)
  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
  14 siblings, 0 replies; 20+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2005-10-11 14:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #18 from h dot m dot brand at xs4all dot nl  2005-10-11 14:52 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04

On 11 Oct 2005 14:37:31 -0000, "h dot m dot brand at xs4all dot nl"
<gcc-bugzilla@gcc.gnu.org> wrote:

Ignore the AIX 4.3 question: I've raised the limits to unlimited for my
person (how nice if you can be root) and then all worked

I think you can now close this bug.

> ------- Comment #17 from h dot m dot brand at xs4all dot nl  2005-10-11
> 14:37 ------- Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04
> 
> On 6 Oct 2005 17:24:10 -0000, "dje at gcc dot gnu dot org"
> <gcc-bugzilla@gcc.gnu.org> wrote:
> 
> Now that all seems to be in more or less working order, and gcc-4.1-20051008
> is built from 4.0.2, (no problems with bigtoc), I've got a new question for
> AIX 4.3.3:
> 
> build/genattrtab ../../src/gcc/config/rs6000/rs6000.md > tmp-attrtab.c
> 
> out of memory allocating 80016 bytes after a total of 4161651484 bytes
> 
> I'm the only user, and no more processes can be killed.
> 
> i2  AIX 4.3.3.0/ML11  IBM,7043-150 PowerPC_604e  640 Mb
> 
> > ------- Comment #16 from dje at gcc dot gnu dot org  2005-10-06 17:24
> > ------- I do not know where the extra -B is entering, but GCC configure
> > and build process does not insert it.  You might look for it in other
> > environment variables, if it still exists after you have deleted the build
> > directory.
> 
> 


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  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
  14 siblings, 0 replies; 20+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2005-10-11 14:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #17 from h dot m dot brand at xs4all dot nl  2005-10-11 14:37 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04

On 6 Oct 2005 17:24:10 -0000, "dje at gcc dot gnu dot org"
<gcc-bugzilla@gcc.gnu.org> wrote:

Now that all seems to be in more or less working order, and gcc-4.1-20051008
is built from 4.0.2, (no problems with bigtoc), I've got a new question for
AIX 4.3.3:

build/genattrtab ../../src/gcc/config/rs6000/rs6000.md > tmp-attrtab.c

out of memory allocating 80016 bytes after a total of 4161651484 bytes

I'm the only user, and no more processes can be killed.

i2  AIX 4.3.3.0/ML11  IBM,7043-150 PowerPC_604e  640 Mb

> ------- Comment #16 from dje at gcc dot gnu dot org  2005-10-06 17:24
> ------- I do not know where the extra -B is entering, but GCC configure and
> build process does not insert it.  You might look for it in other
> environment variables, if it still exists after you have deleted the build
> directory.


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  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
  14 siblings, 0 replies; 20+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-10-06 17:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #16 from dje at gcc dot gnu dot org  2005-10-06 17:24 -------
I do not know where the extra -B is entering, but GCC configure and build
process does not insert it.  You might look for it in other environment
variables, if it still exists after you have deleted the build directory.


-- 

dje at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dje at watson dot ibm dot com @ 2005-10-06 14:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from dje at watson dot ibm dot com  2005-10-06 14:07 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04 

        The -Wl,-bbigtoc fix has been committed to GCC 4.1 sources.


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2005-10-06 14:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from h dot m dot brand at xs4all dot nl  2005-10-06 14:04 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04

On 6 Oct 2005 13:30:56 -0000, "dje at watson dot ibm dot com"
<gcc-bugzilla@gcc.gnu.org> wrote:

> 
> 
> ------- Comment #13 from dje at watson dot ibm dot com  2005-10-06 13:30
> ------- Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04 
> 
> > That worked. But I still saw the -B added to all the lines, but now that
> > that folder is not there, all goes smooth
> 
> > As you can see: *I* did not put any -B options in there, so it must
> > either be the Makefiles or configure that puts them in because of my
> > --prefix and/or --with-local-prefix
> 
>         The -B still is added, because you did not clear the CC
> environment variable in the shell where you did the previous configures.
> GCC does not automatically add -B.

My environment does *NOT* have CC defined.
And I log in again on every retry, to be sure I'm starting fresh

BTW gcc-4.0.2 does not have a specs file, so I cannot add -Wl,-bbigtoc
    for building 4.1


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dje at watson dot ibm dot com @ 2005-10-06 13:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from dje at watson dot ibm dot com  2005-10-06 13:30 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04 

> That worked. But I still saw the -B added to all the lines, but now that
> that folder is not there, all goes smooth

> As you can see: *I* did not put any -B options in there, so it must either be
> the Makefiles or configure that puts them in because of my --prefix and/or
> --with-local-prefix

        The -B still is added, because you did not clear the CC
environment variable in the shell where you did the previous configures.
GCC does not automatically add -B.

David


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  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
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2005-10-06  8:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from h dot m dot brand at xs4all dot nl  2005-10-06 08:44 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04

On 6 Oct 2005 06:33:16 -0000, "h dot m dot brand at xs4all dot nl"
<gcc-bugzilla@gcc.gnu.org> wrote:

> ------- Comment #11 from h dot m dot brand at xs4all dot nl  2005-10-06
> 06:33 ------- Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04
> 
> On 6 Oct 2005 04:30:37 -0000, "dje at gcc dot gnu dot org"
> <gcc-bugzilla@gcc.gnu.org> wrote:
> 
> > ------- Comment #10 from dje at gcc dot gnu dot org  2005-10-06 04:30
> > ------- You say: "I re-ran without -B", but the Make output clearly shows
> > the command still present:
> > 
> > CC_FOR_BUILD=" stage1/xgcc -Bstage1/
> > -B/usr/local/ppc64/powerpc-ibm-aix5.2.0.0/bin/"
> > 
> > The configuration process remembers the option.  You need to completely
> > delete the configure directory, reconfigure, and rebuild.  With the extra
> > -B present, you are not using the correct compiler for the stage2
> > bootstrap with stage1 compiler.  It appears that your problems continue
> > to be cockpit error.
> 
> That's what I always do. 'rm -rf obj' before I reconfigure
> 
> I'll move the /usr/local/ppc64 completely out of the way, so it won't be
> able to find it. That of course makes building with gcc-4.0.0 quite a bit
> harder, but I'll try

That worked. But I still saw the -B added to all the lines, but now that that
folder is not there, all goes smooth

Here's the script I used to build:
--8<---
#!/usr/bin/sh

export CONFIG_SITE=
export CCFLAGS=-Wl,-bbigtoc
export PATH=.:/data/gcc-402/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 \
    --disable-shared \
    --disable-nls

make bootstrap-lean
-->8---

/data/gcc-402 is the gcc I got from someone else, and the /usr/local/ppc64
that is used to install it in was temporary moved to out of sight.

As you can see: *I* did not put any -B options in there, so it must either be
the Makefiles or configure that puts them in because of my --prefix and/or
--with-local-prefix

Note: for AIX moving the target folder out of the way is not such a big deal,
since I do not use binutils on AIX, and my GNU make is installed in a public
bin, but this behaviour might not be very helpful on OS's that require
binutils to create gcc (/me thinks HP-UX 11.i/64)


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  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
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2005-10-06  6:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from h dot m dot brand at xs4all dot nl  2005-10-06 06:33 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04

On 6 Oct 2005 04:30:37 -0000, "dje at gcc dot gnu dot org"
<gcc-bugzilla@gcc.gnu.org> wrote:

> ------- Comment #10 from dje at gcc dot gnu dot org  2005-10-06 04:30
> ------- You say: "I re-ran without -B", but the Make output clearly shows
> the command still present:
> 
> CC_FOR_BUILD=" stage1/xgcc -Bstage1/
> -B/usr/local/ppc64/powerpc-ibm-aix5.2.0.0/bin/"
> 
> The configuration process remembers the option.  You need to completely
> delete the configure directory, reconfigure, and rebuild.  With the extra
> -B present, you are not using the correct compiler for the stage2 bootstrap
> with stage1 compiler.  It appears that your problems continue to be cockpit
> error.

That's what I always do. 'rm -rf obj' before I reconfigure

I'll move the /usr/local/ppc64 completely out of the way, so it won't be able
to find it. That of course makes building with gcc-4.0.0 quite a bit harder,
but I'll try


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  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
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-10-06  4:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from dje at gcc dot gnu dot org  2005-10-06 04:30 -------
You say: "I re-ran without -B", but the Make output clearly shows the command
still present:

CC_FOR_BUILD=" stage1/xgcc -Bstage1/
-B/usr/local/ppc64/powerpc-ibm-aix5.2.0.0/bin/"

The configuration process remembers the option.  You need to completely delete
the configure directory, reconfigure, and rebuild.  With the extra -B present,
you are not using the correct compiler for the stage2 bootstrap with stage1
compiler.  It appears that your problems continue to be cockpit error.


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  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
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dje at watson dot ibm dot com @ 2005-10-04 19:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from dje at watson dot ibm dot com  2005-10-04 19:24 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04 

        I bootstrap GCC every day without seeing this problem.


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  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
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2005-10-04 19:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from h dot m dot brand at xs4all dot nl  2005-10-04 19:13 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04

On 4 Oct 2005 15:00:17 -0000, "dje at watson dot ibm dot com"
<gcc-bugzilla@gcc.gnu.org> wrote:

> 
> 
> ------- Comment #7 from dje at watson dot ibm dot com  2005-10-04 15:00
> ------- Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04 
> 
> >>>>> h dot m dot brand at xs4all dot nl writes:
> 
> h> Next step is to upgrade vac-6.0.0.11 to vac-7.0.0.3
> 
>         You said that you are bootstrapping with GCC-4.0 snapshot.

I have tried:

- gcc-4.0.0 - built myself long time ago
- gcc-4.0.2 - built by someone else
- vac-6.0.0.11

Not that I am desperate to get this to work, but I just can't stand that it
doesn't. It was so relatively easy on pa-risc HP-UX (10.20, 11.00/32,
11.00/64, 11.11/32, and 11.11/64)


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [not found] <bug-24119-11434@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  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
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: dje at watson dot ibm dot com @ 2005-10-04 15:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from dje at watson dot ibm dot com  2005-10-04 15:00 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04 

>>>>> h dot m dot brand at xs4all dot nl writes:

h> Next step is to upgrade vac-6.0.0.11 to vac-7.0.0.3

        You said that you are bootstrapping with GCC-4.0 snapshot.


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [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
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2005-10-04 14:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from h dot m dot brand at xs4all dot nl  2005-10-04 14:24 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04

On 2 Oct 2005 13:23:41 -0000, "h dot m dot brand at xs4all dot nl"
<gcc-bugzilla@gcc.gnu.org> wrote:

> ------- Comment #5 from h dot m dot brand at xs4all dot nl  2005-10-02
> 13:23 ------- Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04
> 
> On 2 Oct 2005 04:45:37 -0000, "dje at gcc dot gnu dot org"
> <gcc-bugzilla@gcc.gnu.org> wrote:
> 
> > ------- Comment #4 from dje at gcc dot gnu dot org  2005-10-02 04:45
> > ------- Also, why are you adding "--with-ld=/usr/ccs/bin/ld" to the
> > configure command? There should be only one "ld" on the system and the GCC
> > configuration process should find it automatically?  Do you have GNU
> > Binutils installed?  It also is possible that the gcc-4.0.0-20040919
> > snapshot cannot bootstrap GCC.
> 
> I re-ran without -B
> All binutils are disabled after previous advice, so I only use AIX' ld

I have upgraded the system from 5200-04 to 5200-07, and nothing changed.
Just to let you know.

Next step is to upgrade vac-6.0.0.11 to vac-7.0.0.3


-- 


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


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

* [Bug target/24119] gcc-4.x fails to build on AIX 5.2.0.0-ML04
       [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
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 20+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2005-10-02 13:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from h dot m dot brand at xs4all dot nl  2005-10-02 13:23 -------
Subject: Re:  gcc-4.x fails to build on AIX 5.2.0.0-ML04

On 2 Oct 2005 04:45:37 -0000, "dje at gcc dot gnu dot org"
<gcc-bugzilla@gcc.gnu.org> wrote:

> ------- Comment #4 from dje at gcc dot gnu dot org  2005-10-02 04:45 -------
> Also, why are you adding "--with-ld=/usr/ccs/bin/ld" to the configure
> command? There should be only one "ld" on the system and the GCC
> configuration process should find it automatically?  Do you have GNU
> Binutils installed?  It also is possible that the gcc-4.0.0-20040919
> snapshot cannot bootstrap GCC.

I re-ran without -B
All binutils are disabled after previous advice, so I only use AIX' ld

make[1]: Leaving directory `/pro/3gl/GNU/gcc/obj/libcpp'
Bootstrapping the compiler
make[1]: Entering directory `/pro/3gl/GNU/gcc/obj/gcc'
make CC=" stage1/xgcc -Bstage1/ -B/usr/local/ppc64/powerpc-ibm-aix5.2.0.0/bin/"
CC_FOR_BUILD=" stage1/xgcc -Bstage1/
-B/usr/local/ppc64/powerpc-ibm-aix5.2.0.0/bin/" \
         STAGE_PREFIX=stage1/ \
         ADAFLAGS="" CFLAGS="-g -O2" LDFLAGS="-Wl,-bbigtoc"
WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long-long
-Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -Werror"
libdir=/usr/local/ppc64/lib LANGUAGES="c gcov gcov-dump "
MAKEINFO="/pro/3gl/GNU/gcc/src/missing makeinfo --split-size=5000000"
MAKEINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \
         CFLAGS="-g -O2" WERROR="-Werror"
make[2]: Entering directory `/pro/3gl/GNU/gcc/obj/gcc'
build/genmodes -h > tmp-modes.h
make[2]: *** [s-modes] Segmentation fault (core dumped)
make[2]: Leaving directory `/pro/3gl/GNU/gcc/obj/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/pro/3gl/GNU/gcc/obj/gcc'


-- 


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


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

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



------- Comment #4 from dje at gcc dot gnu dot org  2005-10-02 04:45 -------
Also, why are you adding "--with-ld=/usr/ccs/bin/ld" to the configure command? 
There should be only one "ld" on the system and the GCC configuration process
should find it automatically?  Do you have GNU Binutils installed?  It also is
possible that the gcc-4.0.0-20040919 snapshot cannot bootstrap GCC.


-- 

dje at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at gcc dot gnu dot org


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


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

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