On Thu, 2023-09-07 at 17:41 +0200, Joakim Tjernlund wrote: > Here is a partial log: > [2023-09-07T14:27:47.651Z] ERROR: lib32-luaposix-35.1-r0 do_compile: > ExecutionError('/home/builduser/workspace/XR/XR_PretestJobs/yocto_pipeline/build/build/infn- > xr/gmcu/tmp/work/cortexa53-32-xrmllib32-linux-musleabi/lib32-luaposix/35.1-r0/temp/run.do_compile.25384', > 1, None, None) > [2023-09-07T14:27:47.651Z] ERROR: Logfile of failure stored in: > /home/builduser/workspace/XR/XR_PretestJobs/yocto_pipeline/build/build/infn-xr/gmcu/tmp/work/cortexa53-32- > xrmllib32-linux-musleabi/lib32-luaposix/35.1-r0/temp/log.do_compile.25384 > [2023-09-07T14:27:47.651Z] Log data follows: > [2023-09-07T14:27:47.651Z] | DEBUG: Executing shell function do_compile > [2023-09-07T14:27:47.651Z] | creating lib/posix/version.lua > [2023-09-07T14:27:47.651Z] | creating build-aux/config.ld > [2023-09-07T14:27:47.651Z] | arm-xrmllib32-linux-musleabi-gcc > -march=armv8-a+crc -mcpu=cortex-a53 -fstack-protector-strong -Os > -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security - > Werror=format-security > --sysroot=/home/builduser/workspace/XR/XR_PretestJobs/yocto_pipeline/build/build/infn-xr/gmcu/tmp/work/cortexa53-32-xrmllib32-linux-musleabi/lib32- > luaposix/35.1-r0/lib32-recipe-sysroot -O2 -shared -fPIC > -DPACKAGE='"luaposix"' -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L > -D_FORTIFY_SOURCE=2 -DNDEBUG - > DVERSION='"builduser"' -Iext/include -I/usr/include/lua5.4 ext/posix/signal.c > -o linux/posix/signal.so -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed > -fmacro-prefix- > map=/home/builduser/workspace/XR/XR_PretestJobs/yocto_pipeline/build/build/infn-xr/gmcu/tmp/work/cortexa53-32-xrmllib32-linux-musleabi/lib32-luaposix/35.1- > r0=/usr/src/debug/lib32-luaposix/35.1-r0 > -fdebug-prefix-map=/home/builduser/workspace/XR/XR_PretestJobs/yocto_pipeline/build/build/infn- > xr/gmcu/tmp/work/cortexa53-32-xrmllib32-linux-musleabi/lib32-luaposix/35.1-r0=/usr/src/debug/lib32-luaposix/35.1-r0 > -fdebug-prefix- > map=/home/builduser/workspace/XR/XR_PretestJobs/yocto_pipeline/build/build/infn-xr/gmcu/tmp/work/cortexa53-32-xrmllib32-linux-musleabi/lib32-luaposix/35.1-r0/lib32-recipe- > sysroot= > -fdebug-prefix-map=/home/builduser/workspace/XR/XR_PretestJobs/yocto_pipeline/build/build/infn-xr/gmcu/tmp/work/cortexa53-32-xrmllib32-linux- > musleabi/lib32-luaposix/35.1-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now > [2023-09-07T14:27:47.651Z] | cc1: warning: include location > "/usr/include/lua5.4" is unsafe for cross-compilation > [-Wpoison-system-directories] > [2023-09-07T14:27:47.651Z] | In file included from > /usr/include/lua5.4/lua.h:16, > [2023-09-07T14:27:47.651Z] | from ext/include/_helpers.c:59, > [2023-09-07T14:27:47.651Z] | from ext/posix/signal.c:25: > [2023-09-07T14:27:47.651Z] | /usr/include/lua5.4/luaconf.h:43:9: error: > #error "No ABI matched, please report a bug to bugs.gentoo.org" > [2023-09-07T14:27:47.651Z] | 43 | # error "No ABI matched, please > report a bug to bugs.gentoo.org" > [2023-09-07T14:27:47.651Z] | | ^~~~~ > [2023-09-07T14:27:47.651Z] | In file included from ext/include/_helpers.c:59, > [2023-09-07T14:27:47.651Z] | from ext/posix/signal.c:25: > [2023-09-07T14:27:47.651Z] | /usr/include/lua5.4/lua.h:90:9: error: unknown > type name 'LUA_NUMBER' > [2023-09-07T14:27:47.651Z] | 90 | typedef LUA_NUMBER lua_Number; > [2023-09-07T14:27:47.651Z] | | ^~~~~~~~~~ > [2023-09-07T14:27:47.651Z] | /usr/include/lua5.4/lua.h:94:9: error: unknown > type name 'LUA_INTEGER' > [2023-09-07T14:27:47.651Z] | 94 | typedef LUA_INTEGER lua_Integer; > [2023-09-07T14:27:47.651Z] | | ^~~~~~~~~~~ > [2023-09-07T14:27:47.651Z] | /usr/include/lua5.4/lua.h:97:9: error: unknown > type name 'LUA_UNSIGNED' > [2023-09-07T14:27:47.651Z] | 97 | typedef LUA_UNSIGNED lua_Unsigned; > [2023-09-07T14:27:47.651Z] | | ^~~~~~~~~~~~ > [2023-09-07T14:27:47.651Z] | /usr/include/lua5.4/lua.h:100:9: error: unknown > type name 'LUA_KCONTEXT' > [2023-09-07T14:27:47.651Z] | 100 | typedef LUA_KCONTEXT lua_KContext; > [2023-09-07T14:27:47.651Z] | | ^~~~~~~~~~~~ > [2023-09-07T14:27:47.651Z] | /usr/include/lua5.4/lua.h:153:1: error: unknown > type name 'LUA_API' > [2023-09-07T14:27:47.651Z] | 153 | LUA_API lua_State *(lua_newstate) > (lua_Alloc f, void *ud); > [2023-09-07T14:27:47.651Z] | | ^~~~~~~ > [2023-09-07T14:27:47.651Z] | /usr/include/lua5.4/lua.h:153:19: error: > expected '=', ',', ';', 'asm' or '__attribute__' before '*' token > [2023-09-07T14:27:47.651Z] | 153 | LUA_API lua_State *(lua_newstate) > (lua_Alloc f, void *ud); > [2023-09-07T14:27:47.651Z] | | ^ > [2023-09-07T14:27:47.651Z] | /usr/include/lua5.4/lua.h:154:8: error: expected > ';' before 'void' > > One can see -I/usr/include in the build cmd. > > building on latest Kirstone > > Jocke
FYI, I ended up with this simple patch: Prefix LUA_INCDIR with '=' to inject sysroot in include path Otherwise luaposix will include lua from build host and possibly fail build when cross compiling. --- ./build-aux/luke 2023-09-12 16:08:47.195972896 +0200 +++ ./build-aux/luke 2023-09-12 16:09:16.932990694 +0200 @@ -79,7 +79,7 @@ if isempty(luke.modules)then luke.external_dependencies=nil end -luke.substitute=merge(luke.substitute or{},{package=interpolate_to_substitute(luke.package),version=interpolate_to_substitute(luke.version),})luke.variables=merge(luke.variables or{},collect_variables(luke),{LUA_DIR='/usr',LUA_BINDIR='$LUA_DIR/bin',LUA_INCDIR='$LUA_DIR/include/lua$LUAVERSION',LUA_LIBDIR='$LUA_DIR/lib',objdir=platforms[1],package=luke.pac kage,version=luke.version,})return{clidefs=parsed.clidefs,install=install,log=parsed.log,luke=luke,valreqs=parsed.valreqs,verbose=parsed.verbose,write=parsed.write,}end,} +luke.substitute=merge(luke.substitute or{},{package=interpolate_to_substitute(luke.package),version=interpolate_to_substitute(luke.version),})luke.variables=merge(luke.variables or{},collect_variables(luke),{LUA_DIR='/usr',LUA_BINDIR='$LUA_DIR/bin',LUA_INCDIR='=$LUA_DIR/include/lua$LUAVERSION',LUA_LIBDIR='$LUA_DIR/lib',objdir=platforms[1],package=luke.pa ckage,version=luke.version,})return{clidefs=parsed.clidefs,install=install,log=parsed.log,luke=luke,valreqs=parsed.valreqs,verbose=parsed.verbose,write=parsed.write,}end,} end package.preload['luke.compile']=function() local _ENV=require'std.normalize'{'luke._base','luke.environment','std.functional','type.context-manager','type.path',SHELLMETACHARS='[%s%$"]',}local function spawn(env,...)local command=interpolate(env,concat({...},' '))return with(TmpFile(),TmpFile(),function(out,err)local pipe=concat{command,' >',out.filename,' 2>',err.filename,'; printf $?'}return tonumber(slurp(Pipe(pipe))),slurp(File(err.filename)),slurp(File(out.filename))end)end
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#104858): https://lists.openembedded.org/g/openembedded-devel/message/104858 Mute This Topic: https://lists.openembedded.org/mt/101217104/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-