[yocto] rocko cmake buld cstdlib:75:15: fatal error: stdlib.h: No such file or directory

Dennis Menschel menschel-d at posteo.de
Tue Apr 17 10:57:07 PDT 2018


Hi Mans,

Am 17.04.2018 um 13:15 schrieb Måns Zigher:
> Hi all,
> 
> Have anyone experienced this error message before?
> 
>     c++/7.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or
>     directory                       
>     |  #include_next <stdlib.h>                                         
>     |                ^~~~~~~~~~                                         
> 
> I am not seeing this error when cross compiling using the sdk. I can see
> in the output that the -isystem is added which when googling the error
> appears to be a problem when cross compiling. Since the sdk works I am
> guessing this flag is added by OE/poky. Any pointers on how to go
> forward is appreciated.
> 
> BR
> Mans Zigher

if I recall correctly, the problem can be circumvented by adding the
option "-DCMAKE_NO_SYSTEM_FROM_IMPORTED=1" when invoking cmake.

You can find a reference in the function "cmake_do_configure()" located
inside "poky/meta/classes/cmake.bbclass"

Best regards,
Dennis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180417/5a783cc5/attachment.pgp>


More information about the yocto mailing list