Bug #80717 [Opn->Csd]: Calling minilua during cross-compiling

From: Date: Sun, 11 Dec 2022 13:24:51 +0000
Subject: Bug #80717 [Opn->Csd]: Calling minilua during cross-compiling
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243095@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80717&edit=1 ID: 80717 User updated by: mhei at heimpold dot de Reported by: mhei at heimpold dot de Summary: Calling minilua during cross-compiling -Status: Open +Status: Closed Type: Bug Package: Compile Failure Operating System: Linux PHP Version: 8.0.2 Block user comment: N Private report: N New Comment: This issue was fixed with f1ad9199eff32dd805bb5b155002bdb6ca69bf01 so I'm closing it here. Thanks, mhei Previous Comments: ------------------------------------------------------------------------ [2021-11-15 13:39:50] cbing at cybernetics dot com I believe this issue is partially related to https://bugs.php.net/bug.php?id=60109 ------------------------------------------------------------------------ [2021-02-06 13:09:38] mhei at heimpold dot de Description: ------------ During OpenWrt "cross-compiling" for x86_64, we noticed that during the build a minilua compiler is generated and finally invoked. I refer to the following lines in ext/opcache/jit/Makefile.frag: $(builddir)/minilua: $(srcdir)/jit/dynasm/minilua.c $(CC) $(srcdir)/jit/dynasm/minilua.c -lm -o $@ $(builddir)/jit/zend_jit_x86.c: $(srcdir)/jit/zend_jit_x86.dasc $(srcdir)/jit/dynasm/*.lua $(builddir)/minilua $(builddir)/minilua $(srcdir)/jit/dynasm/dynasm.lua $(DASM_FLAGS) -o $@ $(srcdir)/jit/zend_jit_x86.dasc While this is fine when doing a native build, it fails for "cross-compiling" e.g. due to different used C libraries (e.g. target=musl, host=glibc). Our solution is to convert the $(CC) to $(HOSTCC) which is then passed via environment. Not sure, whether this is the best solution. Also it might need additional makefile magic for none "cross-compiling" environments. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80717&edit=1

« previous php.bugs (#243095) next »