Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openssl 最新版本无法build 到 arm64-android #43324

Open
zyy890508 opened this issue Jan 17, 2025 · 1 comment
Open

openssl 最新版本无法build 到 arm64-android #43324

zyy890508 opened this issue Jan 17, 2025 · 1 comment
Assignees
Labels
requires:more-information This Issue requires more information to solve

Comments

@zyy890508
Copy link

DEBUG: all keys: APPLINKDIR, BINDIR, CMAKECONFIGDIR, ENGINESDIR, INCLUDEDIR, LDLIBS, LIBDIR, MODULESDIR, PKGCONFIGDIR, PREFIX, VERSION, libdir
No value given for CMAKECONFIGDIR
No value given for PKGCONFIGDIR
No value given for libdir
DEBUG: PREFIX = . => PREFIX = /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg
DEBUG: libdir = . => libdir = /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg
DEBUG: BINDIR = apps => BINDIR = /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg/apps, BINDIR_REL_PREFIX = apps
DEBUG: LIBDIR = => LIBDIR = /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg, LIBDIR_REL_PREFIX =
DEBUG: INCLUDEDIR = [ include, ../src/nssl-3.4.0-26c53982ba.clean/include ] => INCLUDEDIR = [ /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg/include, /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg/../src/nssl-3.4.0-26c53982ba.clean/include ], INCLUDEDIR_REL_PREFIX = [ include, ../src/nssl-3.4.0-26c53982ba.clean/include ]
DEBUG: APPLINKDIR = ms => APPLINKDIR = /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg/ms, APPLINKDIR_REL_PREFIX = ms
DEBUG: ENGINESDIR = engines => ENGINESDIR = /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg/engines, ENGINESDIR_REL_LIBDIR = engines
DEBUG: MODULESDIR = providers => MODULESDIR = /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg/providers, MODULESDIR_REL_LIBDIR = providers
DEBUG: PKGCONFIGDIR = . => PKGCONFIGDIR = /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg, PKGCONFIGDIR_REL_LIBDIR = .
DEBUG: CMAKECONFIGDIR = . => CMAKECONFIGDIR = /g/Dev/Package/vcpkg2/buildtrees/openssl/arm64-android-dbg, CMAKECONFIGDIR_REL_LIBDIR = .
DEBUG: all keys: APPLINKDIR, BINDIR, CMAKECONFIGDIR, ENGINESDIR, INCLUDEDIR, LDLIBS, LIBDIR, MODULESDIR, PKGCONFIGDIR, PREFIX, VERSION, libdir
DEBUG: PREFIX = /G/Dev/Package/vcpkg2/installed/arm64-android/debug => PREFIX = /G/Dev/Package/vcpkg2/installed/arm64-android/debug
DEBUG: libdir = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib => libdir = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib
DEBUG: BINDIR = bin => BINDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/bin, BINDIR_REL_PREFIX = bin
DEBUG: LIBDIR = lib => LIBDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib, LIBDIR_REL_PREFIX = lib
DEBUG: INCLUDEDIR = include => INCLUDEDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/include, INCLUDEDIR_REL_PREFIX = include
DEBUG: APPLINKDIR = include/openssl => APPLINKDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/include/openssl, APPLINKDIR_REL_PREFIX = include/openssl
DEBUG: ENGINESDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/engines-3 => ENGINESDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/engines-3, ENGINESDIR_REL_LIBDIR = engines-3
DEBUG: MODULESDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/ossl-modules => MODULESDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/ossl-modules, MODULESDIR_REL_LIBDIR = ossl-modules
DEBUG: PKGCONFIGDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/pkgconfig => PKGCONFIGDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/pkgconfig, PKGCONFIGDIR_REL_LIBDIR = pkgconfig
DEBUG: CMAKECONFIGDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/share/openssl => CMAKECONFIGDIR = /G/Dev/Package/vcpkg2/installed/arm64-android/debug/share/openssl, CMAKECONFIGDIR_REL_LIBDIR = ../share/openssl
/bin/sh: -c: line 1: syntax error near unexpected token (' /bin/sh: -c: line 1: C:/Program Files (x86)/Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../src/nssl-3.4.0-26c53982ba.clean -I../src/nssl-3.4.0-26c53982ba.clean/include -I../src/nssl-3.4.0-26c53982ba.clean/providers/common/include -I../src/nssl-3.4.0-26c53982ba.clean/providers/implementations/include -DBSAES_ASM -DECP_NISTZ256_ASM -DECP_SM2P256_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ -DOPENSSL_SM3_ASM -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DSM4_ASM -DSTATIC_LEGACY -DVPAES_ASM -DVPSM4_ASM -fPIC -pthread -g -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wformat -Werror=format-security -fPIC -fno-limit-debug-info -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR=""/etc/ssl"" -DENGINESDIR=""/G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/engines-3"" -DMODULESDIR=""/G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/ossl-modules"" -DOPENSSL_BUILDING_OPENSSL --target=aarch64-none-linux-android21 -DANDROID -D_FORTIFY_SOURCE=2 --sysroot=C:/Program Files (x86)/Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -c -o crypto/aes/libcrypto-lib-aes_cbc.o ../src/nssl-3.4.0-26c53982ba.clean/crypto/aes/aes_cbc.c'
/bin/sh: -c: line 1: syntax error near unexpected token (' /bin/sh: -c: line 1: C:/Program Files (x86)/Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../src/nssl-3.4.0-26c53982ba.clean -I../src/nssl-3.4.0-26c53982ba.clean/include -I../src/nssl-3.4.0-26c53982ba.clean/providers/common/include -I../src/nssl-3.4.0-26c53982ba.clean/providers/implementations/include -DBSAES_ASM -DECP_NISTZ256_ASM -DECP_SM2P256_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ -DOPENSSL_SM3_ASM -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DSM4_ASM -DSTATIC_LEGACY -DVPAES_ASM -DVPSM4_ASM -fPIC -pthread -g -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wformat -Werror=format-security -fPIC -fno-limit-debug-info -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR=""/etc/ssl"" -DENGINESDIR=""/G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/engines-3"" -DMODULESDIR=""/G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/ossl-modules"" -DOPENSSL_BUILDING_OPENSSL --target=aarch64-none-linux-android21 -DANDROID -D_FORTIFY_SOURCE=2 --sysroot=C:/Program Files (x86)/Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -c -o crypto/aes/libcrypto-lib-aes_cfb.o ../src/nssl-3.4.0-26c53982ba.clean/crypto/aes/aes_cfb.c'
make[1]: *** [Makefile:4722: crypto/aes/libcrypto-lib-aes_cbc.o] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:4724: crypto/aes/libcrypto-lib-aes_cfb.o] Error 2
/bin/sh: -c: line 1: syntax error near unexpected token (' /bin/sh: -c: line 1: C:/Program Files (x86)/Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../src/nssl-3.4.0-26c53982ba.clean -I../src/nssl-3.4.0-26c53982ba.clean/include -I../src/nssl-3.4.0-26c53982ba.clean/providers/common/include -I../src/nssl-3.4.0-26c53982ba.clean/providers/implementations/include -DBSAES_ASM -DECP_NISTZ256_ASM -DECP_SM2P256_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ -DOPENSSL_SM3_ASM -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DSM4_ASM -DSTATIC_LEGACY -DVPAES_ASM -DVPSM4_ASM -fPIC -pthread -g -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wformat -Werror=format-security -fPIC -fno-limit-debug-info -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR=""/etc/ssl"" -DENGINESDIR=""/G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/engines-3"" -DMODULESDIR=""/G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/ossl-modules"" -DOPENSSL_BUILDING_OPENSSL --target=aarch64-none-linux-android21 -DANDROID -D_FORTIFY_SOURCE=2 --sysroot=C:/Program Files (x86)/Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -c -o crypto/aes/libcrypto-lib-aes_core.o ../src/nssl-3.4.0-26c53982ba.clean/crypto/aes/aes_core.c'
make[1]: *** [Makefile:4726: crypto/aes/libcrypto-lib-aes_core.o] Error 2
/bin/sh: -c: line 1: syntax error near unexpected token (' /bin/sh: -c: line 1: C:/Program Files (x86)/Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../src/nssl-3.4.0-26c53982ba.clean -I../src/nssl-3.4.0-26c53982ba.clean/include -I../src/nssl-3.4.0-26c53982ba.clean/providers/common/include -I../src/nssl-3.4.0-26c53982ba.clean/providers/implementations/include -DBSAES_ASM -DECP_NISTZ256_ASM -DECP_SM2P256_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ -DOPENSSL_SM3_ASM -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DSM4_ASM -DSTATIC_LEGACY -DVPAES_ASM -DVPSM4_ASM -fPIC -pthread -g -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wformat -Werror=format-security -fPIC -fno-limit-debug-info -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR=""/etc/ssl"" -DENGINESDIR=""/G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/engines-3"" -DMODULESDIR=""/G/Dev/Package/vcpkg2/installed/arm64-android/debug/lib/ossl-modules"" -DOPENSSL_BUILDING_OPENSSL --target=aarch64-none-linux-android21 -DANDROID -D_FORTIFY_SOURCE=2 --sysroot=C:/Program Files (x86)/Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -c -o crypto/aes/libcrypto-lib-aes_ecb.o ../src/nssl-3.4.0-26c53982ba.clean/crypto/aes/aes_ecb.c'
make[1]: *** [Makefile:4728: crypto/aes/libcrypto-lib-aes_ecb.o] Error 2
make: *** [Makefile:1567: build_sw] Error 2

@FrankXie05
Copy link
Contributor

C:/Program Files (x86)/Android/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe

It seems that Unix does not properly handle or escape spaces in paths when cross-compiling. You can try installing NDK and SDK into a directory without spaces.

@FrankXie05 FrankXie05 added the requires:more-information This Issue requires more information to solve label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:more-information This Issue requires more information to solve
Projects
None yet
Development

No branches or pull requests

2 participants