microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.19k stars 6.39k forks source link

[icu] Build error #33417

Closed mz02005 closed 4 months ago

mz02005 commented 1 year ago

Package: icu[core,tools]:arm64-linux-release -> 73.1

Host Environment

To Reproduce

vcpkg install Failure logs

-- Using cached icu4c-73_1-src.tgz.
-- Cleaning sources at /home/mz/works/vcpkg/buildtrees/icu/src/c-73_1-src-3575e21c7c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/mz/works/vcpkg/downloads/icu4c-73_1-src.tgz
-- Applying patch disable-escapestr-tool.patch
-- Applying patch remove-MD-from-configure.patch
-- Applying patch fix_parallel_build_on_windows.patch
-- Applying patch fix-extra.patch
-- Applying patch mingw-dll-install.patch
-- Applying patch disable-static-prefix.patch
-- Applying patch fix-win-build.patch
-- Using source at /home/mz/works/vcpkg/buildtrees/icu/src/c-73_1-src-3575e21c7c.clean
-- Getting CMake variables for arm64-linux-release-dbg
-- Getting CMake variables for arm64-linux-release-rel
-- Generating configure for arm64-linux-release
-- Finished generating configure for arm64-linux-release
-- Configuring arm64-linux-release-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: /usr/bin/bash -c "V=1 ./../src/c-73_1-src-3575e21c7c.clean/source/configure --host=aarch64-unknown-linux-gnu \"--disable-samples\" \"--disable-tests\" \"--disable-layoutex\" \"--enable-tools\" \"--disable-silent-rules\" \"--verbose\" \"--disable-shared\" \"--enable-static\" \"--enable-debug\" \"--disable-release\" \"--prefix=/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug\" \"--bindir=\\${prefix}/../tools/icu/debug/bin\" \"--sbindir=\\${prefix}/../tools/icu/debug/sbin\" \"--libdir=\\${prefix}/lib\" \"--includedir=\\${prefix}/../include\" \"--datarootdir=\\${prefix}/share/icu\""
    Working Directory: /home/mz/works/vcpkg/buildtrees/icu/arm64-linux-release-dbg
    Error code: 1
    See logs for more information:
      /home/mz/works/vcpkg/buildtrees/icu/config-arm64-linux-release-dbg-config.log
      /home/mz/works/vcpkg/buildtrees/icu/config-arm64-linux-release-dbg-out.log
      /home/mz/works/vcpkg/buildtrees/icu/config-arm64-linux-release-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:838 (vcpkg_execute_required_process)
  ports/icu/portfile.cmake:54 (vcpkg_configure_make)
  scripts/ports.cmake:147 (include)
