Cannot Compile linue 1.3.86 with GCC 2.7.2p

Cannot Compile linue 1.3.86 with GCC 2.7.2p

Post by Robert Hoghau » Sat, 13 Apr 1996 04:00:00



I cannot compile kernel above 1.3.84 wiht GCC 2.7.2p. This is the
pentium patched upgrade for GCC 2.7.0. I get the following error
Does anyone know what is wrong here!
this is an except:..

make all_targets
make[3]: Entering directory `/usr/src/linux-1.3.86/drivers/block'
gcc -D__KERNEL__ -I/usr/src/linux-1.3.86/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe
-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586  -c
-o ll_rw_blk.o ll_rw_blk.c
gcc -D__KERNEL__ -I/usr/src/linux-1.3.86/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe
-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586  -c
-o genhd.o genhd.c
gcc -D__KERNEL__ -I/usr/src/linux-1.3.86/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe
-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586  -c
-o floppy.o floppy.c
cpp: output pipe has been closed
gcc: Internal compiler error: program cc1 got fatal signal 11
make[3]: *** [floppy.o] Error 1
make[3]: Leaving directory `/usr/src/linux-1.3.86/drivers/block'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-1.3.86/drivers/block'
make[1]: *** [sub_dirs] Error 2
make[1]: Leaving directory `/usr/src/linux-1.3.86/drivers'
make: *** [linuxsubdirs] Error 2

Help Help

 
 
 

Cannot Compile linue 1.3.86 with GCC 2.7.2p

Post by Larry Daffn » Sun, 14 Apr 1996 04:00:00



>I cannot compile kernel above 1.3.84 wiht GCC 2.7.2p. This is the
>pentium patched upgrade for GCC 2.7.0. I get the following error
>Does anyone know what is wrong here!
>this is an except:..

Try backing off to the regular gcc-2.7.2.  It seems like a large
number of people have reported internal compiler errors compiling with
the pentium gcc. If that fails too, it's possible you have flaky
memory.  I would try the vanilla gcc first, though.

-Larry
--
  Larry Daffner        |  Linux: Unleash the workstation in your PC!

Never underestimate the bandwidth of a station wagon full of mag tapes
        -- Dennis Ritchie

 
 
 

Cannot Compile linue 1.3.86 with GCC 2.7.2p

Post by Dirk Rogal » Tue, 16 Apr 1996 04:00:00


: I cannot compile kernel above 1.3.84 wiht GCC 2.7.2p. This is the
: pentium patched upgrade for GCC 2.7.0. I get the following error
: Does anyone know what is wrong here!
: this is an except:..
: make all_targets
: [...]

: gcc -D__KERNEL__ -I/usr/src/linux-1.3.86/include -Wall
: -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe
: -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586  -c
: -o floppy.o floppy.c
: cpp: output pipe has been closed
: gcc: Internal compiler error: program cc1 got fatal signal 11
: make[3]: *** [floppy.o] Error 1
:[...]

I produced exactly the same problem at the same file (floppy.c) last night,
when I compiled on a friend's Pentium/8 MB Notebook (he's a Linux-newbie and
not deeply confessed of it, so this was critical ;-).

Solved it by:
 0. Closing every other vt-session (to reduce RAM-comsumption).
 1. cd'ing to /usr/src/linux/drivers/block
 2. Compiling this file by hand with the same line mentioned above, except
    a) using '-O1' instead of '-O2'
    b) leaving out '-pipe', the let the gcc's single stages produce real
       temporary files to save memory.
 3. cd'ing back to /usr/src/linux
 4. Continue normal compilation via 'make zImage'

The resulting kernel works flawless, so far.

Dirk

 
 
 

Cannot Compile linue 1.3.86 with GCC 2.7.2p

Post by Paul Rober » Tue, 23 Apr 1996 04:00:00


Try the following script.  It will cope with sig11 errors and coontinue
comoiling the kernel (then modules).

You may to change the KERNEL=... line.

Paul.

#!/bin/sh
# v 1.0.5

KERNEL=zdisk

if [ ! -d /usr/src/linux/modules ]; then
        rm -rf modules
        mkdir -p /usr/src/linux/modules
        echo Making modules directory
fi

echo -n Removing unnecessary files
rm -rf `find . -mount -empty -type f -print`
rm -rf `find . -mount -name \*.orig -print`
rm -rf modules_install.txt zdisk.txt zlilo.txt zImage.txt

rm -rf `find . -name .depend -print`
rm -rf dependancies.txt
echo
echo -n Updating dependancies
until `grep "mv \.tmpdepend \.depend" dependancies.txt >& /dev/null`
do
        make dep >& dependancies.txt
        grep "mv \.tmpdepend \.depend" dependancies.txt >& /dev/null
        if [ $? -ne 0 ]; then
                rm -rf dependancies.txt
                echo -n .
        fi
done

rm -f vmlinux
echo
echo -n Making kernel
while [ ! -f vmlinux ]
do
        make $KERNEL >& kernel.txt
        if [ ! -f vmlinux ]; then
                if grep "gcc: Internal compiler error:" kernel.txt > /dev/null
                then
                        grep "Error 1" kernel.txt >& /dev/null
                        if [ $? -eq 0 ]; then
                                filename=`grep "Error 1" kernel.txt | \
                                                  awk '{print $3}' | \
                                                  sed s/\\\[//g | \
                                                  sed s/\\\]//g`
                                rm -f `find /usr/src/linux -name $filename -print`
                        fi
                elif grep "file not recognized:" kernel.txt > /dev/null
                then
                        filename=`grep "file not recognized" kernel.txt | \
                                          awk '{print $1}' | \
                                          sed s/\\://g`
                        rm -f `find /usr/src/linux -name $filename -print`
                elif grep "undefined reference to" kernel.txt > /dev/null
                then
                        function=`grep "undefined reference to" kernel.txt | \
                                          head -1 | \
                                          awk '{ print $5 }' | \
                                          sed s/\'//g | \
                                          sed s/\\\`//g`

                        rm -f `grep $function \`find . -name \*.[cS]\` | \
                                   sed s/\\\.[cS]/\\\.o/g | \
                                   sed s/:/:\ /g | \
                                   awk '{ print $1 }' | \
                                   sed s/://g | \
                                   uniq`
                fi

        fi
        echo -n .
done

rm -rf modules.txt
echo
echo -n Making modules
until `grep "Leaving directory \\\`/usr/src/linux/arch/i386/lib\'" modules.txt

Quote:>& /dev/null`

do
        make modules >& modules.txt
        grep "Leaving directory \\\`/usr/src/linux/arch/i386/lib\'" modules.txt >&
/dev/null
        if [ $? -ne 0 ]; then
                echo -n .
                grep "gcc: Internal compiler error: program cc1 got fatal signal 11"
modules.txt >& /dev/null
                if [ $? -eq 0 ]; then
                        grep "Error 1" modules.txt >& /dev/null
                        if [ $? -eq 0 ]; then
                                filename=`grep "Error 1" modules.txt | \
                                awk '{print $3}' | \
                                sed s/\\\[//g | \
                                sed s/\\\]//g`
                                rm -rf `find /usr/src/linux -name $filename -print`
                        fi
                else
                        grep "file not recognised:" modules.txt > /dev/null
                        if [ $? -eq 0 ]; then
                                filename=`grep "file not recognised:" modules.txt | \
                                awk '{print $1}' | \
                                sed s/\\://g`
                                rm -rf `find /usr/src/linux -name $filename -print`
                        fi
                fi
        fi
done

echo
echo -n Installing modules
make modules_install >& modules_install.txt

echo

|  Paul Roberts              Keeper of the Queen Mail Service archives    |

|  http://www.ozemail.com.au/~freddie                                     |
|  http://www.ozemail.com.au/~freddie/queen/index.html for Queen material |
|  http://www.ozemail.com.au/~freddie/pgp.html for PGP public key         |

 
 
 

1. iternal compiler error gcc 2.7.0 doing kernel 1.3.86

i tried to compile kernel 1.3.86 with gcc 2.7.0 and got an error
message like:
gcc -D__KERNEL__ -I/usr/src/linux-1.3.86/include -Wall -Wstrict-prototypes \
-O2 -fomit-frame-pointer -fno-strength-reduce -pipegcc: \
Internal compiler error: program cc1 got fatal signal 11

what is going wrong.
what i want, was vfat filesystem. maybe there exist another
solution.

thanks for tips

joerg


2. Setting up X ona Thinkpad 770

3. Can't Kompile 1.3.86 - Non GCC-header

4. FreeBSD 3.3 does not install the handbook and the FAQ

5. compiling SB sound support 1.3.86

6. KDE in LinuxPPC2000

7. Error compiling linux 2.0.13 with gcc 2.7.2p

8. Test - Please Ignore

9. BUG report for 1.3.86 (or all 1.3.x) in pas16 scsi driver

10. gcc 2.7.2p vs. gcc 2.6.3

11. Kernel problems (1.3.86)

12. 1.3.86 SMP Problem

13. IP Masqerading and 1.3.86