[yocto] linux/limits.h: No such file or directory

Takashi Matsuzawa tmatsuzawa at uievolution.com
Wed Jul 6 19:05:42 PDT 2016


Hello Yocto.

I am seeing this error recently, and wonder if it is a known issue that has a workaround.

It does not go even if I delete DL_DIR or SSTATE_CACHE, etc.  It started to happen, though previously the build ran well.

>configure: error: C preprocessor "x86_64-pokysdk-linux-gcc -E --sysroot=/mnt/ssd2/>yocto/dev/tmp/x86-wk3/sysroots/x86_64-nativesdk-pokysdk-linux " fails sanity check
>| See `config.log' for more details.

If I look into config.log (gcc-4.9.2/build.x86_64-pokysdk-linux.x86_64-pokysdk-linux/libgcc/config.log) as suggested, I can see the following.
It says linux/limits.h is not found.

(in config.log)
>usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory

I googled some, and found a few similar reports (e.g. install kernel headers first, could be a race condition, etc.) but I am not sure practically how to avoid this build break.

Error log (on bitable console):

====
| checking for x86_64-pokysdk-linux-gcc  --sysroot=/mnt/ssd2/yocto/dev/tmp/x86-wk3/sysroots/x86_64-nativesdk-pokysdk-linux option to accept ISO C89... none needed
| checking how to run the C preprocessor... x86_64-pokysdk-linux-gcc -E --sysroot=/mnt/ssd2/yocto/dev/tmp/x86-wk3/sysroots/x86_64-nativesdk-pokysdk-linux
| configure: error: in `/mnt/ssd2/yocto/dev/tmp/x86-wk3/work/x86_64-nativesdk-pokysdk-linux/nativesdk-libgcc-initial/4.9.2-r0/gcc-4.9.2/build.x86_64-pokysdk-linux.x86_64-pokysdk-linux/libgcc':
| configure: error: C preprocessor "x86_64-pokysdk-linux-gcc -E --sysroot=/mnt/ssd2/yocto/dev/tmp/x86-wk3/sysroots/x86_64-nativesdk-pokysdk-linux " fails sanity check
| See `config.log' for more details.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /mnt/ssd2/yocto/dev/tmp/x86-wk3/work/x86_64-nativesdk-pokysdk-linux/nativesdk-libgcc-initial/4.9.2-r0/temp/log.do_configure.888)
ERROR: Task 3580 (virtual:nativesdk:/mnt/ssd2/yocto/dev/wk/x86/wk3/build-root/sources/poky/meta/recipes-devtools/gcc/libgcc-initial_4.9.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4247 tasks of which 2301 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:
====


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160707/afedbf42/attachment.html>


More information about the yocto mailing list