/home/mz/works/vcpkg/buildtrees/icu/config-arm64-linux-release-dbg-config.log ``` This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by ICU configure 73.1, which was generated by GNU Autoconf 2.71. Invocation command line was $ ./../src/c-73_1-src-3575e21c7c.clean/source/configure --host=aarch64-unknown-linux-gnu --disable-samples --disable-tests --disable-layoutex --enable-tools --disable-silent-rules --verbose --disable-shared --enable-static --enable-debug --disable-release --prefix=/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug '--bindir=${prefix}/../tools/icu/debug/bin' '--sbindir=${prefix}/../tools/icu/debug/sbin' '--libdir=${prefix}/lib' '--includedir=${prefix}/../include' '--datarootdir=${prefix}/share/icu' ## --------- ## ## Platform. ## ## --------- ## hostname = mz-ubuntu-desktop uname -m = x86_64 uname -r = 6.2.0-26-generic uname -s = Linux uname -v = #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 /usr/bin/uname -p = x86_64 /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /home/mz/works/vcpkg/ PATH: /usr/local/sbin/ PATH: /usr/local/bin/ PATH: /usr/sbin/ PATH: /usr/bin/ PATH: /sbin/ PATH: /bin/ PATH: /usr/games/ PATH: /usr/local/games/ PATH: /snap/bin/ PATH: /snap/bin/ PATH: /home/mz/.dotnet/tools/ PATH: /opt/crosstool-ng/bin/ PATH: /home/mz/works/vcpkg/downloads/tools/ninja/1.10.2-linux/ PATH: /bin/ ## ----------- ## ## Core tests. ## ## ----------- ## configure:3118: looking for aux files: install-sh config.guess config.sub configure:3131: trying ./../src/c-73_1-src-3575e21c7c.clean/source/ configure:3142: ./../src/c-73_1-src-3575e21c7c.clean/source/install-sh found configure:3160: ./../src/c-73_1-src-3575e21c7c.clean/source/config.guess found configure:3160: ./../src/c-73_1-src-3575e21c7c.clean/source/config.sub found configure:3300: checking for ICU version numbers configure:3333: result: release 73.1, library 73.1, unicode version 15.0 configure:3346: checking build system type configure:3361: result: x86_64-pc-linux-gnu configure:3381: checking host system type configure:3395: result: aarch64-unknown-linux-gnu configure:3469: checking whether to build debug libraries configure:3482: result: yes configure:3487: checking whether to build release libraries configure:3500: result: no configure:3528: checking for aarch64-unknown-linux-gnu-clang configure:3560: result: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc configure:3640: checking for C compiler version configure:3649: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc --version >&5 aarch64-unknown-linux-gnu-gcc (crosstool-NG 1.25.0) 10.3.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3660: $? = 0 configure:3649: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -v >&5 Using built-in specs. COLLECT_GCC=/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/home/mz/x-tools/aarch64-unknown-linux-gnu/libexec/gcc/aarch64-unknown-linux-gnu/10.3.0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /home/mz/works/crosstool/.build/aarch64-unknown-linux-gnu/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=aarch64-unknown-linux-gnu --prefix=/home/mz/x-tools/aarch64-unknown-linux-gnu --exec_prefix=/home/mz/x-tools/aarch64-unknown-linux-gnu --with-sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot --enable-languages=c,c++ --with-arch=armv8-a --with-pkgversion='crosstool-NG 1.25.0' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-libsanitizer --disable-libmpx --disable-libstdcxx-verbose --with-gmp=/home/mz/works/crosstool/.build/aarch64-unknown-linux-gnu/buildtools --with-mpfr=/home/mz/works/crosstool/.build/aarch64-unknown-linux-gnu/buildtools --with-mpc=/home/mz/works/crosstool/.build/aarch64-unknown-linux-gnu/buildtools --with-isl=/home/mz/works/crosstool/.build/aarch64-unknown-linux-gnu/buildtools --enable-lto --enable-threads=posix --enable-target-optspace --disable-plugin --disable-nls --disable-multilib --with-local-prefix=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot --enable-long-long Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.3.0 (crosstool-NG 1.25.0) configure:3660: $? = 0 configure:3649: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -V >&5 aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-V' aarch64-unknown-linux-gnu-gcc: fatal error: no input files compilation terminated. configure:3660: $? = 1 configure:3649: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -qversion >&5 aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'? aarch64-unknown-linux-gnu-gcc: fatal error: no input files compilation terminated. configure:3660: $? = 1 configure:3649: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -version >&5 aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option '-version' aarch64-unknown-linux-gnu-gcc: fatal error: no input files compilation terminated. configure:3660: $? = 1 configure:3680: checking whether the C compiler works configure:3702: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot -L/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug/lib --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c >&5 configure:3706: $? = 0 configure:3756: result: yes configure:3759: checking for C compiler default output file name configure:3761: result: a.out configure:3767: checking for suffix of executables configure:3774: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -o conftest -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot -L/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug/lib --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c >&5 configure:3778: $? = 0 configure:3801: result: configure:3823: checking whether we are cross compiling configure:3831: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -o conftest -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot -L/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug/lib --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c >&5 configure:3835: $? = 0 configure:3842: ./conftest ./../src/c-73_1-src-3575e21c7c.clean/source/configure: line 3844: ./conftest: cannot execute binary file: Exec format error configure:3846: $? = 126 configure:3861: result: yes configure:3866: checking for suffix of object files configure:3889: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -c -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c >&5 configure:3893: $? = 0 configure:3915: result: o configure:3919: checking whether the compiler supports GNU C configure:3939: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -c -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c >&5 configure:3939: $? = 0 configure:3949: result: yes configure:3960: checking whether /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc accepts -g configure:3981: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -c -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c >&5 configure:3981: $? = 0 configure:4025: result: yes configure:4045: checking for /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc option to enable C11 features configure:4060: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -c -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c >&5 configure:4060: $? = 0 configure:4078: result: none needed configure:4318: checking for C++ compiler version configure:4327: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ --version >&5 aarch64-unknown-linux-gnu-g++ (crosstool-NG 1.25.0) 10.3.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4338: $? = 0 configure:4327: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ -v >&5 Using built-in specs. COLLECT_GCC=/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ COLLECT_LTO_WRAPPER=/home/mz/x-tools/aarch64-unknown-linux-gnu/libexec/gcc/aarch64-unknown-linux-gnu/10.3.0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /home/mz/works/crosstool/.build/aarch64-unknown-linux-gnu/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=aarch64-unknown-linux-gnu --prefix=/home/mz/x-tools/aarch64-unknown-linux-gnu --exec_prefix=/home/mz/x-tools/aarch64-unknown-linux-gnu --with-sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot --enable-languages=c,c++ --with-arch=armv8-a --with-pkgversion='crosstool-NG 1.25.0' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-libsanitizer --disable-libmpx --disable-libstdcxx-verbose --with-gmp=/home/mz/works/crosstool/.build/aarch64-unknown-linux-gnu/buildtools --with-mpfr=/home/mz/works/crosstool/.build/aarch64-unknown-linux-gnu/buildtools --with-mpc=/home/mz/works/crosstool/.build/aarch64-unknown-linux-gnu/buildtools --with-isl=/home/mz/works/crosstool/.build/aarch64-unknown-linux-gnu/buildtools --enable-lto --enable-threads=posix --enable-target-optspace --disable-plugin --disable-nls --disable-multilib --with-local-prefix=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot --enable-long-long Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.3.0 (crosstool-NG 1.25.0) configure:4338: $? = 0 configure:4327: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ -V >&5 aarch64-unknown-linux-gnu-g++: error: unrecognized command-line option '-V' aarch64-unknown-linux-gnu-g++: fatal error: no input files compilation terminated. configure:4338: $? = 1 configure:4327: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ -qversion >&5 aarch64-unknown-linux-gnu-g++: error: unrecognized command-line option '-qversion'; did you mean '--version'? aarch64-unknown-linux-gnu-g++: fatal error: no input files compilation terminated. configure:4338: $? = 1 configure:4342: checking whether the compiler supports GNU C++ configure:4362: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ -c -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.cpp >&5 configure:4362: $? = 0 configure:4372: result: yes configure:4383: checking whether /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ accepts -g configure:4404: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ -c -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.cpp >&5 configure:4404: $? = 0 configure:4448: result: yes configure:4468: checking for /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ option to enable C++11 features configure:4483: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ -c -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.cpp >&5 configure:4483: $? = 0 configure:4501: result: none needed configure:4686: checking pkg-config is at least version 0.20 configure:4689: result: yes configure:4699: checking for icu-le-hb configure:4706: $PKG_CONFIG --exists --print-errors "icu-le-hb" Package icu-le-hb was not found in the pkg-config search path. Perhaps you should add the directory containing `icu-le-hb.pc' to the PKG_CONFIG_PATH environment variable No package 'icu-le-hb' found configure:4709: $? = 1 configure:4723: $PKG_CONFIG --exists --print-errors "icu-le-hb" Package icu-le-hb was not found in the pkg-config search path. Perhaps you should add the directory containing `icu-le-hb.pc' to the PKG_CONFIG_PATH environment variable No package 'icu-le-hb' found configure:4726: $? = 1 configure:4740: result: no No package 'icu-le-hb' found configure:4795: checking how to run the C preprocessor configure:4821: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -E --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c configure:4821: $? = 0 configure:4836: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -E --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory 9 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. configure:4836: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ICU" | #define PACKAGE_TARNAME "International Components for Unicode" | #define PACKAGE_VERSION "73.1" | #define PACKAGE_STRING "ICU 73.1" | #define PACKAGE_BUGREPORT "http://icu-project.org/bugs" | #define PACKAGE_URL "http://icu-project.org" | /* end confdefs.h. */ | #include configure:4863: result: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -E configure:4877: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -E --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c configure:4877: $? = 0 configure:4892: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -E --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.c conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory 9 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. configure:4892: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ICU" | #define PACKAGE_TARNAME "International Components for Unicode" | #define PACKAGE_VERSION "73.1" | #define PACKAGE_STRING "ICU 73.1" | #define PACKAGE_BUGREPORT "http://icu-project.org/bugs" | #define PACKAGE_URL "http://icu-project.org" | /* end confdefs.h. */ | #include configure:4938: checking for a BSD-compatible install configure:5011: result: /usr/bin/install -c configure:5043: /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ -o conftest -g --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot -L/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug/lib --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot conftest.cpp >&5 configure:5043: $? = 0 configure:5074: checking for python3 configure:5106: result: /usr/bin/python3 configure:5124: checking for gmake configure:5147: found /usr/bin/gmake configure:5159: result: /usr/bin/gmake configure:5186: error: Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-pc-linux-gnu ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set=set ac_cv_env_CC_value=/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value=-g ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=--sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value=-g ac_cv_env_CXX_set=set ac_cv_env_CXX_value=/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ ac_cv_env_ICULEHB_CFLAGS_set= ac_cv_env_ICULEHB_CFLAGS_value= ac_cv_env_ICULEHB_LIBS_set= ac_cv_env_ICULEHB_LIBS_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-L/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug/lib --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_PKG_CONFIG_LIBDIR_set= ac_cv_env_PKG_CONFIG_LIBDIR_value= ac_cv_env_PKG_CONFIG_PATH_set=set ac_cv_env_PKG_CONFIG_PATH_value=/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug/lib/pkgconfig/:/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug/share/pkgconfig/ ac_cv_env_PKG_CONFIG_set=set ac_cv_env_PKG_CONFIG_value=/bin/pkg-config ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=aarch64-unknown-linux-gnu ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=aarch64-unknown-linux-gnu ac_cv_objext=o ac_cv_path_U_MAKE=/usr/bin/gmake ac_cv_path_install='/usr/bin/install -c' ac_cv_prog_CC=/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc ac_cv_prog_CPP='/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -E' ac_cv_prog_PYTHON=/usr/bin/python3 ac_cv_prog_cc_c11= ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_cxx_11=no ac_cv_prog_cxx_cxx11= ac_cv_prog_cxx_g=yes ac_cv_prog_cxx_stdcxx= ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ar' ARFLAGS='' CC='/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc' CFLAGS='-g' COMPILE_LINK_ENVVAR='' CPP='/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -E' CPPFLAGS='--sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot' CXX='/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++' CXXFLAGS='-g' DATA_PACKAGING_MODE='' DATA_TRUE='' DEFS='' DOXYGEN='' ECHO_C='' ECHO_N='-n' ECHO_T='' ENABLE_DEBUG='1' ENABLE_RELEASE='0' ENABLE_RPATH='' ENABLE_SHARED='' ENABLE_STATIC='' EXEEXT='' EXTRAS_TRUE='' FUZZER_TRUE='' GENCCODE_ASSEMBLY='' HAVE_MMAP='' ICUDATA_CHAR='' ICUIO_TRUE='' ICULEHB_CFLAGS='' ICULEHB_LIBS='' ICULIBSUFFIX='' ICULIBSUFFIXCNAME='' ICU_ECHO_C='' ICU_ECHO_N='-n' ICU_ECHO_T='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_ICU_BUILD_WIN='true' INSTALL_ICU_CONFIG='true' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' LAYOUTEX_TRUE='' LDFLAGS='-L/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug/lib --sysroot=/home/mz/x-tools/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot' LIBCFLAGS='' LIBCXXFLAGS='' LIBOBJS='' LIBS='' LIB_M='' LIB_THREAD='' LIB_VERSION='73.1' LIB_VERSION_MAJOR='73' LTLIBOBJS='' OBJEXT='o' PACKAGE='icu' PACKAGE_BUGREPORT='http://icu-project.org/bugs' PACKAGE_NAME='ICU' PACKAGE_STRING='ICU 73.1' PACKAGE_TARNAME='International Components for Unicode' PACKAGE_URL='http://icu-project.org' PACKAGE_VERSION='73.1' PATH_SEPARATOR=':' PKG_CONFIG='/bin/pkg-config' PKG_CONFIG_LIBDIR='' PKG_CONFIG_PATH='/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug/lib/pkgconfig/:/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug/share/pkgconfig/' PLUGINS_TRUE='' PYTHON='/usr/bin/python3' RANLIB='/home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ranlib' SAMPLES_TRUE='' SED='' SHELL='/bin/bash' TESTS_TRUE='' TOOLS_TRUE='' UCLN_NO_AUTO_CLEANUP='' UCONFIG_CFLAGS='' UCONFIG_CPPFLAGS='' UCONFIG_CXXFLAGS='' UNICODE_VERSION='15.0' U_DEFAULT_SHOW_DRAFT='' U_DISABLE_RENAMING='' U_ENABLE_DYLOAD='' U_ENABLE_TRACING='' U_HAVE_DATA='' U_HAVE_DIRENT_H='' U_HAVE_EXTRAS='' U_HAVE_FUZZER='' U_HAVE_ICUIO='' U_HAVE_INTTYPES_H='' U_HAVE_LAYOUTEX='' U_HAVE_LIB_SUFFIX='' U_HAVE_NL_LANGINFO_CODESET='' U_HAVE_PLACEMENT_NEW='' U_HAVE_PLUGINS='' U_HAVE_POPEN='' U_HAVE_SAMPLES='' U_HAVE_STRTOD_L='' U_HAVE_TESTS='' U_HAVE_TIMEZONE='' U_HAVE_TOOLS='' U_HAVE_TZNAME='' U_HAVE_TZSET='' U_HAVE_WCHAR_H='' U_HAVE_WCSCPY='' U_IS_BIG_ENDIAN='' U_MAKE='/usr/bin/gmake' U_NL_LANGINFO_CODESET='' U_OVERRIDE_CXX_ALLOCATION='' U_TIMEZONE='' U_TZNAME='' U_TZSET='' VERSION='73.1' ac_ct_CC='' ac_ct_CXX='' bindir='${prefix}/../tools/icu/debug/bin' build='x86_64-pc-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' cross_buildroot='' cross_compiling='yes' datadir='${datarootdir}' datarootdir='${prefix}/share/icu' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='aarch64-unknown-linux-gnu' host_alias='aarch64-unknown-linux-gnu' host_cpu='aarch64' host_os='linux-gnu' host_vendor='unknown' htmldir='${docdir}' includedir='${prefix}/../include' infodir='${datarootdir}/info' libdir='${prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' pkgicudatadir='' platform='' platform_make_fragment='' platform_make_fragment_name='' prefix='/home/mz/works/code/test/testmanifest/vcpkg_installed/arm64-linux-release/debug' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='${prefix}/../tools/icu/debug/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' thepkgicudatadir='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "ICU" #define PACKAGE_TARNAME "International Components for Unicode" #define PACKAGE_VERSION "73.1" #define PACKAGE_STRING "ICU 73.1" #define PACKAGE_BUGREPORT "http://icu-project.org/bugs" #define PACKAGE_URL "http://icu-project.org" configure: exit 1 ```
/home/mz/works/vcpkg/buildtrees/icu/config-arm64-linux-release-dbg-out.log ``` checking for ICU version numbers... release 73.1, library 73.1, unicode version 15.0 checking build system type... x86_64-pc-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking whether to build debug libraries... yes checking whether to build release libraries... no checking for aarch64-unknown-linux-gnu-clang... /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc accepts -g... yes checking for /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc option to enable C11 features... none needed checking whether the compiler supports GNU C++... yes checking whether /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ accepts -g... yes checking for /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-g++ option to enable C++11 features... none needed checking pkg-config is at least version 0.20... yes checking for icu-le-hb... no checking how to run the C preprocessor... /home/mz/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking for python3... /usr/bin/python3 checking for gmake... /usr/bin/gmake ```
/home/mz/works/vcpkg/buildtrees/icu/config-arm64-linux-release-dbg-err.log ``` configure: WARNING: unrecognized options: --disable-silent-rules configure: error: Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root ```
**Additional context**
vcpkg.json ``` { "name": "test-cross-compile-with-vcpkg", "version-string": "0.0.1", "dependencies": [ "boost-system", "boost-asio", "libmysql" ] } ```
xiaoyifang commented 1 year ago

