Bug #80717 [NEW]: Calling minilua during cross-compiling

From: Date: Sat, 06 Feb 2021 13:09:38 +0000
Subject: Bug #80717 [NEW]: Calling minilua during cross-compiling
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231966@lists.php.net to get a copy of this message
From: mhei at heimpold dot de Operating system: Linux PHP version: 8.0.2 Package: Compile Failure Bug Type: Bug Bug description:Calling minilua during cross-compiling 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 bug report at https://bugs.php.net/bug.php?id=80717&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80717&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80717&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80717&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80717&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80717&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80717&r=support Expected behavior: https://bugs.php.net/fix.php?id=80717&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80717&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80717&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80717&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80717&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80717&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80717&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80717&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80717&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80717&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80717&r=mysqlcfg

« previous php.bugs (#231966) next »