FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Alt

 
 
LinkBack Thread Tools
 
Old 12-11-2010, 07:46 PM
Perry Smith
 
Default prefix installer, AIX 5.3 gcc failed to build

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)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [charset.o] Error 1
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.
 
Old 12-13-2010, 08:55 AM
Michael Haubenwallner
 
Default prefix installer, AIX 5.3 gcc failed to build

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

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?
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?

/haubi/
--
Michael Haubenwallner
Gentoo on a different level
 
Old 12-13-2010, 01:32 PM
Perry Smith
 
Default prefix installer, AIX 5.3 gcc failed to build

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 unlimitedexport 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 above3) 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
 
Old 12-13-2010, 03:49 PM
Michael Haubenwallner
 
Default prefix installer, AIX 5.3 gcc failed to build

On 12/13/2010 03:32 PM, Perry Smith wrote:
>>> 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/buildro
ot
>> /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.
>
>> Are you able to compile 'charset.o' with '-save-temps' compiler flag?
>
> Its been a long weekend with many misadventures.

This is how it works, unfortunately

> I did not know about the INTERACTIVE method and I copied and pasted the compile command (above)

The INTERACTIVE feature is an internal detail and for debugging purpose only.
However, there is some doc in prefix-launcher-*/BUILDING.

> and added -save-temps and it compiled fine. So I then just did "make" in that directory -- which worked.

WTF...?

> Moved up and did "make" again and that eventually failed with arg list too long.

"arg list too long" rings the "ncargs defaults to 4" bell:
$ lsattr -E -l sys0 -a ncargs

We do have it set to 40 here, but on some AIX6.1 I've seen this set to 256:
$ chdev -l sys0 -a ncargs=40

> So, I wasn't using *exactly* the right environment.

This might be the reason: Inside prefix-launcher the environment is a little
larger than outside, which may trigger the arg list too long problem.
Thing is that both the commandline argument /plus/ the environment variables
are counted in here for 'ncargs'.

There is another thing: You could 'source' the installed environment-file of prefix-launcher:
$ . /prefix/for/launcher/chost/bin/prefix-launcher-env.sh

Then you should have a similar environment than within the builds,
except for a package's local build-variables set within pkg/pkg.build.

<snip>
> 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:

Seems like you've hit the arg list too long error before.

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

Good to know you have resources to do so.

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

It should work with any Ansi-C compiler that is able to bootstrap gcc-4.2.4.
For what it's worth, on AIX 6.1 I've recently used gcc-4.2.0 from the
"AIX Toolbox for Linux Applications".

> Can we set CONFIG_SHELL inside the top level Makefile? I'm going to just add it to my .bash_profile too.

It isn't that easy. The only thing I could do is to set
CONFIG_SHELL = $(SHELL)
as I cannot have an idea where to find some bash in that Makefile.
Additionally, bash isn't a technical requirement for prefix-launcher on any platform.

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

Added, thanks!

> Also, give some help (like you just did) about doing things piecemeal if things go wrong.

You're welcome to draft up something you'd like to read (in the MediaWiki),
and I'll be happy to review and add it.

/haubi/
--
Michael Haubenwallner
Gentoo on a different level
 

Thread Tools




All times are GMT. The time now is 05:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org