Build machine: Ubuntu 22.04
Target machine architecture: armv7hf

I'm trying to use this recipe 
https://layers.openembedded.org/layerindex/recipe/399848/ and encountered the 
error

> 
> In file included from host/buildvm_asm.c:6:
> host/buildvm.h:9:10: fatal error: sys/types.h: No such file or directory
> 9 | #include <sys/types.h>
> |          ^~~~~~~~~~~~~
> compilation terminated.
> In file included from
> /usr/lib/gcc/x86_64-linux-gnu/11/include/limits.h:203,
> from /usr/lib/gcc/x86_64-linux-gnu/11/include/syslimits.h:7,
> from /usr/lib/gcc/x86_64-linux-gnu/11/include/limits.h:34,
> from host/minilua.c:33:
> /usr/include/limits.h:26:10: fatal error: bits/libc-header-start.h: No
> such file or directory
> 26 | #include <bits/libc-header-start.h>
> |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> 

I digged through the mailing list and saw this thread 
https://lists.yoctoproject.org/g/yocto/topic/61298057#msg21690 suggesting that 
a solution to this is installing the `gcc-multilib` package. However, when I 
tried to install this package, it conflicts left and right with the current 
packages I have so I cannot install it.

The instruction from the website ( https://luajit.org/install.html#cross ) 
states that using a cross compiler is possible

> 
> On some distro versions, multilib conflicts with cross-compilers. The
> workaround is to install the x86 cross-compiler package gcc-i686-linux-gnu
> and use it to build the host part ( HOST_CC=i686-linux-gnu-gcc ).
> 

So I installed the ` gcc-i686-linux-gnu` package, and modify the recipe from 
using `HOST_CC=${BUILD_CC}` to `HOST_CC=i686-linux-gnu-gcc`. Checking the 
installation gives

> 
> ❯ i686-linux-gnu-gcc --version
> i686-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
> Copyright (C) 2021 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> 

When I tried building luajit, I encoutered the error saying 
`i686-linux-gnu-gcc` is not found

> 
> make[1]: i686-linux-gnu-gcc: No such file or directory
> make[1]: *** [Makefile:722: host/buildvm_asm.o] Error 127
> 

How do I solve this?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63791): https://lists.yoctoproject.org/g/yocto/message/63791
Mute This Topic: https://lists.yoctoproject.org/mt/108301436/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to