Created attachment 864792 [details] build.log In the ebuild, the LUADIR variable is specified as "${ESYSROOT}/$(lua_get_include_dir)", which causes $ROOT to be included twice, and for the lua include directory to not properly be set. Changing this to "${EPREFIX}/$(lua_get_include_dir)" fixes it.
Comment on attachment 864792 [details] build.log * Package: dev-lua/lpeg-1.0.2-r101:0 * Repository: gentoo * Maintainer: vim@gentoo.org * USE: arm64 elibc_musl kernel_linux lua_targets_luajit * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking lpeg-1.0.2.tar.gz to /usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work >>> Source unpacked in /usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work >>> Preparing source in /usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2 ... * Applying lpeg-1.0.2-makefile.patch ... [ ok ] * luajit: running lua_src_prepare >>> Source prepared. >>> Configuring source in /usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2 ... >>> Source configured. >>> Compiling source in /usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2 ... * luajit: running lua_src_compile make -j16 CC=aarch64-gentoo-linux-musl-gcc LUADIR=/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 make lpeg.so "DLLFLAGS = -shared -fPIC" make[1]: Entering directory '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' aarch64-gentoo-linux-musl-gcc -march=armv8-a+crc -mcpu=cortex-a72 -O3 -pipe -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -DNDEBUG -std=c99 -I/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 -fPIC -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -DNDEBUG -std=c99 -I/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 -fPIC -c -o lpcap.o lpcap.c lpcap.c:6:10: fatal error: lua.h: No such file or directory 6 | #include "lua.h" | ^~~~~~~ compilation terminated. make[1]: *** [<builtin>: lpcap.o] Error 1 make[1]: Leaving directory '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' aarch64-gentoo-linux-musl-gcc -march=armv8-a+crc -mcpu=cortex-a72 -O3 -pipe -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -DNDEBUG -std=c99 -I/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 -fPIC -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -DNDEBUG -std=c99 -I/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 -fPIC -c -o lpvm.o lpvm.c lpvm.c:10:10: fatal error: lua.h: No such file or directory 10 | #include "lua.h" | ^~~~~~~ compilation terminated. make[1]: *** [<builtin>: lpvm.o] Error 1 make[1]: Leaving directory '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' make[1]: Entering directory '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' aarch64-gentoo-linux-musl-gcc -march=armv8-a+crc -mcpu=cortex-a72 -O3 -pipe -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -DNDEBUG -std=c99 -I/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 -fPIC -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -DNDEBUG -std=c99 -I/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 -fPIC -c -o lpcode.o lpcode.c lpcode.c:9:10: fatal error: lua.h: No such file or directory 9 | #include "lua.h" | ^~~~~~~ compilation terminated. make[1]: *** [<builtin>: lpcode.o] Error 1 make[1]: Leaving directory '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' make[1]: Entering directory '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' aarch64-gentoo-linux-musl-gcc -march=armv8-a+crc -mcpu=cortex-a72 -O3 -pipe -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -DNDEBUG -std=c99 -I/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 -fPIC -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -DNDEBUG -std=c99 -I/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 -fPIC -c -o lptree.o lptree.c lptree.c:11:10: fatal error: lua.h: No such file or directory 11 | #include "lua.h" | ^~~~~~~ compilation terminated. make[1]: *** [<builtin>: lptree.o] Error 1 make[1]: Leaving directory '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' make[1]: Entering directory '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' aarch64-gentoo-linux-musl-gcc -march=armv8-a+crc -mcpu=cortex-a72 -O3 -pipe -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -DNDEBUG -std=c99 -I/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 -fPIC -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wdisabled-optimization -Wpointer-arith -Wshadow -Wsign-compare -Wundef -Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -DNDEBUG -std=c99 -I/usr/aarch64-gentoo-linux-musl//usr/aarch64-gentoo-linux-musl/usr/include/luajit-2.1 -fPIC -c -o lpprint.o lpprint.c In file included from lpprint.c:11: lptypes.h:15:10: fatal error: lua.h: No such file or directory 15 | #include "lua.h" | ^~~~~~~ compilation terminated. make[1]: *** [<builtin>: lpprint.o] Error 1 make[1]: Leaving directory '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' make: *** [makefile:32: linux] Error 2 * ERROR: dev-lua/lpeg-1.0.2-r101::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lua/lpeg-1.0.2-r101::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lua/lpeg-1.0.2-r101::gentoo'`. * The complete build log is located at '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/temp/build.log'. * The ebuild environment file is located at '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/temp/environment'. * Working directory: '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2.luajit' * S: '/usr/aarch64-gentoo-linux-musl/tmp/portage/dev-lua/lpeg-1.0.2-r101/work/lpeg-1.0.2'
Sorry, I just completely failed to edit the build.log since I didn't realize bpaste doesn't use raw files by default :/
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=295a950b0c90175ea9ab778b7984a46bb1fd7a46 commit 295a950b0c90175ea9ab778b7984a46bb1fd7a46 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-06-28 22:34:23 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-06-28 22:34:23 +0000 dev-lua/lpeg: avoid double ROOT lua_get_include_dir already contains it. Closes: https://bugs.gentoo.org/909348 Signed-off-by: Sam James <sam@gentoo.org> dev-lua/lpeg/lpeg-1.0.2-r101.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)