Comments (7)
You should use -s
. Non-static builds aren't well supported for Android.
from php-binaries.
I'm not rolling it back just for Android. It works correctly on all other platforms.
from php-binaries.
Even with the -s option it fails with the same error
(I do not need an android build myself.)
./compile.sh -t android-aarch64 -x -j4 -P5 -s
[PocketMine] PHP compiler for Linux, MacOS and Android
[INFO] Checking dependencies
[opt] Set target to android-aarch64
[opt] Doing cross-compile
[opt] Set make threads to 4
[opt] Will compile everything statically
[opt] Compiling with configuration for PocketMine-MP 5
[INFO] Cross-compiling for Android ARMv8 (aarch64)
[warning] OPcache cannot be used on static builds; this may have a negative effect on performance
[warning] Xdebug cannot be built in static mode
[PHP 8.1.22] downloading... done!
[zlib 1.2.13] downloading... configuring... compiling... installing... done!
[gmp 6.3.0] downloading... configuring... compiling... installing... done!
[openssl 3.1.2] downloading... configuring... compiling... installing... done!
[curl curl-8_2_0] downloading... configuring... compiling... installing... done!
[yaml 0.2.5] downloading... configuring... compiling... installing... done!
[leveldb 1c7564468b41610da4f498430e795ca4de0931ff] downloading... configuring... compiling... installing... done!
[libxml2 2.10.1] downloading... configuring... compiling... installing... done!
[libzip 1.10.0] downloading... configuring... compiling... installing... done!
[sqlite3 3420000] downloading... configuring... compiling... installing... done!
[libdeflate 495fee110ebb48a5eb63b75fd67e42b2955871e2] downloading... configuring... compiling... installing... done!
[PHP] Downloading additional extensions...
pmmpthread: downloading 6.0.7... done!
yaml: downloading 2.2.3... done!
igbinary: downloading 3.2.14... done!
recursionguard: downloading 0.1.0... done!
crypto: downloading 0.3.2... done!
leveldb: downloading 317fdcd8415e1566fc2835ce2bdb8e19b890f9f3... done!
chunkutils2: downloading 0.3.5... done!
libdeflate: downloading 0.2.1... done!
morton: downloading 0.1.2... done!
xxhash: downloading 0.2.0... done!
arraydebug: downloading 0.1.0... done!
[PHP 8.1.22] configuring... compiling...daiuskedaisuke@daiuskedaisuke-VirtualBox:~/Documents/PHP-Binaries$
libtool: link: warning: library `/home/daiuskedaisuke/aarch64-linux-musl/aarch64-linux-musl/lib/libstdc++.la' was moved.
libtool: link: warning: library `/home/daiuskedaisuke/aarch64-linux-musl/aarch64-linux-musl/lib/libstdc++.la' was moved.
/home/daiuskedaisuke/aarch64-linux-musl/bin/../lib/gcc/aarch64-linux-musl/9.4.0/../../../../aarch64-linux-musl/bin/ld: cannot find -lzstdOpenSSL::Crypto
/home/daiuskedaisuke/aarch64-linux-musl/bin/../lib/gcc/aarch64-linux-musl/9.4.0/../../../../aarch64-linux-musl/bin/ld: cannot find -lzstdZLIB::ZLIB
collect2: error: ld returned 1 exit status
make: *** [Makefile:286: sapi/cli/php] Error 1
from php-binaries.
After investigating this issue in detail, it seems that libzip v1.10.0 is causing the php itself to fail to compile
(android crosscompile)
libzip v1.9.2 compiles correctly
from php-binaries.
Looks like this is related to nih-at/libzip#399
from php-binaries.
To be honest I'm not actually sure why we haven't come across this before.
-DENABLE_ZSTD=OFF is used by default, which should have caused this to happen for all platforms using compile.sh. Seems we've been spared somehow by some black magic.
from php-binaries.
Looks like it's static building that actually caused this ...
from php-binaries.
Related Issues (20)
- Enable AVX2 by default HOT 9
- Stop using insecure connections for downloading code HOT 1
- compile.sh -P option does not work HOT 1
- I can't compile php in Termux. HOT 4
- compile.sh arm64 didnt work HOT 5
- Explore using OpenMP for loop parallelization
- Enable optimizations by default HOT 1
- GitHub's version tag prefix autocheck for compile script HOT 3
- php/8.2 branch still accessing gmplib.org HOT 1
- Error when compile PHP (GMP lib) HOT 1
- JIT status HOT 1
- MacOS "debugging symbols" don't actually include any DWARF
- Incorrect time zone detection HOT 1
- Jit doesn't work HOT 1
- One try: Pack pmmp into a single file
- RE error: illegal byte sequence HOT 10
- /usr/local/include preferred above all -isystem entries by MacOS clang HOT 1
- Opcache crashes with 0xC0000005 in loop extends HOT 1
- converting to android-aarch64 not working HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-binaries.