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 error on arm64-android #43956

Open
UnknownObject000 opened this issue Feb 21, 2025 · 2 comments
Open

[openssl] Build error on arm64-android #43956

UnknownObject000 opened this issue Feb 21, 2025 · 2 comments
Assignees
Labels
category:question This issue is a question

Comments

@UnknownObject000
Copy link

Package: openssl:arm64-android -> 3.4.0

Host Environment

  • Host: x64-windows
  • Compiler: Clang 11.0.5
  • vcpkg-tool version: 2023-10-18-27de5b69dac4b6fe8259d283cd4011e6d20a84ce
    vcpkg-scripts version: 20a72ce 2024-12-06 (3 months ago)

To Reproduce

vcpkg install tesseract:arm64-android
Failure logs

-- Using cached openssl-openssl-openssl-3.4.0.tar.gz.
-- Cleaning sources at F:/vcpkg/buildtrees/openssl/src/nssl-3.4.0-821e8e5bdc.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/vcpkg/downloads/openssl-openssl-openssl-3.4.0.tar.gz
-- Applying patch cmake-config.patch
-- Applying patch command-line-length.patch
-- Applying patch script-prefix.patch
-- Applying patch asm-armcap.patch
-- Applying patch windows/install-layout.patch
-- Applying patch windows/install-pdbs.patch
-- Applying patch unix/android-cc.patch
-- Applying patch unix/move-openssldir.patch
-- Applying patch unix/no-empty-dirs.patch
-- Applying patch unix/no-static-libs-for-shared.patch
-- Using source at F:/vcpkg/buildtrees/openssl/src/nssl-3.4.0-821e8e5bdc.clean
-- Using cached msys2-make-4.4.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-perl-5.38.2-2-x86_64.pkg.tar.zst.
-- Using cached msys2-bash-5.2.037-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.45-3-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.10-1-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-2.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.22.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libxcrypt-4.4.36-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-13.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.6.3-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.6-1-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.013-1-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-4-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.5.20240831-2-x86_64.pkg.tar.zst.
-- Using msys root at F:/vcpkg/downloads/tools/msys2/ac114c4abb18a79f
-- Getting CMake variables for arm64-android
-- Getting CMake variables for arm64-android
-- Using cached msys2-autoconf-wrapper-20240607-1-any.pkg.tar.zst.
-- Using cached msys2-automake-wrapper-20240607-1-any.pkg.tar.zst.
-- Using cached msys2-binutils-2.43.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libtool-2.4.7-4-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-2.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-which-2.21-4-x86_64.pkg.tar.zst.
-- Using cached msys2-bash-5.2.037-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.45-3-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.10-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst.
-- Using cached msys2-autoconf2.72-2.72-1-any.pkg.tar.zst.
-- Using cached msys2-automake1.16-1.16.5-1-any.pkg.tar.zst.
-- Using cached msys2-automake1.17-1.17-1-any.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.22.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-tar-1.35-2-x86_64.pkg.tar.zst.
-- Using cached msys2-findutils-4.10.0-2-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-13.3.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.6.3-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.6-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.013-1-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-4-x86_64.pkg.tar.zst.
-- Using cached msys2-m4-1.4.19-2-x86_64.pkg.tar.zst.
-- Using cached msys2-perl-5.38.2-2-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.5.20240831-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libxcrypt-4.4.36-1-x86_64.pkg.tar.zst.
-- Using msys root at F:/vcpkg/downloads/tools/msys2/2db36fb050d01f45
-- Using cached msys2-mingw-w64-x86_64-pkgconf-1~2.3.0-1-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.5.4-2-x86_64.pkg.tar.zst.
-- Using msys root at F:/vcpkg/downloads/tools/msys2/21caed2f81ec917b
-- Configuring arm64-android-dbg
-- Configuring arm64-android-rel
-- Building arm64-android-dbg
-- Installing arm64-android-dbg
-- Building arm64-android-rel
-- Installing arm64-android-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: F:/vcpkg/downloads/tools/msys2/2db36fb050d01f45/usr/bin/make.exe -j 21 --trace -f Makefile install DESTDIR=/F/vcpkg/packages/openssl_arm64-android
    Working Directory: F:/vcpkg/buildtrees/openssl/arm64-android-rel/
    See logs for more information:
      F:\vcpkg\buildtrees\openssl\install-arm64-android-rel-out.log
      F:\vcpkg\buildtrees\openssl\install-arm64-android-rel-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:153 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:2 (vcpkg_build_make)
  ports/openssl/unix/portfile.cmake:119 (vcpkg_install_make)
  ports/openssl/portfile.cmake:72 (include)
  scripts/ports.cmake:196 (include)



