FS#46562 - [gcc] Segfaults while building the kernel
Attached to Project:
Arch Linux
Opened by Alexander Pavel (SuperIce97) - Monday, 05 October 2015, 03:34 GMT
Last edited by Allan McRae (Allan) - Wednesday, 10 February 2016, 23:39 GMT
Opened by Alexander Pavel (SuperIce97) - Monday, 05 October 2015, 03:34 GMT
Last edited by Allan McRae (Allan) - Wednesday, 10 February 2016, 23:39 GMT
|
Details
Description: GCC randomly has segmentation faults while
trying to build the linux kernel. The segfaults are always
on different files, so it's not a bug in the kernel, but
gcc. I installed gcc49 from the AUR and the kernel built
perfectly. fine.
Additional info: Package: gcc 5.2.0-2 Attempted to build kernel using Arch Build System (ABSROOT=. abs core/linux). Works fine with gcc49 built from AUR but crashes with GCC 5.2.0-2 from the official repositories. Computer Specs: Acer Chromebook C740, Intel Celeron 3205u (Broadwell architecture), 4GB RAM, 16GB SSD (btrfs with lzo compression) Steps to reproduce: Attempt to build kernel with Arch Build System and GCC 5.2.0-2. May need a Broadwell CPU to reproduce (not sure if architecture specific yet). |
This task depends upon
Closed by Allan McRae (Allan)
Wednesday, 10 February 2016, 23:39 GMT
Reason for closing: Works for me
Additional comments about closing: Seems hardware specific
Wednesday, 10 February 2016, 23:39 GMT
Reason for closing: Works for me
Additional comments about closing: Seems hardware specific
Edit: Hmm, or not. It's a "U" Broadwell, so the microcode isn't going to do it.
but you need to be sure that it's not a configuration problem ( bad settings in /etc/makepkg.conf, a problem with LD_LIBRARY_PATH )
$ ldd /usr/bin/gcc
linux-vdso.so.1 (0x00007fff853cf000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007fa7720e3000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007fa771d3f000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa7723e1000)
if the environmental variable LD_LIBRARY_PATH is empty ( echo $LD_LIBRARY_PATH ) then it's ok
Also, make sure you have configured early microcode updates: https://wiki.archlinux.org/index.php/Microcode
Some higher-end Broadwell processors seem to require even newer microcode; our intel-ucode package ships the latest version provided by Intel but that's from January 2015. [1] It's not likely that your CPU model is affected but do test any new microcode once it becomes available.
[1] https://bugzilla.kernel.org/show_bug.cgi?id=103351