Fatal Error Linux/config.h No Such File Or Directory Compilation Terminated
Contents |
Board index The team Delete all board cookies All times are UTC
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 each other. Join them; it only takes a minute: Sign up https://www.raspberrypi.org/forums/viewtopic.php?f=51&t=95851 Cannot find the kernel-headers although installed up vote 1 down vote favorite I have written a test module for linux kernel. This module needs headers
#1 2013-07-26 20:43:56 phillme Member Registered: 2013-07-26 Posts: 10 [SOLVED] fatal error: config.h: No such file or directory in builds Hello everyone!I enjoy archlinux a lot since a few https://bbs.archlinux.org/viewtopic.php?id=167258 years. However, I found a problem I cannot solve although I searched forums, web and wiki. Since a few months packages / programs do not longer build correctly for me. https://ubuntuforums.org/showthread.php?t=1746591 The errors always relate to a missing config.h. The following example is from gcc. Language errors result from setting the LANG variable for the build to get English error messages. no such It does not work if not setting LANG either. The log is from extracted from a paktahn build.# end of configure configure: creating ./config.status config.status: creating Makefile config.status: creating testsuite/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing default commands /bin/sh: warning: setlocale: LC_ALL: cannot change locale (EN) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (EN) /bin/sh: warning: setlocale: LC_ALL: no such file cannot change locale (EN) #make starts here make[3]: Entering directory `/home/caspar/.paktahn/aur/gcc-gcj/src/gcc-4.8.1/build/libiberty' if [ x"-fpic" != x ]; then \ gcc -c -DHAVE_CONFIG_H -g -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/regex.c -o pic/regex.o; \ else true; fi /bin/sh: warning: setlocale: LC_ALL: cannot change locale (EN) ../../libiberty/regex.c:39:22: fatal error: config.h: No such file or directory # include
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu 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 SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Sudo make error 2 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 6 of 6 Thread: Sudo make error 2 Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 2nd, 2011 #1 EzraBynx View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date May 2011 Beans 1 Sudo make error 2 Hello, I just downloaded and installed the new Ubuntu 11.04. After trying to install my raid driver I get the following error. make[1]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic' CC [M] /raiddrivers/rr232x-linux-src-v1.10/product/rr232x/linux/.build/os_linux.o In file included from /raiddrivers/rr232x-linux-src-v1.10/product/rr232x/linux/.build/os_linux.c:6:0: /raiddrivers/rr232x-linux-src-v1.10/osm/linux/osm_linux.h:12:26: fatal error: linux/config.h: No such file or directory compilation terminated. make[2]: *** [/raiddrivers/rr232x-linux-src-v1.10/product/rr232x/linux/.build/os_linux.o] Error 1 make[1]: *** [_module_/raiddrivers/rr232x-linux-src-v1.10/product/rr232x/linux/.build] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic' make: *** [rr232x.ko] Error 2 Prior ubuntu versions this did work. I am using sudo make. Any help would be appreciated. Adv Reply May 3rd, 2011 #2 clifforddc View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Aug 2007 Beans 3 Re: Sudo make error 2 I am having same issue attempting to compile Rr2332x driver - reverting to older kernel as work-around. the issue is the driver has to be included in a new initrd for the RAID card to work on boot Dave I believe issue is related to a new file or structure. Adv Reply May 10th, 2011 #3 clifforddc View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Aug 2007 Beans 3 Re: Sudo make error 2 I found a solution patch to correct the rr232x source structure to compile correctly, install and work in 2.6.38 kernel. Thanks to Nag