1 |
On Dec 13, 2010, at 3:55 AM, Michael Haubenwallner wrote: |
2 |
|
3 |
> |
4 |
> |
5 |
> On 12/11/2010 09:46 PM, Perry Smith wrote: |
6 |
>> I'm trying to do the "make install" of the prefix installer and I died with this: |
7 |
>> |
8 |
>> 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' |
9 |
>> /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 |
10 |
> /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 |
11 |
>> xgcc: Internal error: Killed (program cc1) |
12 |
> |
13 |
> Interesting - this works since ages on the AIX 5.3 boxes here... |
14 |
|
15 |
Yes. As a curiosity, I pulled down 4.2.4 and compiled it on my own sandbox and it did fine. |
16 |
|
17 |
> |
18 |
> And there isn't anything in prefix-launcher-trunk over prefix-launcher-2.1.0 |
19 |
> that should have any influence for AIX 5.3, only AIX 6.1: |
20 |
> http://prefix-launcher.svn.sourceforge.net/viewvc/prefix-launcher/prefix-launcher/trunk/ChangeLog?view=log |
21 |
> |
22 |
>> Please submit a full bug report. |
23 |
>> See <URL:http://gcc.gnu.org/bugs.html> for instructions. |
24 |
>> make[4]: *** [charset.o] Error 1 |
25 |
> |
26 |
> Are you able to compile 'charset.o' with '-save-temps' compiler flag? |
27 |
|
28 |
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. |
29 |
|
30 |
> Some hints for prefix-launcher: |
31 |
> $ gmake config gcc_BUILDMODE=INTERACTIVE |
32 |
> $ gmake gcc SHELL=/bin/bash |
33 |
> Instead of running src_compile() from gcc/gcc.build, you get a bash-prompt where |
34 |
> you can run (parts of) src_compile manyally. However, this isn't Ctrl-C save. |
35 |
> |
36 |
>> 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' |
37 |
>> |
38 |
>> So far, I've not found a similar bug report. |
39 |
>> I'm trying it a second time but I assume its not going to work. |
40 |
>> This is on stage 2 which is a bit odd. |
41 |
> |
42 |
> Does it work to build vanilla gcc-4.2.4 out-of-the-box? |
43 |
|
44 |
Yes. |
45 |
|
46 |
Probably I'm going to start over again but here are some clues. |
47 |
|
48 |
First, my build scripts for gcc always do: |
49 |
|
50 |
ulimit -S -d unlimited |
51 |
|
52 |
I can't remember why I've added that over the years. But build script that worked did this: |
53 |
|
54 |
> ulimit -S -d unlimited |
55 |
> export CONFIG_SHELL=/usr/local/bin/bash |
56 |
> ( ../../src/gcc-4.2.4/configure -v \ |
57 |
> --disable-nls \ |
58 |
> --enable-threads=aix \ |
59 |
> --with-libiconv-prefix=/usr \ |
60 |
> --enable-languages=c,c++ && echo "configure returned $?" ) > C-OUT 2>&1 |
61 |
> ( gmake bootstrap && echo "gmake returned $?" ) > M-OUT 2>&1 & |
62 |
|
63 |
which is almost what your scripts did. That script worked. |
64 |
|
65 |
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: |
66 |
|
67 |
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.) |
68 |
2) I did the ulimit change above |
69 |
3) I moved my source and destination directories to much short paths (trying to avoid the arg list too long problem). |
70 |
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. |
71 |
|
72 |
So far, it is still going but I'm not 100% done with gcc yet but I'm past all the previous failure points. |
73 |
|
74 |
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. |
75 |
|
76 |
Can we set CONFIG_SHELL inside the top level Makefile? I'm going to just add it to my .bash_profile too. |
77 |
|
78 |
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. |
79 |
|
80 |
Thanks!!! I'm still plugging. (I haven't read your other email yet). |
81 |
|
82 |
Perry |