When I was building linux package in local computer (Fedora with intel cpu) for embedded system with arm-based chip, the error showed:
[root@v17 linux-3.10.x]# make M=/y/projects/abc6510/244/abc2408_nuc977/modules CC [M] /y/projects/abc6510/244/abc2408_nuc977/modules/switch.oIn file included from ../initrd/cclusr/include/usrport.h:23:0, from ../initrd/cclusr/include/cfg.h:697, from /y/projects/abc6510/244/abc2408_nuc977/modules/switch.c:11:/usr/local/arm_linux_4.8/lib/gcc/arm-nuvoton-linux-uclibceabi/4.8.4/include/stdint.h:9:26: error: no include path in which to search for stdint.h # include_next <stdint.h>
If I just input make
, output is different and no error produced:
root@v17 linux-3.10.x]# make CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.hmake[1]: `include/generated/mach-types.h' is up to date. CALL scripts/checksyscalls.sh CC scripts/mod/devicetable-offsets.s GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTLD scripts/mod/modpost CHK include/generated/compile.h Kernel: arch/arm/boot/Image is readycp arch/arm/boot/Image ../download/uimage Kernel: arch/arm/boot/zImage is ready Building modules, stage 2. MODPOST 0 modules[root@v17 linux-3.10.x]#
This path /usr/local/arm_linux_4.8/lib/gcc/arm-nuvoton-linux-uclibceabi/4.8.4/include/stdint.h
is OUTSIDE of project, and I have no idea why compiler would reference to it because I believe stdint.h should be INSIDE of project as well as compiler should reference only files INSIDE of project.
Also, I searched for stdint.h within project directory and found nothing.
Am I going to add stdint.h and to add include path for it?