You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build 2.3.6 for Android with NDK r27 (also tried with r25, same result).
When using the script (pwsh ./scripts/build.ps1 -Config Release -Platform android -Arch x64) it fails to build OpenSSL. Not sure about the exact problem as the build log is a mess, but I guess it's the same reason as with a "pure" CMake build.
/src/misc/misc/3rd-party/msquic/src/core/packet_builder.h:156:5: error: encoding prefix 'L' on an unevaluated string literal has no effect [-Werror,-Winvalid-unevaluated-string]
156 | L"Packet builder should be small enough to fit on the stack.");
| ^
/src/misc/misc/3rd-party/msquic/src/inc/quic_platform_posix.h:265:52: note: expanded from macro 'CXPLAT_STATIC_ASSERT'
265 | #define CXPLAT_STATIC_ASSERT(X,Y) static_assert(X, Y);
| ^
/src/misc/misc/3rd-party/msquic/src/core/mtu_discovery.c:37:71: error: encoding prefix 'L' on an unevaluated string literal has no effect [-Werror,-Winvalid-unevaluated-string]
37 | CXPLAT_STATIC_ASSERT(CXPLAT_MAX_MTU >= QUIC_DPLPMTUD_DEFAULT_MAX_MTU, L"Default max must not be more than max");
| ^
...
[34/63] OpenSSL configure
FAILED: _deps/opensslquic-build/submodules/openssl3/Makefile /src/misc/misc/3rd-party/msquic/build/_deps/opensslquic-build/submodules/openssl3/Makefile
cd /src/misc/misc/3rd-party/msquic/build/_deps/opensslquic-build/submodules/openssl3 && SYSTEM=Linux /src/misc/misc/3rd-party/msquic/submodules/openssl3/Configure android-x86_64 -D__ANDROID_API__=29 enable-tls1_3 no-makedepend no-dgram no-ssl3 no-psk no-srp no-zlib no-egd no-idea no-rc5 no-rc4 no-afalgeng no-comp no-cms no-ct no-srp no-srtp no-ts no-gost no-dso no-ec2m no-tls1 no-tls1_1 no-tls1_2 no-dtls no-dtls1 no-dtls1_2 no-ssl no-ssl3-method no-tls1-method no-tls1_1-method no-tls1_2-method no-dtls1-method no-dtls1_2-method no-siphash no-whirlpool no-aria no-bf no-blake2 no-sm2 no-sm3 no-sm4 no-camellia no-cast no-md4 no-mdc2 no-ocb no-rc2 no-rmd160 no-scrypt no-seed no-weak-ssl-ciphers no-shared no-tests no-uplink no-cmp no-fips no-padlockeng no-siv no-legacy no-dtls no-deprecated --libdir=lib --openssldir="/etc/ssl" --prefix=/src/misc/misc/3rd-party/msquic/build/_deps/opensslquic-build/openssl3
Failure! build file wasn't produced.
Please read INSTALL.md and associated NOTES-* files. You may also have to
look over your available compiler tool chain or change your configuration.
no NDK x86_64-linux-android-gcc on $PATH at (eval 10) line 142.
Configuring OpenSSL version 3.1.4+quic for target android-x86_64
Using os-specific seed configuration
ninja: build stopped: subcommand failed.
It looks like OpenSSL tries to compile with gcc, but there is no gcc in NDK, NDK is shipped with clang.
NDK installation itself is correct, I'm able to build many other libs (protobuf, lsquic, etc) without any problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to build
2.3.6
for Android with NDK r27 (also tried with r25, same result).When using the script (
pwsh ./scripts/build.ps1 -Config Release -Platform android -Arch x64
) it fails to build OpenSSL. Not sure about the exact problem as the build log is a mess, but I guess it's the same reason as with a "pure" CMake build.I've also tried to build it with CMake like this:
The failure:
It looks like OpenSSL tries to compile with
gcc
, but there is nogcc
in NDK, NDK is shipped withclang
.NDK installation itself is correct, I'm able to build many other libs (protobuf, lsquic, etc) without any problem.
How to fix it?
Beta Was this translation helpful? Give feedback.
All reactions