Fatal Error Asm/unistd_64.h
Detected You currently have javascript disabled. Several functions 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 #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 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
I tried to build v3.11-rc1-8-g47188d3 out-of-tree, I get an error about amissing asm/unistd_64.h file. The full build output (`git clean -xfd` was ranbefore baking the kernel):/home/me/Linux-src/build$ make O=$PWD -C ../linux -j8make: Entering directory `/home/me/Linux-src/linux'/home/me/Linux-src/linux/arch/x86/Makefile:107: CONFIG_X86_X32 http://forums.bodhilinux.com/index.php?/topic/3723-solved-kernel-header-files-missing/ enabled but no binutils supportmake[2]: Nothing to be done for `all'. GEN /tmp/build/Makefile CHK include/generated/uapi/linux/version.hmake[2]: Nothing to be done for `relocs'. Using /home/me/Linux-src/linux as source for kernel CHK include/generated/utsrelease.h UPD include/generated/utsrelease.h CC kernel/bounds.s GEN include/generated/bounds.h https://lkml.org/lkml/2013/7/15/457 CC arch/x86/kernel/asm-offsets.sIn file included from /home/me/Linux-src/linux/include/uapi/linux/unistd.h:7:0, from /home/me/Linux-src/linux/arch/x86/include/asm/seccomp_64.h:4, from /home/me/Linux-src/linux/arch/x86/include/asm/seccomp.h:4, from /home/me/Linux-src/linux/include/linux/seccomp.h:9, from /home/me/Linux-src/linux/include/linux/sched.h:39, from /home/me/Linux-src/linux/arch/x86/kernel/asm-offsets.c:9:/home/me/Linux-src/linux/arch/x86/include/asm/unistd.h:23:29: fatal error: asm/unistd_64.h: No such file or directorycompilation terminated.make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1make[1]: *** [prepare0] Error 2make: *** [sub-make] Error 2make: Leaving directory `/home/me/Linux-src/linux'As a workaround, I rsync the files that are placed in the source tree:~/Linux-src/linux/arch/x86/include/generated$ rsync -av . /tmp/build/arch/x86/include/generated/sending incremental file list./asm/asm/syscalls_32.huapi/uapi/asm/uapi/asm/unistd_32.huapi/asm/unistd_64.h uapi/asm/unistd_x32.hI have encountered this error some releases back, and some others reportedthis before[1]. If you need more details (.config?), please ask.Regards,Peter [1]: http://lkml.org/lkml/2012/3/19/680 Last update: 2013-07-15 22:21 [W:0.023 / U:16.320 seconds]©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://stackoverflow.com/questions/10988759/arch-x86-include-asm-unistd-h-vs-include-asm-generic-unistd-h of this site About Us Learn more about Stack Overflow the company http://lkml.iu.edu/hypermail/linux/kernel/1203.2/01635.html 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 fatal error minute: Sign up arch/x86/include/asm/unistd.h vs. include/asm-generic/unistd.h up vote 1 down vote favorite 1 What's the difference between these two files? I can't really get it. I should mention that the first file should be arch/x86/include/asm/unistd_32.h (or and _64.h). Here is a quick preview of what they contain: arch/x86/include/asm/unistd.h: #ifndef _ASM_X86_UNISTD_32_H #define _ASM_X86_UNISTD_32_H /* * This file contains the system call numbers. */ fatal error asm/unistd_64.h #define __NR_restart_syscall 0 #define __NR_exit 1 #define __NR_fork 2 #define __NR_read 3 #define __NR_write 4 #define __NR_open 5 #define __NR_close 6 #define __NR_waitpid 7 #define __NR_creat 8 #define __NR_link 9 #define __NR_unlink 10 #define __NR_execve 11 #define __NR_chdir 12 #define __NR_time 13 #define __NR_mknod 14 #define __NR_chmod 15 #define __NR_lchown 16 #define __NR_break 17 #define __NR_oldstat 18 #define __NR_lseek 19 #define __NR_getpid 20 #define __NR_mount 21 #define __NR_umount 22 include/asm-generic/unistd.h #if !defined(_ASM_GENERIC_UNISTD_H) || defined(__SYSCALL) #define _ASM_GENERIC_UNISTD_H #include
"[PATCH 1/1] scheduler: minor improvement topick_next_highest_task_rt in linux-3.3" Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi folks, If I build 3.3 _again_ from the same source tree, then I get a problem about a missing asm/unistd_64.h. Here is a sample session: % make -C /export/git/linux-source O=/export/tmp/build_kernel/build clean make: Entering directory `/export/git/linux-source' CLEAN . CLEAN .tmp_versions make: Leaving directory `/export/git/linux-source' % make -C /export/git/linux-source clean make: Entering directory `/export/git/linux-source' make: Leaving directory `/export/git/linux-source' % make -C /export/git/linux-source O=/export/tmp/build_kernel/build oldconfig make: Entering directory `/export/git/linux-source' HOSTCC scripts/basic/fixdep GEN /export/tmp/build_kernel/build/Makefile HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --oldconfig Kconfig # # configuration written to .config # make: Leaving directory `/export/git/linux-source' % make -C /export/git/linux-source O=/export/tmp/build_kernel/build make: Entering directory `/export/git/linux-source' GEN /export/tmp/build_kernel/build/Makefile scripts/kconfig/conf --silentoldconfig Kconfig make[2]: Nothing to be done for `all'. Using /export/git/linux-source as source for kernel GEN /export/tmp/build_kernel/build/Makefile CHK include/linux/version.h CHK include/generated/utsrelease.h CC kernel/bounds.s GEN include/generated/bounds.h CC arch/x86/kernel/asm-offsets.s In file included from /export/git/linux-source/include/linux/unistd.h:7:0, from /export/git/linux-source/arch/x86/include/asm/seccomp_64.h:4, from /export/git/linux-source/arch/x86/include/asm/seccomp.h:4, from /export/git/linux-source/include/linux/seccomp.h:8, from /export/git/linux-source/include/linux/sched.h:80, from /export/git/linux-source/arch/x86/kernel/asm