F:\vcpkg\buildtrees\openssl\install-arm64-android-rel-out.log
Makefile:2371: update target 'build_libs' due to: target does not exist
"/usr/bin/make" depend && "/usr/bin/make" _build_libs
Makefile:2374: update target 'build_modules' due to: target does not exist
"/usr/bin/make" depend && "/usr/bin/make" _build_modules
Makefile:2377: update target 'build_programs' due to: target does not exist
"/usr/bin/make" depend && "/usr/bin/make" _build_programs
Makefile:2510: update target 'install_ssldirs' due to: target does not exist
F:/vcpkg/downloads/tools/msys2/ac114c4abb18a79f/usr/bin/perl ../src/nssl-3.4.0-821e8e5bdc.clean/util/mkdir-p.pl "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/certs"
created directory `/F/vcpkg/packages/openssl_arm64-android/etc/ssl/certs'
F:/vcpkg/downloads/tools/msys2/ac114c4abb18a79f/usr/bin/perl ../src/nssl-3.4.0-821e8e5bdc.clean/util/mkdir-p.pl "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/private"
created directory `/F/vcpkg/packages/openssl_arm64-android/etc/ssl/private'
F:/vcpkg/downloads/tools/msys2/ac114c4abb18a79f/usr/bin/perl ../src/nssl-3.4.0-821e8e5bdc.clean/util/mkdir-p.pl "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/misc"
make[1]: Entering directory '/f/vcpkg/buildtrees/openssl/arm64-android-rel'
Makefile:2480: update target 'depend' due to: target does not exist
: 
make[1]: Entering directory '/f/vcpkg/buildtrees/openssl/arm64-android-rel'
Makefile:2480: update target 'depend' due to: target does not exist
: 
make[1]: Entering directory '/f/vcpkg/buildtrees/openssl/arm64-android-rel'
Makefile:2480: update target 'depend' due to: target does not exist
: 
F:/vcpkg/downloads/tools/msys2/ac114c4abb18a79f/usr/bin/perl ../src/nssl-3.4.0-821e8e5bdc.clean/util/add-depends.pl "gcc"
created directory `/F/vcpkg/packages/openssl_arm64-android/etc/ssl/misc'
set -e; for x in dummy ; do \
	if [ "$x" = "dummy" ]; then continue; fi; \
	x1=`echo "$x" | cut -f1 -d:`; \
	x2=`echo "$x" | cut -f2 -d:`; \
	fn=`basename $x1`; \
	echo "install $x1 -> /F/vcpkg/packages/openssl_arm64-android/etc/ssl/misc/$fn"; \
	cp $x1 "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/misc/$fn.new"; \
	chmod 755 "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/misc/$fn.new"; \
	mv -f "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/misc/$fn.new" \
	      "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/misc/$fn"; \
	if [ "$x1" != "$x2" ]; then \
		ln=`basename "$x2"`; \
		: ; \
		echo "link /F/vcpkg/packages/openssl_arm64-android/etc/ssl/misc/$ln -> /F/vcpkg/packages/openssl_arm64-android/etc/ssl/misc/$fn"; \
		ln -sf $fn "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/misc/$ln"; \
		: ; \
	fi; \
done
F:/vcpkg/downloads/tools/msys2/ac114c4abb18a79f/usr/bin/perl ../src/nssl-3.4.0-821e8e5bdc.clean/util/add-depends.pl "gcc"
F:/vcpkg/downloads/tools/msys2/ac114c4abb18a79f/usr/bin/perl ../src/nssl-3.4.0-821e8e5bdc.clean/util/add-depends.pl "gcc"
echo "install ../src/nssl-3.4.0-821e8e5bdc.clean/apps/openssl.cnf -> /F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf.dist"
install ../src/nssl-3.4.0-821e8e5bdc.clean/apps/openssl.cnf -> /F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf.dist
cp ../src/nssl-3.4.0-821e8e5bdc.clean/apps/openssl.cnf "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf.new"
chmod 644 "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf.new"
mv -f  "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf.new" "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf.dist"
if [ ! -f "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf" ]; then \
	echo "install ../src/nssl-3.4.0-821e8e5bdc.clean/apps/openssl.cnf -> /F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf"; \
	cp ../src/nssl-3.4.0-821e8e5bdc.clean/apps/openssl.cnf "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf"; \
	chmod 644 "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf"; \
fi
install ../src/nssl-3.4.0-821e8e5bdc.clean/apps/openssl.cnf -> /F/vcpkg/packages/openssl_arm64-android/etc/ssl/openssl.cnf
echo "install ../src/nssl-3.4.0-821e8e5bdc.clean/apps/ct_log_list.cnf -> /F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf.dist"
install ../src/nssl-3.4.0-821e8e5bdc.clean/apps/ct_log_list.cnf -> /F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf.dist
cp ../src/nssl-3.4.0-821e8e5bdc.clean/apps/ct_log_list.cnf "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf.new"
chmod 644 "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf.new"
mv -f  "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf.new" "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf.dist"
if [ ! -f "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf" ]; then \
	echo "install ../src/nssl-3.4.0-821e8e5bdc.clean/apps/ct_log_list.cnf -> /F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf"; \
	cp ../src/nssl-3.4.0-821e8e5bdc.clean/apps/ct_log_list.cnf "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf"; \
	chmod 644 "/F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf"; \
fi
install ../src/nssl-3.4.0-821e8e5bdc.clean/apps/ct_log_list.cnf -> /F/vcpkg/packages/openssl_arm64-android/etc/ssl/ct_log_list.cnf
: 
: 
make[1]: Leaving directory '/f/vcpkg/buildtrees/openssl/arm64-android-rel'
F:/vcpkg/downloads/tools/msys2/ac114c4abb18a79f/usr/bin/perl ../src/nssl-3.4.0-821e8e5bdc.clean/util/mkdir-p.pl /F/vcpkg/packages/openssl_arm64-android/F/vcpkg/installed/arm64-android/etc/ssl
created directory `/F/vcpkg/packages/openssl_arm64-android/F/vcpkg/installed/arm64-android/etc'
created directory `/F/vcpkg/packages/openssl_arm64-android/F/vcpkg/installed/arm64-android/etc/ssl'
for I in /F/vcpkg/packages/openssl_arm64-android/etc/ssl/*; do \
	mv $I /F/vcpkg/packages/openssl_arm64-android/F/vcpkg/installed/arm64-android/etc/ssl/; \
done
make[1]: Leaving directory '/f/vcpkg/buildtrees/openssl/arm64-android-rel'
make[1]: Leaving directory '/f/vcpkg/buildtrees/openssl/arm64-android-rel'
make[1]: Entering directory '/f/vcpkg/buildtrees/openssl/arm64-android-rel'
make[1]: Nothing to be done for '_build_programs'.
make[1]: Leaving directory '/f/vcpkg/buildtrees/openssl/arm64-android-rel'
make[1]: Entering directory '/f/vcpkg/buildtrees/openssl/arm64-android-rel'
make[1]: Nothing to be done for '_build_libs'.
make[1]: Leaving directory '/f/vcpkg/buildtrees/openssl/arm64-android-rel'
F:\vcpkg\buildtrees\openssl\install-arm64-android-rel-err.log
Trying to rename Makefile-892 -> Makefile: Device or resource busy
make[1]: *** [Makefile:2481: depend] Error 16
make: *** [Makefile:2374: build_modules] Error 2
make: *** Waiting for unfinished jobs....
@JonLiu1993 JonLiu1993 self-assigned this Feb 21, 2025
@JonLiu1993 JonLiu1993 added the category:question This issue is a question label Feb 21, 2025
@JonLiu1993
Copy link
Member

@UnknownObject000, Is your antivirus software turned on? If so, please turn it off and try again.

@UnknownObject000
Copy link
Author

@UnknownObject000, Is your antivirus software turned on? If so, please turn it off and try again.

I don't have any third-party antivirus software installed. Re-run the same command with Windows Defender's Real-time Protection off reports the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants