[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel compilation failure


[In the meantime, I did an "apt-get upgrade" which seemed to have
solved the "unknown architecture" error message.  Also, I think
that last time I successfully compiled the kernel, the default
was "gcc-3.3" while now "gcc" points to "gcc-4.0".]

> You cut off way too much there.  It looks like the error occoured
> somewhere above that, or got lost somehow.  Are you doing a
> multithreaded compile (using -j) ?  If so try without it since at least
> then the errors might be more obvious.  Also adding V=1 to the make
> arguments makes it show all the compile steps rather than the short
> forms.

Following your advice, this is now the command I entered:

 MAKEFLAGS='V=1' make-kpkg --append-to-version +g2 kernel_image modules_image

And here are the messages:

/usr/bin/make -f scripts/Makefile.build obj=drivers/base
/usr/bin/make -f scripts/Makefile.build obj=drivers/base/power
/usr/bin/make -f scripts/Makefile.build obj=drivers/block
  gcc -Wp,-MD,drivers/block/.rd.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks  -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign   -DMODULE -DKBUILD_BASENAME=rd -DKBUILD_MODNAME=rd -c -o drivers/block/.tmp_rd.o drivers/block/rd.c
/bin/sh: line 1:  2419 Segmentation fault      gcc -Wp,-MD,drivers/block/.rd.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -DKBUILD_BASENAME=rd -DKBUILD_MODNAME=rd -c -o drivers/block/.tmp_rd.o drivers/block/rd.c
make[3]: *** [drivers/block/rd.o] Error 139
make[2]: *** [drivers/block] Error 2
make[1]: *** [drivers] Error 2
make[1]: Leaving directory `/home/eran/system/kernel/source/linux-source-2.6.12'
make: *** [stamp-build] Error 2

Trying a second time, it stopped (much earlier) at:

  gcc -Wp,-MD,arch/x86_64/kernel/.time.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks   -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign    -DKBUILD_BASENAME=time -DKBUILD_MODNAME=time -c -o arch/x86_64/kernel/.tmp_time.o arch/x86_64/kernel/time.c
/bin/sh: line 1:  4354 Segmentation fault      gcc -Wp,-MD,arch/x86_64/kernel/.time.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -DKBUILD_BASENAME=time -DKBUILD_MODNAME=time -c -o arch/x86_64/kernel/.tmp_time.o arch/x86_64/kernel/time.c
make[2]: *** [arch/x86_64/kernel/time.o] Error 139
make[1]: *** [arch/x86_64/kernel] Error 2
make[1]: Leaving directory `/home/eran/system/kernel/source/linux-source-2.6.12'
make: *** [stamp-build] Error 2

Thanks for your help.

Reply to: