Kernel compilation error: gcc: error: elf_i386: no such file or directory

I am stuck in my kernel version prior to version 2.6.22. Error message:

SYSCALL arch / i386 / kernel / vsyscall-int80.so gcc: error: elf_i386: There is no such file or directory make [1]: * [arch / i386 / kernel / vsyscall-int80.so] Error 1 make: * [arch / i386 / kernel] Error 2

I tried google for answers, e.g. downgrade gcc, etc. But nothing happens. My OS is ubuntu 11.04 with kernel version 3.1.4.

So what is it wrong? Thank you for your responses.

+6
source share
4 answers

You can check the vdso make file, which should be in the arch / x86 / vdso / Makefile file.

find string

  VDSO_LDFLAGS 
there are two lines for x64 and the other for x32-bit systems.

he must have

  -m elf_x86_64 
and the other
  -m elf_x86 

replace them as

  -m64 
and
  -m32 
respectively.

Link to fix errors Link1 Lockergnome and Link2 ubuntu .

+22
source

I used this answer to this problem and changed the -m elf_i386 part to -m32 in the Makefile stored in the arch/i386/kernel directory and solved the problem for future reference.

+2
source

I changed the specified Makefile (arch / x86 / vdso / Makefile) and it fixed the problem. My platform is Ubuntu-12.04, Linux 3.13.0-30.

0
source
-4
source

Source: https://habr.com/ru/post/914776/


All Articles