on macos 12, also build error

Building icu[core,tools]:x64-osx...
-- Downloading https://github.com/unicode-org/icu/releases/download/release-73-1/icu4c-73_1-src.tgz -> icu4c-73_1-src.tgz...
-- Extracting source /usr/local/share/vcpkg/downloads/icu4c-73_1-src.tgz
-- Applying patch disable-escapestr-tool.patch
-- Applying patch remove-MD-from-configure.patch
-- Applying patch fix_parallel_build_on_windows.patch
-- Applying patch fix-extra.patch
-- Applying patch mingw-dll-install.patch
-- Applying patch disable-static-prefix.patch
-- Applying patch fix-win-build.patch
-- Using source at /usr/local/share/vcpkg/buildtrees/icu/src/c-73_1-src-3575e21c7c.clean
-- Found external ninja('1.11.1').
-- Getting CMake variables for x64-osx-dbg
-- Getting CMake variables for x64-osx-rel
-- Generating configure for x64-osx
-- Finished generating configure for x64-osx
-- Configuring x64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: /bin/bash -c "V=1 ./../src/c-73_1-src-3575e21c7c.clean/source/configure  \"--disable-samples\" \"--disable-tests\" \"--disable-layoutex\" \"--enable-tools\" \"--disable-silent-rules\" \"--verbose\" \"--disable-shared\" \"--enable-static\" \"--enable-debug\" \"--disable-release\" \"--prefix=/usr/local/share/vcpkg/installed/x64-osx/debug\" \"--bindir=\\${prefix}/../tools/icu/debug/bin\" \"--sbindir=\\${prefix}/../tools/icu/debug/sbin\" \"--libdir=\\${prefix}/lib\" \"--includedir=\\${prefix}/../include\" \"--datarootdir=\\${prefix}/share/icu\""
    Working Directory: /usr/local/share/vcpkg/buildtrees/icu/x64-osx-dbg
    Error code: 1
    See logs for more information:
      /usr/local/share/vcpkg/buildtrees/icu/config-x64-osx-dbg-config.log
      /usr/local/share/vcpkg/buildtrees/icu/config-x64-osx-dbg-out.log
      /usr/local/share/vcpkg/buildtrees/icu/config-x64-osx-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:838 (vcpkg_execute_required_process)
  ports/icu/portfile.cmake:54 (vcpkg_configure_make)
  scripts/ports.cmake:147 (include)

error: building icu:x64-osx failed with: BUILD_FAILED
retifrav commented 1 year ago

@xiaoyifang, it's the config-x64-osx-dbg-err.log file that contains the actual error.

xroot3 commented 1 year ago

On Windows10 ,I also build error,seem like the same . -- Configuring x64-windows-dbg CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message): Command failed: "C:/Program Files/vcpkg-master/downloads/tools/msys2/87962f0d86055c95/usr/bin/bash.exe" --noprofile --norc --debug -c "V=1 CPP='compile cl.exe -E' CC='compile cl.exe' CC_FOR_BUILD='compile cl.exe' CPP_FOR_BUILD='compile cl.exe -E' CXX_FOR_BUILD='compile cl.exe' CXX='compile cl.exe' RC='windres-rc rc.exe' WINDRES='windres-rc rc.exe' AR='ar-lib lib.exe' LD='link.exe -verbose' RANLIB=':' STRIP=':' NM='dumpbin.exe -symbols -headers' DLLTOOL='link.exe -verbose -dll' CCAS=':' AS=':' ./../src/c-73_1-src-3575e21c7c.clean/source/configure --build=x86_64-pc-mingw32 \"--enable-icu-build-win\" \"--disable-samples\" \"--disable-tests\" \"--disable-layoutex\" \"--enable-tools\" \"ac_cv_prog_ac_ct_STRIP=:\" \"gl_cv_double_slash_root=yes\" \"ac_cv_func_memmove=yes\" \"--disable-silent-rules\" \"--verbose\" \"--enable-shared\" \"--disable-static\" \"--enable-debug\" \"--disable-release\" \"--prefix=/C/Program Files/vcpkg-master/installed/x64-windows/debug\" \"--bindir=\${prefix}/../tools/icu/debug/bin\" \"--sbindir=\${prefix}/../tools/icu/debug/sbin\" \"--libdir=\${prefix}/lib\" \"--includedir=\${prefix}/../include\" \"--datarootdir=\${prefix}/share/icu\"" Working Directory: C:/Program Files/vcpkg-master/buildtrees/icu/x64-windows-dbg Error code: 1 See logs for more information: C:\Program Files\vcpkg-master\buildtrees\icu\config-x64-windows-dbg-config.log C:\Program Files\vcpkg-master\buildtrees\icu\config-x64-windows-dbg-out.log C:\Program Files\vcpkg-master\buildtrees\icu\config-x64-windows-dbg-err.log

Call Stack (most recent call first): scripts/cmake/vcpkg_configure_make.cmake:838 (vcpkg_execute_required_process) ports/icu/portfile.cmake:54 (vcpkg_configure_make) scripts/ports.cmake:168 (include) config-x64-windows-dbg-config.log config-x64-windows-dbg-err.log config-x64-windows-dbg-out.log

dg0yt commented 1 year ago

@xroot3 Choose a vcpkg installation path without special characters ' ' (and '+'). There are build system which cannot handle this well.


... --prefix=/C/Program Files/vcpkg-master/installed/x64-windows/debug ...
                       ^
dg0yt commented 11 months ago
configure:5186: error: Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root

vcpkg passes --host but not --build, and thus activates cross-compiling mode in configure, but vcpkg itself might consider this a native build. Normally this isn't a problem, but icu is special.

You might perhaps use a custom triplet file with

if(PORT STREQUAL "icu")
    set(VCPKG_CONFIGURE_MAKE_OPTIONS "--build=aarch64-unknown-linux-gnu")
endif()

so that it matches --host.

CC @Neumann-A for consideration for vcpkg-cmake.

github-actions[bot] commented 5 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.