kernel build errors - help required

Message
Author
User avatar
anticapitalista
Developer
Posts: 4160
Joined: Sat Jul 15, 2006 10:40 am

kernel build errors - help required

#1 Post by anticapitalista »

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 with runit - lean and mean.
https://antixlinux.com

User avatar
timkb4cq
Developer
Posts: 3186
Joined: Wed Jul 12, 2006 4:05 pm

Re: kernel build errors - help required

#2 Post by timkb4cq »

Do you have libelf-dev installed? The newer kernels depend on it.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
anticapitalista
Developer
Posts: 4160
Joined: Sat Jul 15, 2006 10:40 am

Re: kernel build errors - help required

#3 Post by anticapitalista »

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 with runit - lean and mean.
https://antixlinux.com

antiX-Dave
Developer
Posts: 372
Joined: Mon Apr 16, 2012 4:51 pm

Re: kernel build errors - help required

#4 Post by antiX-Dave »

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
Developer
Posts: 4160
Joined: Sat Jul 15, 2006 10:40 am

Re: kernel build errors - help required

#5 Post by anticapitalista »

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 with runit - lean and mean.
https://antixlinux.com

User avatar
stsoh
Posts: 183
Joined: Sun Aug 20, 2017 10:11 am

Re: kernel build errors - help required

#6 Post by stsoh »

Code: Select all

target 'bzImage' failed
probably need LOADLIN for bzimage.
MX-17.1_x64 Horizon, G41M-P33 Combo (MS-7592), Pentium E5400 (2706 MHz), 8Gb RAM (984 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.
Accepted Linux when i found MX-Linux in 2016.

User avatar
anticapitalista
Developer
Posts: 4160
Joined: Sat Jul 15, 2006 10:40 am

Re: kernel build errors - help required

#7 Post by anticapitalista »

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 with runit - lean and mean.
https://antixlinux.com

User avatar
stsoh
Posts: 183
Joined: Sun Aug 20, 2017 10:11 am

Re: kernel build errors - help required

#8 Post by stsoh »

open terminal input

Code: Select all

ld -V
MX-17.1_x64 Horizon, G41M-P33 Combo (MS-7592), Pentium E5400 (2706 MHz), 8Gb RAM (984 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.
Accepted Linux when i found MX-Linux in 2016.

User avatar
anticapitalista
Developer
Posts: 4160
Joined: Sat Jul 15, 2006 10:40 am

Re: kernel build errors - help required

#9 Post by anticapitalista »

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 with runit - lean and mean.
https://antixlinux.com

User avatar
stsoh
Posts: 183
Joined: Sun Aug 20, 2017 10:11 am

Re: kernel build errors - help required

#10 Post by stsoh »

try upgrade binutils 2.8 to 2.30-7 (sid repo).
MX-17.1_x64 Horizon, G41M-P33 Combo (MS-7592), Pentium E5400 (2706 MHz), 8Gb RAM (984 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.
Accepted Linux when i found MX-Linux in 2016.

Post Reply

Return to “antiX”