LD ARCH/X86/MM/BUILT-IN.O
As ARCH/X86/VDSO/VDSO32/INT80.O
Vdso arch/x86/vdso/vdso32-int80.so.dbg
Gcc:error:elf_i386:No such file or directory
MAKE[2]: * * * [arch/x86/vdso/vdso32-int80.so.dbg] Error 1
MAKE[1]: * * * [ARCH/X86/VDSO] Error 2
Make: * * * [arch/x86] Error 2
[Email protected]:/linux-2.6.34.14/linux-2.6.34.7#
The above error occurred while compiling the kernel.
Check out the GCC compiler version:
[Email protected]:/linux-2.6.34.14/linux-2.6.34.7# gcc-v
Using built-in specs.
collect_gcc=gcc
Collect_lto_wrapper=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper
Target:i686-linux-gnu
Configured with:.. /src/configure-v--with-pkgversion= ' Ubuntu/linaro 4.6.3-1ubuntu5 '--with-bugurl=file:///usr/share/doc/gcc-4.6/ Readme. Bugs--enable-languages=c,c++,fortran,objc,obj-c++--prefix=/usr--program-suffix=-4.6--enable-shared-- Enable-linker-build-id--with-system-zlib--libexecdir=/usr/lib--without-included-gettext--enable-threads=posix- -with-gxx-include-dir=/usr/include/c++/4.6--libdir=/usr/lib--enable-nls--with-sysroot=/--enable-clocale=gnu-- Enable-libstdcxx-debug--enable-libstdcxx-time=yes--enable-gnu-unique-object--enable-plugin--ENABLE-OBJC-GC-- Enable-targets=all--disable-werror--with-arch-32=i686--with-tune=generic--enable-checking=release--build= I686-linux-gnu--host=i686-linux-gnu--target=i686-linux-gnu
Thread Model:posix
GCC version 4.6.3 (Ubuntu/linaro 4.6.3-1ubuntu5)
[Email protected]:/linux-2.6.34.14/linux-2.6.34.7#
The compiler is gcc-4.6.3, the compiler version is too high, and for GCC 4.6 it no longer supports the Linker-style architecture (as the internet says)
Modify:
1. In kernel directory arch/x86/vdso/makefile, find Vdso_ldflags_vdso.lds =-M elf_x86_64-wl,-soname=linux-vdso.so.1 \-Wl,-z in approximately 28 or 29 rows , max-page-size=4096-wl,-z,common-page-size=4096 Replace "-M elf_x86_64" with "-m64"
2 and then continue to find, about 72 rows or so, find Vdso_ldflags_vdso32.lds =-M elf_i386-wl,-soname=linux-gate.so.1 in the "-M elf_i386" replaced by "-m32"
Then go ahead and compile, and you're ready.
Error Gcc:error:elf_i386:No compiling Linux kernel such file or directory