Gentoo Archives: gentoo-alt

From: Perry Smith <pedzsan@×××××.com>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] prefix installer, AIX 5.3 gcc failed to build
Date: Mon, 13 Dec 2010 14:32:49
Message-Id: 87F53416-9B0A-4096-BED7-CC5E2E5554E9@gmail.com
In Reply to: Re: [gentoo-alt] prefix installer, AIX 5.3 gcc failed to build by Michael Haubenwallner
On Dec 13, 2010, at 3:55 AM, Michael Haubenwallner wrote:

> > > On 12/11/2010 09:46 PM, Perry Smith wrote: >> I'm trying to do the "make install" of the prefix installer and I died with this: >> >> make[4]: Entering directory `/gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot/gcc/p51.powerpc-ibm-aix5.3.0.0/libcpp' >> /gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot/gcc/p51.powerpc-ibm-aix5.3.0.0/./prev-gcc/xgcc -B/gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot/gcc/p51.powerpc-ibm-aix5.3.0.0/./prev-gcc/ -B/gsa/ausgsa/home/p/e/pedzan/prefix-launcher-2.1.0/powerpc-ibm-aix5.3.0.0/powerpc-ibm-aix5.3.0.0/bin/ -I/gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot/gcc/gcc-4.2.4/libcpp -I. -I/gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot/gcc/gcc-4.2.4/libcpp/../include -I/gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot/gcc/gcc-4.2.4/libcpp/include -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -I/gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot/gcc/gcc-4.2.4/libcpp -I. -I/gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot/gcc/gcc-4.2.4/libcpp/../include -I/gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot > /gcc/gcc-4.2.4/libcpp/include -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Po /gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot/gcc/gcc-4.2.4/libcpp/charset.c >> xgcc: Internal error: Killed (program cc1) > > Interesting - this works since ages on the AIX 5.3 boxes here...
Yes. As a curiosity, I pulled down 4.2.4 and compiled it on my own sandbox and it did fine.
> > And there isn't anything in prefix-launcher-trunk over prefix-launcher-2.1.0 > that should have any influence for AIX 5.3, only AIX 6.1: > http://prefix-launcher.svn.sourceforge.net/viewvc/prefix-launcher/prefix-launcher/trunk/ChangeLog?view=log > >> Please submit a full bug report. >> See <URL:http://gcc.gnu.org/bugs.html> for instructions. >> make[4]: *** [charset.o] Error 1 > > Are you able to compile 'charset.o' with '-save-temps' compiler flag?
Its been a long weekend with many misadventures. I did not know about the INTERACTIVE method and I copied and pasted the compile command (above) and added -save-temps and it compiled fine. So I then just did "make" in that directory -- which worked. Moved up and did "make" again and that eventually failed with arg list too long. So, I wasn't using *exactly* the right environment.
> Some hints for prefix-launcher: > $ gmake config gcc_BUILDMODE=INTERACTIVE > $ gmake gcc SHELL=/bin/bash > Instead of running src_compile() from gcc/gcc.build, you get a bash-prompt where > you can run (parts of) src_compile manyally. However, this isn't Ctrl-C save. > >> make[4]: Leaving directory `/gsa/ausgsa-h2/01/pedzan/src/prefix-launcher-2.1.0/buildroot/gcc/p51.powerpc-ibm-aix5.3.0.0/libcpp' >> >> So far, I've not found a similar bug report. >> I'm trying it a second time but I assume its not going to work. >> This is on stage 2 which is a bit odd. > > Does it work to build vanilla gcc-4.2.4 out-of-the-box?
Yes. Probably I'm going to start over again but here are some clues. First, my build scripts for gcc always do: ulimit -S -d unlimited I can't remember why I've added that over the years. But build script that worked did this:
> ulimit -S -d unlimited > export CONFIG_SHELL=/usr/local/bin/bash > ( ../../src/gcc-4.2.4/configure -v \ > --disable-nls \ > --enable-threads=aix \ > --with-libiconv-prefix=/usr \ > --enable-languages=c,c++ && echo "configure returned $?" ) > C-OUT 2>&1 > ( gmake bootstrap && echo "gmake returned $?" ) > M-OUT 2>&1 &
which is almost what your scripts did. That script worked. As I mentioned, the "make" above ended with arg list too long. I hit that again doing some other path. So, I restarted your process with these changes: 1) I *forgot* to do the CONFIG_SHELL (and I'm paying the price for that. I plan to open a defect on ksh. I've discovered that not only does it make tons of temps but the temps are wide open... a glaring security hole. But, that will take a battle plus a year to get out the door and they will likely fix it for new releases.) 2) I did the ulimit change above 3) I moved my source and destination directories to much short paths (trying to avoid the arg list too long problem). 4) Used a different gcc. Before I was using my newly built gcc 4.5.0 and this last trip I'm using 4.3.1. So far, it is still going but I'm not 100% done with gcc yet but I'm past all the previous failure points. I plan to start over again. I want to redo it with CONFIG_SHELL set, ulimit set, and the newer gcc (at the new location) and see how that goes. Can we set CONFIG_SHELL inside the top level Makefile? I'm going to just add it to my .bash_profile too. One other suggestion, I assumed that the install of the prefix-launcher was going to be a half minute adventure and the big adventure was going to come while using it. My suggestion is mention that installing it will take a long time. Also, give some help (like you just did) about doing things piecemeal if things go wrong. Thanks!!! I'm still plugging. (I haven't read your other email yet). Perry

Replies

Subject Author
Re: [gentoo-alt] prefix installer, AIX 5.3 gcc failed to build Michael Haubenwallner <haubi@g.o>