Hello, thank you for your suggestion. Yes, I was aware of the post, but I was not sure if you came up with a workaround..
In fact, my problem was gone once I physically (not by -c cleansstate, cleanall, etc.) removed SSTATE_CACHE directory. (I think bitbake fails in unclear errors if previous build attempts failed or interrupted and leaving files in irregular states.) Building everything from scratch was a pain (more than 1 day for my build machines), so if I see the same issue next time, I will try your workaround. ________________________________ From: Clemens Lang <clemens.l...@bmw-carit.de> Sent: Thursday, July 7, 2016 4:45 PM To: Takashi Matsuzawa Cc: yocto@yoctoproject.org Subject: Re: [yocto] linux/limits.h: No such file or directory Hi, Takashi Matsuzawa <tmatsuz...@uievolution.com> wrote: > >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 This looks a lot like a problem we've seen a while ago. See https://lists.yoctoproject.org/pipermail/yocto/2015-July/025856.html which is the mailing list post a colleague sent to the list back then. Looking at our git history, the workaround we did back then was add a dependency from gcc-crosssdk-initial to nativesdk-linux-libc-headers if $TARGET_OS starts with "linux". HTH, Clemens -- BMW Car IT GmbH Clemens Lang Spezialist Entwicklung Lise-Meitner-Straße 14 89081 Ulm Tel: +49-731-37804182 Mail: clemens.l...@bmw-carit.de Web: http://www.bmw-carit.de -------------------------------------------------------------------- BMW Car IT GmbH Geschäftsführer: Michael Würtenberger und Alexis Trolin Sitz und Registergericht: München HRB 134810 --------------------------------------------------------------------
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto