<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<div><span style="font-size: 12pt;">Hello Yocto.</span><br>
</div>
<div><br>
</div>
<div>I am seeing this error recently, and wonder if it is a known issue that has a workaround.</div>
<div><br>
</div>
<div>It does not go even if I delete DL_DIR or SSTATE_CACHE, etc. It started to happen, though previously the build ran well.</div>
<div><br>
</div>
<div>>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</div>
<div>>| See `config.log' for more details.</div>
<div><br>
</div>
<div>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.</div>
<div>It says linux/limits.h is not found.</div>
<div><br>
</div>
<div>(in config.log)</div>
<div>>usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Error log (on bitable console):</div>
<div><br>
</div>
<div>====</div>
<div>| 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</div>
<div>| 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</div>
<div>| 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':</div>
<div>| 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</div>
<div>| See `config.log' for more details.</div>
<div>| WARNING: exit code 1 from a shell command.</div>
<div>| 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)</div>
<div>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'</div>
<div>NOTE: Tasks Summary: Attempted 4247 tasks of which 2301 didn't need to be rerun and 1 failed.</div>
<div>Waiting for 0 running tasks to finish:</div>
<div>====</div>
<div><br>
</div>
<br>
<p></p>
</div>
</body>
</html>