Fatal Error Asm/string.h
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 Having trouble compiling C code on ubuntu. (#include errors) up vote 6 down vote favorite 1 I'm trying to compile a C program on the newest version of ubuntu, for the purpose of putting the compiled program on another machine later. However, when I compile with gcc prog.c -o prog, I get an error: "fatal error: asm/page.h: No such file or directory" Here are the headers: #include
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 http://stackoverflow.com/questions/19310541/having-trouble-compiling-c-code-on-ubuntu-include-errors 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up asm/errno.h: No such file or directory up vote 18 down vote favorite 1 While building gcc, I get this error: In file included from /usr/include/bits/errno.h:25, from /usr/include/errno.h:36, from ../.././gcc/tsystem.h:96, from ../.././gcc/crtstuff.c:68: /usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file http://stackoverflow.com/questions/14795608/asm-errno-h-no-such-file-or-directory or directory make[2]: *** [crtbegin.o] Error 1 make[2]: Leaving directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc' I am building gcc 4.1 from source. I think I have to install build-essential. However installing that package in ubuntu 12.04 will automatically download and install gcc 4.6 and I don't want that. Is there any other way? linux gcc share|improve this question asked Feb 10 '13 at 7:16 mahmood 4,861226095 add a comment| 7 Answers 7 active oldest votes up vote 21 down vote I think the package you want is linux-libc-dev . I encountered this when building 32-on-64; so I needed linux-libc-dev:i386 . share|improve this answer answered Apr 24 '14 at 20:22 jrr 638816 With both installed on Ubuntu 15.10, diff -ur /usr/include/x86_64-linux-gnu/asm/ /usr/include/i386-linux-gnu/asm/ shows no differences. Some other files outside those directories are provided by both packages, but apparently this is ok, and you only have multiple copies of those 62 files totalling ~340k. dpkg -L linux-libc-dev | diff -ur - <(dpkg -L linux-libc-dev:i386) sho
Detected You currently have javascript disabled. Several functions http://forums.bodhilinux.com/index.php?/topic/3723-solved-kernel-header-files-missing/ may not work. Please re-enable javascript to access full functionality. Become a Bodhi Linux Member and get your own @BodhiLinux.com email address! [SOLVED] kernel header files missing Started by stanks, Jan 05 2012 02:25 PM Please log in to reply 14 replies to this topic fatal error #1 stanks stanks Member Members 31 posts LocationCroatia Posted 05 January 2012 - 02:25 PM hii am trying to compile krusader and edb debugger but i get error msg about missing kernel header files. kernel header files are installed (3.0.0-14 PAE)for krusader error msg is fatal error asm/string.h this: [ 26%] Building CXX object krusader/Konfigurator/CMakeFiles/Konfigurator.dir/kgadvanced.o In file included from /usr/include/sys/param.h:28, from /home/stanks/paketi/krusader-2.4.0-beta1/krusader/Konfigurator/kgadvanced.cpp:36: /usr/include/linux/param.h:4:23: error: asm/param.h: No such file or directory make[2]: *** [krusader/Konfigurator/CMakeFiles/Konfigurator.dir/kgadvanced.o] Error 1 make[1]: *** [krusader/Konfigurator/CMakeFiles/Konfigurator.dir/all] Error 2 make: *** [all] Error 2 and for edb debugger is this: REENTRANT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -Iwidgets -I../include -Iqhexview -Iqjson -Ios/unix -I../include/os/unix -Iedisassm -Ios/unix/linux -I../include/os/unix/linux -Iarch/i386 -I../include/arch/i386 -I.moc/release-shared -I.uic -o .obj/release-shared/ArchProcessor.o arch/i386/ArchProcessor.cpp arch/i386/ArchProcessor.cpp:35:24: error: asm/unistd.h: No such file or directory arch/i386/ArchProcessor.cpp: In member function ‘void ArchProcessor::analyze_syscall(const State&, const edb::Instruction&, QStringList&) const’: arch/i386/ArchProcessor.cpp:749: warning: unused variable ‘arg1’ arch/i386/ArchProcessor.cpp:750: warning: unused variable ‘arg2’ arch/i386/ArchProcessor.cpp:751: warning: unused variable ‘arg3’ arch/i386/ArchProcessor.cpp:752: warning: unused variable ‘arg4’ arch/i386/ArchProcessor.cpp:753: warning: unused variable ‘arg5’ arch/i386/ArchProcessor.cpp:754: warning: unused variable ‘arg6’ In file included from ../include/arch/i386/../../../src/edisassm/edisassm_string.h:112, from ../include/arch/i386/../../../src/edisassm/Instruction.h:26, from ../include/arch/i386/Instruction.h:19, from ../include/arch/i386/ArchTypes.h:23, from .