Fatal Error Asm/types.h No Such File Or Directory
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About fatal error asm linkage h no such file or directory Us Learn more about Stack Overflow the company Business Learn more about hiring developers
Fatal Error Asm Errno H No Such File Or Directory
or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question fatal error asm system h no such file or directory and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted
Include/uapi/linux/types.h:4:23: Fatal Error: Asm/types.h No Such File Or Directory
up and rise to the top Missing asm/types.h file up vote 3 down vote favorite I have been trying to compile a very old program actual meant for Kernel I previously had an issue Missing Modversions.h which is solved now, but there is another issue. In file included from /lib/modules/3.8.0-29-generic/build/include/linux/types.h:5:0, from /lib/modules/3.8.0-29-generic/build/include/linux/list.h:4, from /lib/modules/3.8.0-29-generic/build/include/linux/module.h:9, from kaodv-mod.c:30: /lib/modules/3.8.0-29-generic/build/include/uapi/linux/types.h:4:23: fatal error: asm/types.h: No such file or directory compilation terminated. make[1]: include/uapi/asm-generic/int-ll64.h:11:29: fatal error: asm/bitsperlong.h: no such file or directory *** [kaodv-mod.o] Error 1 make[1]: Leaving directory `/home/vm1/aodv-12-12-13/lnx' make: *** [kaodv] Error 2 The file /lib/modules/3.8.0-29-generic/build/include/uapi/linux/types.h is a linux header file, I don`t understand how such an error could occur. Other Informations OS: Ubuntu 12.04 Kernel Version: 3.8.0-29 Program I`m trying to compile:[AODV-UU][2] Please help me fix it. kernel make share|improve this question edited Jan 23 '14 at 15:47 Braiam 39k1693154 asked Dec 13 '13 at 14:11 Ashiq Irphan 43137 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote This file has been moved. In your Kernel it will be at include/uapi/asm-generic/types.h Solution Update the reference in types.h but I'm not sure if it is possible. or Compile this program against it's supported Kernel version, if you have that info. share|improve this answer answered Dec 13 '13 at 15:05 Rémi Benoit 19117 1 I did find asm-generic/types.h but is it okay to edit the kernel header file /lib/modules/3.8.0-29-generic/build/include/uapi/linux/types.h ? –Ashiq Irphan Dec 13 '13 at 17:23 add a comment| up vote 0 down vote Set your ARCH environment variable in terminal to x86: export ARCH=x86 or add the line export ARCH=x86 to the Makefile share|improve this answer edited Mar 5 '14 at 15:53 the_Seppi 8,31662956 answered Ma
Help Here Hardware Kernel module compilation failed: asm-generic/types.h: No such file or directory Welcome! If this is your first visit, be sure to check out the FAQ. You will have to register before you can
/usr/include/linux/types.h:4:23: Fatal Error: Asm/types.h: No Such File Or Directory
post in the forums. (Be aware the forums do not accept user names with
Asm Vs Asm-generic
a dash "-") Also, logging in lets you avoid the CAPTCHA verification when searching . Select Articles, Forum, or Blog. Posting in the Forums implies acceptance of the Terms and Conditions. Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 19 Thread: Kernel module compilation failed: asm-generic/types.h: No such file or http://askubuntu.com/questions/390253/missing-asm-types-h-file directory Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 19-Apr-2013,07:01 #1 uvoigt View Profile View Forum Posts View Blog Entries View Articles Newcomer Join Date Nov 2009 Posts 29 Kernel module compilation failed: asm-generic/types.h: No such file or directory Hi, I want compile the latest Mellanox drivers (Mellanox Products: ConnectX version 1.5.10) to get the best support https://forums.opensuse.org/showthread.php/486070-Kernel-module-compilation-failed-asm-generic-types-h-No-such-file-or-directory for the QSFP Mellanox ConnectX-3 card. I am using openSUSE 12.3 with all updates installed (19.04.2013). When executing the install.sh script the Mellanox drivers try to compile a kernel module but that fails with the message: /usr/src/linux-3.7.10-1.1/arch/x86/include/asm/types.h:4:31: fatal error: asm-generic/types.h: No such file or directory compilation terminated. The types.h that includes the missing header files are not from Mellanox so I guess it is an opensuse related problem. Any ideas? Uli Reply With Quote 19-Apr-2013,07:18 #2 robin_listas View Profile View Forum Posts View Blog Entries View Articles Flux Capacitor Penguin Join Date Feb 2009 Location Spain Posts 25,862 Re: Kernel module compilation failed: asm-generic/types.h: No suchfile or directory On 2013-04-19 16:06, uvoigt wrote: > When executing the install.sh script the Mellanox drivers try to > compile a kernel module but that fails with the message: > /usr/src/linux-3.7.10-1.1/arch/x86/include/asm/types.h:4:31: fatal > error: asm-generic/types.h: No such file or directory > compilation terminated. I have 12.1 and I have that file: Code: /usr/include/asm-generic/types.h /usr/src/linux-3.1.10-1.16/include/asm-generic/types.h /usr/src/linux-3.1.10-1.19/include/asm-generic/types.h -- Cheers / Saludos, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) Reply With Quote 19-Apr-2013,08:29 #3 DenverD View Profile View Forum Posts View Blog Entries View Articles Flux Capacitor Penguin Join Date Jun 2008 Location Earth - Denmark Posts 11,204 Re: Kernel module compil
here for a quick overview of the site Help Center Detailed answers to any questions you might http://unix.stackexchange.com/questions/109064/cross-compile-driver have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads http://comments.gmane.org/gmane.linux.ports.arm.kernel/487523 with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, fatal error FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top cross compile driver up vote 1 down vote favorite I have a cross compile environment setup to compile for no such file an ARM 9 processor, this works fine, now I want to compile an external third party driver within this environment. I downloaded the driver, and copied it into a directory. When I now call make, the compiler can't find the headers because the references are made from ../. So what I get is: $ make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.* modules.order make -C /lib/modules/3.11.0-14-generic/build SUBDIRS=/home/reg/semios/ACME/linux-3.11.6/Gobi modules make[1]: Entering directory `/usr/src/linux-headers-3.11.0-14-generic' CC [M] /home/reg/semios/ACME/linux-3.11.6/Gobi/GobiSerial.o In file included from include/linux/types.h:5:0, from include/linux/list.h:4, from include/linux/wait.h:5, from include/linux/fs.h:6, from include/linux/tty.h:4, from /home/reg/semios/ACME/linux-3.11.6/Gobi/GobiSerial.c:47: include/uapi/linux/types.h:4:23: fatal error: asm/types.h: No such file or directory compilation terminated. make[2]: *** [/home/reg/semios/ACME/linux-3.11.6/Gobi/GobiSerial.o] Error 1 make[1]: *** [_module_/home/reg/semios/ACME/linux-3.11.6/Gobi] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.11.0-14-generic' make: *** [all] Error 2 reg@regDesktopHome:~/semios/ACME/linux-3.11.6/Gobi$ How do I get this to compile properly? drivers arm cross-compilation share|improve this question edited Jan 13 '14 at 1:04 slm♦ 165k40304474 asked Jan 13 '14 at 0:49 cerr 34151531 Don't you just need to add an additio