Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

kernel build errors - help required

Message
Author
User avatar
anticapitalista
Forum Veteran
Forum Veteran
Posts: 5672
Joined: Sat Jul 15, 2006 10:40 am

kernel build errors - help required

#1 Post by anticapitalista » Sun Mar 11, 2018 5:12 pm

I have been building antiX kernels using the vanilla kernel.org tarballs and all has been ok for a while, until now.

I can build 4.15.9 kernel without issue on stretch
I cannot build 4.9.87 (and previous 4.9.86) on stretch, but 4.9.83 built ok.

Here is the error message I get

Code: Select all

LD      arch/x86/boot/compressed/vmlinux
ld: unrecognised emulation mode: elf_x86
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om i386pep i386pe
arch/x86/boot/compressed/Makefile:105: recipe for target 'arch/x86/boot/compressed/vmlinux' failed
make[4]: *** [arch/x86/boot/compressed/vmlinux] Error 1
arch/x86/boot/Makefile:112: recipe for target 'arch/x86/boot/compressed/vmlinux' failed
make[3]: *** [arch/x86/boot/compressed/vmlinux] Error 2
arch/x86/Makefile:253: recipe for target 'bzImage' failed
make[2]: *** [bzImage] Error 2
make[2]: *** Waiting for unfinished jobs....
Nothing turns up in a search.

Any ideas anyone..?
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX-17 "Heather Heyer" - lean and mean.
https://antixlinux.com

User avatar
timkb4cq
Forum Veteran
Forum Veteran
Posts: 4309
Joined: Wed Jul 12, 2006 4:05 pm

Re: kernel build errors - help required

#2 Post by timkb4cq » Sun Mar 11, 2018 5:31 pm

Do you have libelf-dev installed? The newer kernels depend on it.
MSI 970A-G43 MB, AMD FX-6300 (six core), 16GB RAM, GeForce 730, Samsung 850 EVO 250GB SSD, Seagate Barracuda XT 3TB

User avatar
anticapitalista
Forum Veteran
Forum Veteran
Posts: 5672
Joined: Sat Jul 15, 2006 10:40 am

Re: kernel build errors - help required

#3 Post by anticapitalista » Sun Mar 11, 2018 5:33 pm

timkb4cq wrote:Do you have libelf-dev installed? The newer kernels depend on it.
Yes, I do.

Code: Select all

libelf-dev is already the newest version (0.168-1).
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX-17 "Heather Heyer" - lean and mean.
https://antixlinux.com

antiX-Dave
Forum Regular
Forum Regular
Posts: 375
Joined: Mon Apr 16, 2012 4:51 pm

Re: kernel build errors - help required

#4 Post by antiX-Dave » Sun Mar 11, 2018 7:02 pm

My guess is that if you are building on a 64 bit install the emulation libraries for 32 bit are missing based off the ld unrecognized emulation mode...
Therefore the various x86 modules cannot be found and the build instructions fail.

But that is really a guess from following other build errors. I have not yet built a kernel.

User avatar
anticapitalista
Forum Veteran
Forum Veteran
Posts: 5672
Joined: Sat Jul 15, 2006 10:40 am

Re: kernel build errors - help required

#5 Post by anticapitalista » Sun Mar 11, 2018 7:04 pm

I think it is down to some very new Debian updates, since building the 4.9.83 version now does not build.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX-17 "Heather Heyer" - lean and mean.
https://antixlinux.com

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 375
Joined: Sun Aug 20, 2017 10:11 am

Re: kernel build errors - help required

#6 Post by stsoh » Mon Mar 12, 2018 3:14 pm

Code: Select all

target 'bzImage' failed
probably need LOADLIN for bzimage.
MX-17.1_x64 Horizon, G41M-P33 Combo(MS-7592), Pentium E5400 (min/max: 1203/2700 MHz), 8Gb RAM (800 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.

User avatar
anticapitalista
Forum Veteran
Forum Veteran
Posts: 5672
Joined: Sat Jul 15, 2006 10:40 am

Re: kernel build errors - help required

#7 Post by anticapitalista » Mon Mar 12, 2018 4:31 pm

stsoh wrote:

Code: Select all

target 'bzImage' failed
probably need LOADLIN for bzimage.
Installed loadlin, rebuilt kernel and it fails again with the same message.
Building a 4.15.9 kernel works fine.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX-17 "Heather Heyer" - lean and mean.
https://antixlinux.com

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 375
Joined: Sun Aug 20, 2017 10:11 am

Re: kernel build errors - help required

#8 Post by stsoh » Tue Mar 13, 2018 4:51 am

open terminal input

Code: Select all

ld -V
MX-17.1_x64 Horizon, G41M-P33 Combo(MS-7592), Pentium E5400 (min/max: 1203/2700 MHz), 8Gb RAM (800 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.

User avatar
anticapitalista
Forum Veteran
Forum Veteran
Posts: 5672
Joined: Sat Jul 15, 2006 10:40 am

Re: kernel build errors - help required

#9 Post by anticapitalista » Tue Mar 13, 2018 5:06 am

Code: Select all

ld -V
GNU ld (GNU Binutils for Debian) 2.28
  Supported emulations:
   elf_x86_64
   elf32_x86_64
   elf_i386
   elf_iamcu
   i386linux
   elf_l1om
   elf_k1om
   i386pep
   i386pe
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX-17 "Heather Heyer" - lean and mean.
https://antixlinux.com

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 375
Joined: Sun Aug 20, 2017 10:11 am

Re: kernel build errors - help required

#10 Post by stsoh » Tue Mar 13, 2018 5:52 am

try upgrade binutils 2.8 to 2.30-7 (sid repo).
MX-17.1_x64 Horizon, G41M-P33 Combo(MS-7592), Pentium E5400 (min/max: 1203/2700 MHz), 8Gb RAM (800 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.

Post Reply

Return to “antiX”