Home > OS >  Asm/linkage. H No to the file or directory mistake how to solve
Asm/linkage. H No to the file or directory mistake how to solve

Time:10-01

Hello I am using the Windriver framework development on Linux ubuntu18.10 drive, according to the example, use the waiting queue increased include & lt; Linux/wait. H> Will have the asm/linkage. H No to the file or directory error, how to deal with? thank you

CodePudding user response:

Root @ nea - Z370 - HD3:/usr/SRC/WinDriver/samples/pci_diag kp_pci # sudo make
cc -c -O2 -D__KERNEL__ -DMODULE -Wstrict-prototypes -Wno-trigraphs -fno-common -fno-omit-frame-pointer -pipe -O2 -Wdeclaration-after-statement -funit-at-a-time -march=k8 -mno-red-zone -mcmodel=kernel -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-strict-aliasing -fno-pie -DLINUX -I/lib/modules/4.18.0-25-generic/build/include -I/usr/include -I/usr/src/WinDriver/include -I/usr/src/WinDriver -I/usr/src/WinDriver/redist -c -o LINUX.4.18.0-25-generic.x86_64/kp_pci.o kp_pci.c
In the file included the from/lib/modules/4.18.0-25 - generic/build/include/Linux/kernel. H: 7,
The from/lib/modules/4.18.0-25 - generic/build/include/Linux/list. H: 9,
The from/lib/modules/4.18.0-25 - generic/build/include/Linux/wait. H: 7,
The from kp_pci. C: 15:
/lib/modules/4.18.0-25 - generic/build/include/Linux/linkage. H: so: fatal error: asm/linkage. H: No to the file or directory
#include
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Compilation terminated.
Make: * * * [Makefile: 52: LINUX 4.18.0-25 - generic. X86_64/kp_pci o] Error 1
  • Related