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
Include/uapi/linux/types.h:4:23: Fatal Error: Asm/types.h: No Such File Or Directory
Center Detailed answers to any questions you might have Meta asm/types.h alpine Discuss the workings and policies of this site About Us Learn more about Stack
Asm Vs Asm-generic
Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask fatal error: asm/errno.h: no such file or directory Ubuntu is a question 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 up and rise to the top Missing asm/types.h file up vote include/uapi/asm-generic/int-ll64.h:11:29: fatal error: asm/bitsperlong.h: no such file or directory 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]: *** [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 38.9k1693154 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 bee
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 Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions 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 http://askubuntu.com/questions/390253/missing-asm-types-h-file each other. Join them; it only takes a minute: Sign up Cross-compiling of kernel module for ARM architecture up vote 2 down vote favorite I'm trying to make a .ko file for ARM from a linux x86 machine. I tried the following Makefile: 1 obj-m +=helloworldtest_module.o 2 modules_install: 3 make ARCH=$(ARCH) CC=$(CROSS_COMPILER) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules http://stackoverflow.com/questions/14806353/cross-compiling-of-kernel-module-for-arm-architecture 4 clean: 5 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean ... but I got an error on giving make -f Makefile ARCH=arm CROSS_COMPILER=arm-linux-gnueabi-gcc in command prompt as follows: make ARCH=arm CC=arm-linux-gnueabi-gcc -C /lib/modules/3.2.0-29-generic/build M=/home/terenesas/sample modules make[1]: Entering directory `/usr/src/linux-headers-3.2.0-29-generic' CC [M] /home/terenesas/sample/helloworldtest_module.o In file included from /usr/src/linux-headers-3.2.0-29-generic/arch/arm/include/asm/types.h:4:0, from include/linux/types.h:4, from include/linux/list.h:4, from include/linux/module.h:9, from /home/terenesas/sample/helloworldtest_module.c:2: include/asm-generic/int-ll64.h:11:29: fatal error: asm/bitsperlong.h: No such file or directory compilation terminated. make[2]: *** [/home/terenesas/sample/helloworldtest_module.o] Error 1 make[1]: *** [_module_/home/terenesas/sample] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-29-generic' make: *** [modules_install] Error 2 What did I do wrong? c linux makefile arm share|improve this question edited Oct 25 '13 at 7:12 microMolvi 448723 asked Feb 11 '13 at 5:23 saju 1113 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote shell uname -r means that this Makefile will build the module for you host(x86) system and not for ARM. You need to specify the source directory of your ARM Kernel. You may use following Makefile to cross-compile your module. Makefile: CC=$(CROSS_COMPILE)gcc # If KERNELR
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu https://ubuntuforums.org/showthread.php?t=2193269 Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before no such SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Missing Header Files Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 1 of no such file 1 Thread: Missing Header Files Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode December 12th, 2013 #1 Ashiq_Irphan View Profile View Forum Posts Private Message Spilled the Beans Join Date Sep 2013 Location Chennai, India Beans 15 DistroUbuntu 12.04 Precise Pangolin Missing Header Files I`m trying to compile a program actually meant for OS with Kernel 2.4. I`m in the process of making changes in order to make it possible to run on Ubuntu 12.04. When I try to make, I get the following error Code: 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. So I checked my kernel directory and was not able to find a folder names asm, but I did find a folder named asm-generic Code: /usr/src/linux-headers