Update 20th Feb 2013: Kernel 3.8
compiles fine on AMD FX 8150. Just ignore kernel 3.7.
Original post:
This is a collection of errors
(although you can obviously compile the kernel this way -- just not on AMD FX 8150...)
It does not hold any solutions
See here for how to compile kernel 3.7.0 to 3.7.1:
http://verahill.blogspot.com.au/2012/12/compiling-kernel-37-on-debian.html
and here for how to patch 3.7.1
http://verahill.blogspot.com.au/2012/12/patching-kernel-371-to-fix.html
See here for how to compile 3.7.2 and 3.7.3:
http://verahill.blogspot.com.au/2013/01/321-compiling-kernel-372-on-debian.html
Post continues:
Normally this wouldn't merit its own post, but because I've been annoyed over the inability to compile
kernels on my AMD FX 8150 I decided to collect as much data on the errors as possible.
Basically, kernel 3.7.x fails to build on AMD FX 8150, while kernels 3.6.3 and 3.5 build just fine.
Here's the lspci -n
hardware profile for my system, although I'm fairly certain it's due to AMD FX 8150:
00:00.0 0600: 1002:5a14 (rev 02)
00:04.0 0604: 1002:5a18
00:09.0 0604: 1002:5a1c
00:11.0 0106: 1002:4390 (rev 40)
00:12.0 0c03: 1002:4397
00:12.2 0c03: 1002:4396
00:13.0 0c03: 1002:4397
00:13.2 0c03: 1002:4396
00:14.0 0c05: 1002:4385 (rev 42)
00:14.1 0101: 1002:439c (rev 40)
00:14.2 0403: 1002:4383 (rev 40)
00:14.3 0601: 1002:439d (rev 40)
00:14.4 0604: 1002:4384 (rev 40)
00:14.5 0c03: 1002:4399
00:15.0 0604: 1002:43a0
00:15.1 0604: 1002:43a1
00:15.2 0604: 1002:43a2
00:15.3 0604: 1002:43a3
00:16.0 0c03: 1002:4397
00:16.2 0c03: 1002:4396
00:18.0 0600: 1022:1600
00:18.1 0600: 1022:1601
00:18.2 0600: 1022:1602
00:18.3 0600: 1022:1603
00:18.4 0600: 1022:1604
00:18.5 0600: 1022:1605
01:00.0 0300: 10de:0a65 (rev a2)
01:00.1 0403: 10de:0be3 (rev a1)
02:00.0 0c03: 1b6f:7023 (rev 01)
03:06.0 0200: 10ec:8169 (rev 10)
04:00.0 0200: 10ec:8168 (rev 06)
The lower number of errors for kernel 3.7 below is because I did -j1 (so fewer threads to finish), not because it's any better.
Compilation (-O1 example
)
mkdir ~/tmp
cd ~/tmp
wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.7.2.tar.bz2
tar xvf linux-3.7.2.tar.bz2
cd linux-3.7.2/
cat /boot/config-`uname -r`>.config
make oldconfig
make-kpkg clean
find -name Makefile|xargs -I {} sed -i 's/\-O2/\-O1/g' {}
time fakeroot make-kpkg -j9 --initrd kernel_image kernel_headers
Errors:
-O2 on kernel 3.7.2 with AMD FX 8150:
net/mac80211/mesh_hwmp.c:1224:1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:22603
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [net/mac80211/mesh_hwmp.o] Error 1
make[2]: *** [net/mac80211] Error 2
make[2]: *** Waiting for unfinished jobs....
net/netfilter/xt_esp.c:94:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [net/netfilter/xt_esp.o] Error 1
make[2]: *** [net/netfilter] Error 2
make[1]: *** [net] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/me/tmp/linux-3.7.2/arch/x86/include/asm/msr-index.h:1:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[6]: *** [drivers/net/wireless/ath/ath9k/ar5008_phy.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [drivers/net/wireless/ath/ath9k] Error 2
make[4]: *** [drivers/net/wireless/ath] Error 2
make[3]: *** [drivers/net/wireless] Error 2
make[3]: *** Waiting for unfinished jobs....
/home/me/tmp/linux-3.7.2/arch/x86/include/asm/elf.h:78:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[4]: *** [drivers/tty/ipwireless/main.o] Error 1
make[3]: *** [drivers/tty/ipwireless] Error 2
make[3]: *** Waiting for unfinished jobs....
drivers/tty/serial/jsm/jsm_neo.c: In function 'neo_intr':
drivers/tty/serial/jsm/jsm_neo.c:1244:1: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[5]: *** [drivers/tty/serial/jsm/jsm_neo.o] Error 1
make[4]: *** [drivers/tty/serial/jsm] Error 2
make[3]: *** [drivers/tty/serial] Error 2
make[2]: *** [drivers/tty] Error 2
make[2]: *** Waiting for unfinished jobs....
drivers/staging/silicom/bp_proc.c:74:31: warning: 'bp_procfs_dir' defined but not used [-Wunused-variable]
drivers/staging/silicom/bp_proc.c:76:31: warning: 'proc_getdir' defined but not used [-Wunused-function]
{standard input}: Assembler messages:
{standard input}:37643: Error: can't resolve `.LVL231' {*UND* section} - `.Ltext0' {.text section}
{standard input}:37739: Error: can't resolve `.LVL231' {*UND* section} - `.Ltext0' {.text section}
{standard input}:37743: Error: can't resolve `.LVL231' {*UND* section} - `.Ltext0' {.text section}
{standard input}:37783: Error: can't resolve `.LVL231' {*UND* section} - `.Ltext0' {.text section}
make[4]: *** [drivers/staging/speakup/kobjects.o] Error 1
make[3]: *** [drivers/staging/speakup] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [drivers/staging] Error 2
make[2]: *** [drivers/net] Error 2
In file included from include/linux/genhd.h:65:0,
from include/linux/blkdev.h:9,
from include/scsi/scsi_cmnd.h:5,
from drivers/scsi/sym53c8xx_2/sym_glue.h:58,
from drivers/scsi/sym53c8xx_2/sym_hipd.c:44:
include/linux/fs.h:1550:49: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[4]: *** [drivers/scsi/sym53c8xx_2/sym_hipd.o] Error 1
make[3]: *** [drivers/scsi/sym53c8xx_2] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [drivers/scsi] Error 2
make[1]: *** [drivers] Error 2
make: *** [debian/stamp/build/kernel] Error 2
and finally
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x2b377411eead]
/usr/lib/gcc/x86_64-linux-gnu/4.7/cc1[0x4d2f51]
======= Memory map: ========
00400000-00fd3000 r-xp 00000000 08:01 1312897 /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1
011d2000-011dd000 rw-p 00bd2000 08:01 1312897 /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1
011dd000-0133c000 rw-p 00000000 00:00 0
01df7000-020b7000 rw-p 00000000 00:00 0 [heap]
2b3772f20000-2b3772f40000 r-xp 00000000 08:01 11800025 /lib/x86_64-linux-gnu/ld-2.13.so
2b3772f40000-2b3772f42000 rw-p 00000000 00:00 0
2b377313f000-2b3773140000 r--p 0001f000 08:01 11800025 /lib/x86_64-linux-gnu/ld-2.13.so
2b3773140000-2b3773141000 rw-p 00020000 08:01 11800025 /lib/x86_64-linux-gnu/ld-2.13.so
2b3773141000-2b3773142000 rw-p 00000000 00:00 0
2b3773148000-2b3773151000 r-xp 00000000 08:01 2233201 /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so
2b3773151000-2b3773351000 ---p 00009000 08:01 2233201 /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so
2b3773351000-2b3773352000 rw-p 00009000 08:01 2233201 /usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so
2b377336b000-2b377336c000 rw-p 00000000 00:00 0
2b3773370000-2b3773384000 r-xp 00000000 08:01 1321607 /usr/lib/x86_64-linux-gnu/libmpc.so.2.0.0
2b3773384000-2b3773584000 ---p 00014000 08:01 1321607 /usr/lib/x86_64-linux-gnu/libmpc.so.2.0.0
2b3773584000-2b3773585000 rw-p 00014000 08:01 1321607 /usr/lib/x86_64-linux-gnu/libmpc.so.2.0.0
2b3773588000-2b37735e3000 r-xp 00000000 08:01 1321605 /usr/lib/x86_64-linux-gnu/libmpfr.so.4.1.0
2b37735e3000-2b37737e3000 ---p 0005b000 08:01 1321605 /usr/lib/x86_64-linux-gnu/libmpfr.so.4.1.0
2b37737e3000-2b37737e5000 rw-p 0005b000 08:01 1321605 /usr/lib/x86_64-linux-gnu/libmpfr.so.4.1.0
2b37737e8000-2b377384f000 r-xp 00000000 08:01 1321603 /usr/lib/x86_64-linux-gnu/libgmp.so.10.0.5
2b377384f000-2b3773a4f000 ---p 00067000 08:01 1321603 /usr/lib/x86_64-linux-gnu/libgmp.so.10.0.5
2b3773a4f000-2b3773a57000 rw-p 00067000 08:01 1321603 /usr/lib/x86_64-linux-gnu/libgmp.so.10.0.5
2b3773a57000-2b3773a58000 rw-p 00000000 00:00 0
2b3773a58000-2b3773a5a000 r-xp 00000000 08:01 11800014 /lib/x86_64-linux-gnu/libdl-2.13.so
2b3773a5a000-2b3773c5a000 ---p 00002000 08:01 11800014 /lib/x86_64-linux-gnu/libdl-2.13.so
2b3773c5a000-2b3773c5b000 r--p 00002000 08:01 11800014 /lib/x86_64-linux-gnu/libdl-2.13.so
2b3773c5b000-2b3773c5c000 rw-p 00003000 08:01 11800014 /lib/x86_64-linux-gnu/libdl-2.13.so
2b3773c60000-2b3773c76000 r-xp 00000000 08:01 11796562 /lib/x86_64-linux-gnu/libz.so.1.2.7
2b3773c76000-2b3773e75000 ---p 00016000 08:01 11796562 /lib/x86_64-linux-gnu/libz.so.1.2.7
2b3773e75000-2b3773e76000 r--p 00015000 08:01 11796562 /lib/x86_64-linux-gnu/libz.so.1.2.7
2b3773e76000-2b3773e77000 rw-p 00016000 08:01 11796562 /lib/x86_64-linux-gnu/libz.so.1.2.7
2b3773e78000-2b3773ef9000 r-xp 00000000 08:01 11800003 /lib/x86_64-linux-gnu/libm-2.13.so
2b3773ef9000-2b37740f8000 ---p 00081000 08:01 11800003 /lib/x86_64-linux-gnu/libm-2.13.so
2b37740f8000-2b37740f9000 r--p 00080000 08:01 11800003 /lib/x86_64-linux-gnu/libm-2.13.so
2b37740f9000-2b37740fa000 rw-p 00081000 08:01 11800003 /lib/x86_64-linux-gnu/libm-2.13.so
2b37740fa000-2b37740fb000 rw-p 00000000 00:00 0
2b3774100000-2b3774280000 r-xp 00000000 08:01 11796538 /lib/x86_64-linux-gnu/libc-2.13.so
2b3774280000-2b3774480000 ---p 00180000 08:01 11796538 /lib/x86_64-linux-gnu/libc-2.13.so
2b3774480000-2b3774484000 r--p 00180000 08:01 11796538 /lib/x86_64-linux-gnu/libc-2.13.so
2b3774484000-2b3774485000 rw-p 00184000 08:01 11796538 /lib/x86_64-linux-gnu/libc-2.13.so
2b3774485000-2b377448d000 rw-p 00000000 00:00 0
2b3774490000-2b3774681000 r--p 00000000 08:01 1310939 /usr/lib/locale/locale-archive
2b3774681000-2b377469e000 rw-p 00000000 00:00 0
2b37746a3000-2b37750d8000 rw-p 00000000 00:00 0
2b3775119000-2b3776444000 rw-p 00000000 00:00 0
2b3776460000-2b3776475000 r-xp 00000000 08:01 11796737 /lib/x86_64-linux-gnu/libgcc_s.so.1
2b3776475000-2b3776675000 ---p 00015000 08:01 11796737 /lib/x86_64-linux-gnu/libgcc_s.so.1
2b3776675000-2b3776676000 rw-p 00015000 08:01 11796737 /lib/x86_64-linux-gnu/libgcc_s.so.1
2b3778000000-2b3778021000 rw-p 00000000 00:00 0
2b3778021000-2b377c000000 ---p 00000000 00:00 0
7ffffd08f000-7ffffd0b2000 rw-p 00000000 00:00 0 [stack]
7ffffd200000-7ffffd201000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
-O1; kernel 3.7.2; AMD FX 8150
fs/ecryptfs/keystore.c:1168:28: warning: 'payload_len' may be used uninitialized in this function [-Wmaybe-uninitialized]
sound/pci/hda/patch_cmedia.c:777:1: internal compiler error: in size_of_die, at dwarf2out.c:7795
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[4]: *** [sound/pci/hda/patch_cmedia.o] Error 1
make[3]: *** [sound/pci/hda] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [sound/pci] Error 2
make[1]: *** [sound] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from drivers/mtd/chips/cfi_cmdset_0001.c:35:0:
drivers/mtd/chips/cfi_cmdset_0001.c: In function 'cfi_intelext_write_words':
include/linux/mtd/map.h:331:11: warning: 'r.x[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/media/usb/gspca/topro.c:4968:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[5]: *** [drivers/media/usb/gspca/topro.o] Error 1
make[4]: *** [drivers/media/usb/gspca] Error 2
make[3]: *** [drivers/media/usb] Error 2
make[3]: *** Waiting for unfinished jobs....
drivers/net/ethernet/amd/nmclan_cs.c: In function 'nmclan_config':
drivers/net/ethernet/amd/nmclan_cs.c:625:3: warning: 'pcmcia_request_exclusive_irq' is deprecated (declared at include/pcmcia/ds.h:201) [-Wdeprecated-declarations]
make[2]: *** [drivers/media] Error 2
make[2]: *** Waiting for unfinished jobs....
drivers/net/ethernet/intel/ixgb/ixgb_ee.c:604:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[6]: *** [drivers/net/ethernet/intel/ixgb/ixgb_ee.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [drivers/net/ethernet/intel/ixgb] Error 2
make[4]: *** [drivers/net/ethernet/intel] Error 2
make[3]: *** [drivers/net/ethernet] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [drivers/net] Error 2
make[1]: *** [drivers] Error 2
make: *** [debian/stamp/build/kernel] Error 2
-O0, kernel 3.7.2, AMD FX 8150
exec make kpkg_version=12.036+nmu3 -f /usr/share/kernel-package/ruleset/minimal.mk debian INITRD=YES
exec debian/rules INITRD=YES kernel_image kernel_headers
Setup is 16988 bytes (padded to 17408 bytes).
System is 2884 kB
CRC f8376713
drivers/isdn/hardware/eicon/divasi.c:577:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[5]: *** [drivers/isdn/hardware/eicon/divasi.o] Error 1
make[4]: *** [drivers/isdn/hardware/eicon] Error 2
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [drivers/isdn/hardware] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [drivers/isdn] Error 2
make[2]: *** Waiting for unfinished jobs....
fs/reiserfs/bitmap.c: In function 'scan_bitmap_block.constprop.9':
fs/reiserfs/bitmap.c:236:9: warning: 'next' may be used uninitialized in this function [-Wmaybe-uninitialized]
make[1]: *** [drivers] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [debian/stamp/build/kernel] Error 2
Error messages when compiling kernel 3.7 on AMD FX 8150 with -O2 or -O1
exec make kpkg_version=12.036+nmu3 -f /usr/share/kernel-package/ruleset/minimal.mk debian INITRD=YES
exec debian/rules INITRD=YES kernel_image kernel_headers
net/xfrm/xfrm_sysctl.c:75:1: internal compiler error: in pop_scope, at c-decl.c:1244
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [net/xfrm/xfrm_sysctl.o] Error 1
make[2]: *** [net/xfrm] Error 2
make[1]: *** [net] Error 2
make: *** [debian/stamp/build/kernel] Error 2
Kernel 3.7 with -O0 on AMD FX 8150
exec make kpkg_version=12.036+nmu3 -f /usr/share/kernel-package/ruleset/minimal.mk debian INITRD=YES
exec debian/rules INITRD=YES kernel_image kernel_headers
In file included from include/acpi/platform/aclinux.h:59:0,
from include/acpi/platform/acenv.h:141,
from include/acpi/acpi.h:56,
from drivers/acpi/acpica/exmisc.c:45:
include/linux/sched.h:1352:9: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[4]: *** [drivers/acpi/acpica/exmisc.o] Error 1
make[3]: *** [drivers/acpi/acpica] Error 2
make[2]: *** [drivers/acpi] Error 2
make[1]: *** [drivers] Error 2
make: *** [debian/stamp/build/kernel] Error 2