All of lore.kernel.org
 help / color / mirror / Atom feed
* linux/limits.h: No such file or directory
@ 2016-07-07  2:05 Takashi Matsuzawa
  2016-07-07  4:45 ` Khem Raj
  2016-07-07  7:45 ` Clemens Lang
  0 siblings, 2 replies; 5+ messages in thread
From: Takashi Matsuzawa @ 2016-07-07  2:05 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2245 bytes --]

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:
====



[-- Attachment #2: Type: text/html, Size: 3142 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux/limits.h: No such file or directory
  2016-07-07  2:05 linux/limits.h: No such file or directory Takashi Matsuzawa
@ 2016-07-07  4:45 ` Khem Raj
  2016-07-07  7:45 ` Clemens Lang
  1 sibling, 0 replies; 5+ messages in thread
From: Khem Raj @ 2016-07-07  4:45 UTC (permalink / raw)
  To: Takashi Matsuzawa; +Cc: yocto

On Wed, Jul 6, 2016 at 7:05 PM, Takashi Matsuzawa
<tmatsuzawa@uievolution.com> wrote:
> 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.
>

which version of release are you using ? secondly can you see if its
reproducible in a fresh setup

>>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:
> ====
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux/limits.h: No such file or directory
  2016-07-07  2:05 linux/limits.h: No such file or directory Takashi Matsuzawa
  2016-07-07  4:45 ` Khem Raj
@ 2016-07-07  7:45 ` Clemens Lang
  2016-07-12  5:42   ` Takashi Matsuzawa
  1 sibling, 1 reply; 5+ messages in thread
From: Clemens Lang @ 2016-07-07  7:45 UTC (permalink / raw)
  To: Takashi Matsuzawa; +Cc: yocto

Hi,

Takashi Matsuzawa <tmatsuzawa@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.lang@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
--------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux/limits.h: No such file or directory
  2016-07-07  7:45 ` Clemens Lang
@ 2016-07-12  5:42   ` Takashi Matsuzawa
  2016-07-12 23:26     ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Matsuzawa @ 2016-07-12  5:42 UTC (permalink / raw)
  To: Clemens Lang; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2224 bytes --]

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.Lang@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 <tmatsuzawa@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.lang@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
--------------------------------------------------------------------

[-- Attachment #2: Type: text/html, Size: 3513 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: linux/limits.h: No such file or directory
  2016-07-12  5:42   ` Takashi Matsuzawa
@ 2016-07-12 23:26     ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2016-07-12 23:26 UTC (permalink / raw)
  To: Takashi Matsuzawa; +Cc: yocto

On Mon, Jul 11, 2016 at 10:42 PM, Takashi Matsuzawa
<tmatsuzawa@uievolution.com> wrote:
> 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.)

There are several cases which may be out of control for bitbake to handle during
build. however we consider and try to solve the cases as we understand
them and can fail deterministic way we fix them. There however could
be local issues to your workspace which are hard to reproduce unless
you delve into your env and find
out when it happens. We will we happy to help

>
>
> 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.Lang@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 <tmatsuzawa@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.lang@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
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-12 23:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-07  2:05 linux/limits.h: No such file or directory Takashi Matsuzawa
2016-07-07  4:45 ` Khem Raj
2016-07-07  7:45 ` Clemens Lang
2016-07-12  5:42   ` Takashi Matsuzawa
2016-07-12 23:26     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.