Gcc Error Elf_i386 No Such File Or Directory
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss
What Is Elf_i386
the workings and policies of this site About Us Learn more about ld file not found elf_i386 Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Gcc: Error: Unrecognized Command Line Option ‘-m’
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Kernel Compile Error: gcc: error: elf_i386: No such file or directory up vote 6 down vote favorite 5 I've got stuck in downgrade my kernel version to 2.6.22. The error message is : SYSCALL arch/i386/kernel/vsyscall-int80.so gcc: error: elf_i386: No such file or directory make[1]: * [arch/i386/kernel/vsyscall-int80.so] Error 1 make: * [arch/i386/kernel] Error 2 I've tried to google for answers, like downgrade my gcc version, etc. But nothing happens. My OS is ubuntu 11.04 with kernel version 3.1.4 . So what's wrong is it? Thanks for your answers. gcc linux-kernel share|improve this question asked May 3 '12 at 5:46 KMHook 4017 why would you want to downgrade? –kuba May 4 '12 at 10:08 add a comment| 4 Answers 4 active oldest votes up vote 21 down vote Can you check the vdso makefile which should be in arch/x86/vdso/Makefile. find the line VDSO_LDFLAGS there exists two lines one for x64 and another for x32 bit systems. it should have -m elf_x86_64 and another one -m elf_x86 replace them like -m64 and -m32 respectively. Reference to bug fix Link1 Lockergnome and Link2 ubuntu. share|improve this answer answered May 29 '12 at 12:48 czar x 35329 while your answer may solve other people's problems, it doesn't solve this case since in the question @KMHook indicates that problematic syscall occurs in the file arch/i386/kernel/vsyscall-int80.s
anymore linker-style architecture options. PROBLEM: gcc: error: elf_i386: No such file or directory OBJCOPY arch/x86/vdso/vdso32-int80.so objcopy: 'arch/x86/vdso/vdso32-int80.so.dbg': No such file make[2]: *** [arch/x86/vdso/vdso32-int80.so] Error 1 make[1]: *** http://stackoverflow.com/questions/10425761/kernel-compile-error-gcc-error-elf-i386-no-such-file-or-directory [arch/x86/vdso] Error 2 make: *** [arch/x86] Error 2 SOLUTION: Apply the following changes to solve the problem: vi arch/x86/vdso/Makefile In arch/x86/vdso/Makefile: replace "-m elf_x86_64" by "-m64" on the line starting with VDSO_LDFLAGS_vdso.lds replace http://wiki.kaeilos.com/index.php/2.6.x_Kernel_Compilation_Problems "-m elf_i386" by "-m32" on the line starting with VDSO_LDFLAGS_vdso32.lds Retrieved from "http://wiki.kaeilos.com/index.php?title=2.6.x_Kernel_Compilation_Problems&oldid=60" Navigation menu Views Page Discussion View source History Personal tools Log in Navigation Main page Community portal Current events Recent changes Random page Help Search Tools What links here Related changes Special pages Printable version Permanent link Page information Licensing: This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. This page was last modified on 8 February 2013, at 13:59. Content is available under Creative Commons Attribution-ShareAlike 3.0 Unported License unless otherwise noted. Privacy policy About Wiki Kaeilos.com Disclaimers
pages Site Manager edit this panel gcc: error: elf_i386: No such file or directory Forum » Discussions / Remus » gcc: error: elf_i386: No such file or directory Started by: istan Date: 11 http://remusha.wikidot.com/forum/t-410478/gcc:error:elf-i386:no-such-file-or-directory Nov 2011 07:49 Number of posts: 1 RSS: New posts Summary: Getting error when compiling xen domU kernel Unfold All Fold All More Options Edit Title & Description Stickness Lock Thread Move Thread Fold gcc: error: elf_i386: No such file or directory istan 11 Nov 2011 07:49 I tried to run the command : make install-kernels KERNELS=linux-2.6-xenU from the remus wiki page but it gave me the following gcc error output: make -C /home/ioan/xen-4.1.2/linux-2.6.18-xen.hg O=/home/ioan/xen-4.1.2/build-linux-2.6.18-xenU_x86_32 vmlinuz Using /home/ioan/xen-4.1.2/linux-2.6.18-xen.hg as source for kernel CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.h SYSCALL arch/i386/kernel/vsyscall-int80.so gcc: error: elf_i386: No such file or directory make[6]: * [arch/i386/kernel/vsyscall-int80.so] Error 1 make[5]: * [arch/i386/kernel] Error 2 make[4]: * [vmlinuz] Error 2 make[3]: * [vmlinuz] Error 2 make[3]: Leaving directory ‘/home/ioan/xen-4.1.2/build-linux-2.6.18-xenU_x86_32' make[2]: * [build] Error 2 make[2]: Leaving directory ‘/home/ioan/xen-4.1.2' make[1]: * [linux-2.6-xenU-install] Error 2 make[1]: Leaving gcc error elf_i386 directory ‘/home/ioan/xen-4.1.2' make: *** [install-kernels] Error 1 Thanks, Ioan Reply Options Unfold gcc: error: elf_i386: No such file or directory by istan, 11 Nov 2011 07:49 New Post Permanent Link Edit Delete /forum/t-410478/gcc:error:elf-i386:no-such-file-or-directory#post- Help | Terms of Service | Privacy | Report a bug | Flag as objectionable Powered by Wikidot.com Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License Click here to edit contents of this page. Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available. Append content without editing the whole page source. Check out how this page has evolved in the past. If you want to discuss contents of this page - this is the easiest way to do it. View and manage file attachments for this page. A few useful tools to manage this Site. See pages that link to and include this page. Change the name (also URL address, possibly the category) of the page. View wiki source for this page without editing. View/set parent page (used for creating breadcrumbs and structured layout). Notify administrators if there is objectionable content in this page. Something does not work a