FreeBSD make buildworld fail: cc: Internal error: Killed: 9 (program cc1)

Traiano Welcome Traiano.Welcome at mtnbusiness.co.za
Thu Nov 10 12:57:36 UTC 2011


Hi 

Thanks for the feedback.


On 2011/11/10 1:28 PM, "Denise H. G." <darcsis at gmail.com> wrote:

>
>On 2011/11/10 at 18:05, Traiano Welcome
><Traiano.Welcome at mtnbusiness.co.za> wrote:
>> 
>> Hi All
>>  I'm trying to upgrade from FreeBSD 8.0-RELEASE #0 to FreeBSD 8.2 or
>> better. My upgrade sequence would be as follows:
>> 
>>  0. cd /usr/src/;make cleanworld (and in extreme cases rm -rf /usr/src/*
>> and rm -rf /usr/obj)
>>  1. csup -L 2 stable supfile.
>>  2. cd /usr/src; make buildworld && make buildkernel && make
>>installkernel
>> && make installworld && reboot
>>  3. mergemaster -p && make installworld && mergemaster && reboot
>> 
>
>No. your upgrade steps are a little bit wrong. Just follow this:
>
>build world -> build kernel -> install kernel -> reboot to singler user ->
>mergemaster -p -> install world -> mergemaster -> make delete-old ...


I'd be happy to try this sequence, however I don't make it  past "make
buildworld". 
(of note, the sequence I used above works on all my other boxen though)

I've just scrutinised /usr/src/UPDATING (there is no file called UPGRADING
? ) and can't seem to find anything specific to this make fail. File
version as follows:

 $FreeBSD: src/UPDATING,v 1.632.2.19.2.6 2011/10/04 19:07:38 cperciva Exp $

I'm following the process outlined in the FreeBSD manual up until "make
buildworld", and can't see where I might be wrecking things:

 1) synching the source:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html
    
     (... BTW, note to editor: I see nothing in this section of the manual
about "csup"?

 2) building world:

     
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html

BTW: I've just upgraded my binutils (as, ld) as there was a reference  in
the UPDATING file to an ld bug, but that did not seem to affect anything.



>
>You'd better take a look at /usr/src/UPGRADING, which contains details
>about upgrade steps.
>
>
>> 
>> My stable-supfile is as follows:
>> 
>> ---
>>  *default host=cvsup2.za.freebsd.org
>>  *default base=/var/db
>>  *default prefix=/usr
>>  *default release=cvs tag=RELENG_8_2
>>  *default delete use-rel-suffix
>>  src-all
>> ---
>> 
>> 
>>  However, I'm not getting past "make buildworld". Below is the tail end
>>of
>> my make buildworld:
>> 
>> ---
>> .
>> .
>> .
>> 
>> cc -O2 -pipe -DIN_GCC -DHAVE_CONFIG_H
>> -DPREFIX=\"/usr/obj/usr/src/tmp/usr\"
>> -I/usr/obj/usr/src/tmp/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools
>> -I/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools
>> -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc
>> -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config
>> -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include
>> 
>>-I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/inclu
>>de
>>  
>>-I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber
>>   -I/usr/obj/usr/src/tmp/legacy/usr/include -c
>>../cc_tools/insn-attrtab.c
>> cc: Internal error: Killed: 9 (program cc1)
>> Please submit a full bug report.
>> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
>> *** Error code 1
>> 
>> Stop in /usr/src/gnu/usr.bin/cc/cc_int.
>> *** Error code 1
>> 
>> Stop in /usr/src/gnu/usr.bin/cc.
>> *** Error code 1
>> 
>> Stop in /usr/src.
>> *** Error code 1
>> 
>> Stop in /usr/src.
>> *** Error code 1
>> 
>> Stop in /usr/src.
>> ---
>> 
>> 
>> My questions are:
>> 
>> - Is this a known issue (can't  seem to find much on google) ?
>> - If not, how would I go about pinpointing the root cause of this
>>compile
>> error. Upping the make debug level doesn't seem to get my any more
>> detailed information that I can use .
>> 
>> I've run csup multiple times (with multiple make clean;make
>> cleanworld;make cleandir in between) across 48 hours , but each update
>>to
>> my source tree doesn't seem to get any different result.
>> 
>> I've also tried upgrading my userland tools before doing the upgrade
>> (portupgrade -a) in the hope that the my compiler tools might have been
>> updated to fix this.
>> 
>> 
>> Any advice would be appreciated,
>> Traiano
>> 
>> 
>> ................
>
>
>
>-- 
>History proves nothing.



More information about the freebsd-questions mailing list