microsoft / vcpkg

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

[icu] Build failure on arm64-osx #37013

Closed FledgeXu closed 8 months ago

FledgeXu commented 8 months ago

Package: icu[core,tools]:arm64-osx@74.1#1

Host Environment

To Reproduce

vcpkg install skia Failure logs

-- Using cached icu4c-74_1-src.tgz.
-- Cleaning sources at /Users/fledge/Developer/skiavcpkg/vcpkg/buildtrees/icu/src/c-74_1-src-8ca76704fa.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /Users/fledge/Developer/skiavcpkg/vcpkg/downloads/icu4c-74_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
-- Applying patch vcpkg-cross-data.patch
-- Applying patch darwin-rpath.patch
-- Using source at /Users/fledge/Developer/skiavcpkg/vcpkg/buildtrees/icu/src/c-74_1-src-8ca76704fa.clean
-- Found external ninja('1.11.1').
-- Getting CMake variables for arm64-osx-dbg
-- Getting CMake variables for arm64-osx-rel
-- Generating configure for arm64-osx
-- Finished generating configure for arm64-osx
-- Configuring arm64-osx-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: /bin/bash -c "V=1 ./../src/c-74_1-src-8ca76704fa.clean/source/configure  \"--enable-tools\" \"--disable-samples\" \"--disable-tests\" \"--disable-layoutex\" \"--disable-silent-rules\" \"--verbose\" \"--disable-shared\" \"--enable-static\" \"--enable-debug\" \"--disable-release\" \"--prefix=/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-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: /Users/fledge/Developer/skiavcpkg/vcpkg/buildtrees/icu/arm64-osx-dbg
    Error code: 1
    See logs for more information:
      /Users/fledge/Developer/skiavcpkg/vcpkg/buildtrees/icu/config-arm64-osx-dbg-config.log
      /Users/fledge/Developer/skiavcpkg/vcpkg/buildtrees/icu/config-arm64-osx-dbg-out.log
      /Users/fledge/Developer/skiavcpkg/vcpkg/buildtrees/icu/config-arm64-osx-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_make.cmake:862 (vcpkg_execute_required_process)
  ports/icu/portfile.cmake:66 (vcpkg_configure_make)
  scripts/ports.cmake:170 (include)
/Users/fledge/Developer/skiavcpkg/vcpkg/buildtrees/icu/config-arm64-osx-dbg-err.log ``` configure: WARNING: unrecognized options: --disable-silent-rules configure: error: 'autoconf-archive' is missing ```
/Users/fledge/Developer/skiavcpkg/vcpkg/buildtrees/icu/config-arm64-osx-dbg-out.log ``` checking for ICU version numbers... release 74.1, library 74.1, unicode version 15.1 checking build system type... aarch64-apple-darwin23.3.0 checking host system type... aarch64-apple-darwin23.3.0 checking whether to build debug libraries... yes checking whether to build release libraries... no 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... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g accepts -g... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g option to enable C11 features... none needed checking whether the compiler supports GNU C++... yes checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ accepts -g... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ option to enable C++11 features... -std=gnu++11 checking pkg-config is at least version 0.20... yes checking for icu-le-hb... no checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -E checking for a BSD-compatible install... /opt/homebrew/bin/ginstall -c ```
/Users/fledge/Developer/skiavcpkg/vcpkg/buildtrees/icu/config-arm64-osx-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 74.1, which was generated by GNU Autoconf 2.72. Invocation command line was $ ./../src/c-74_1-src-8ca76704fa.clean/source/configure --enable-tools --disable-samples --disable-tests --disable-layoutex --disable-silent-rules --verbose --disable-shared --enable-static --enable-debug --disable-release --prefix=/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/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 = Fledges-MacBook-Pro.local uname -m = arm64 uname -r = 23.3.0 uname -s = Darwin uname -v = Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020 /usr/bin/uname -p = arm /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020 Kernel configured for up to 12 processors. 12 processors are physically available. 12 processors are logically available. Processor type: arm64e (ARM64E) Processors active: 0 1 2 3 4 5 6 7 8 9 10 11 Primary memory available: 32.00 gigabytes Default processor set: 850 tasks, 5071 threads, 12 processors Load average: 3.47, Mach factor: 8.52 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /Users/fledge/.cargo/bin/ PATH: /Users/fledge/.local/bin/ PATH: /Users/fledge/.local/bin/depot_tools/ PATH: /Users/fledge/.opam/coq-sf/bin/ PATH: /Users/fledge/.sdkman/candidates/java/current/bin/ PATH: /Users/fledge/.local/share/zinit/polaris/bin/ PATH: /opt/homebrew/bin/ PATH: /opt/homebrew/sbin/ PATH: /usr/local/bin/ PATH: /System/Cryptexes/App/usr/bin/ PATH: /usr/bin/ PATH: /bin/ PATH: /usr/sbin/ PATH: /sbin/ PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin/ PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin/ PATH: /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin/ PATH: /Library/Apple/usr/bin/ PATH: /Users/fledge/.cargo/bin/ PATH: /Users/fledge/.orbstack/bin/ PATH: /Users/fledge/Developer/plan9/plan9port/bin/ PATH: /opt/homebrew/opt/fzf/bin/ PATH: /Applications/Visual Studio Code.app/Contents/Resources/app/bin/ PATH: /opt/homebrew/bin/ PATH: /opt/homebrew/bin/ ## ----------- ## ## Core tests. ## ## ----------- ## configure:3148: looking for aux files: install-sh config.guess config.sub configure:3161: trying ./../src/c-74_1-src-8ca76704fa.clean/source/ configure:3172: ./../src/c-74_1-src-8ca76704fa.clean/source/install-sh found configure:3190: ./../src/c-74_1-src-8ca76704fa.clean/source/config.guess found configure:3190: ./../src/c-74_1-src-8ca76704fa.clean/source/config.sub found configure:3331: checking for ICU version numbers configure:3364: result: release 74.1, library 74.1, unicode version 15.1 configure:3377: checking build system type configure:3393: result: aarch64-apple-darwin23.3.0 configure:3413: checking host system type configure:3428: result: aarch64-apple-darwin23.3.0 configure:3504: checking whether to build debug libraries configure:3517: result: yes configure:3522: checking whether to build release libraries configure:3535: result: no configure:3677: checking for C compiler version configure:3686: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g --version >&5 Apple clang version 15.0.0 (clang-1500.1.0.2.5) Target: arm64-apple-darwin23.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:3697: $? = 0 configure:3686: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -v >&5 Apple clang version 15.0.0 (clang-1500.1.0.2.5) Target: arm64-apple-darwin23.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin clang: warning: argument unused during compilation: '-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-fPIC' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-g' [-Wunused-command-line-argument] configure:3697: $? = 0 configure:3686: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:3697: $? = 1 configure:3686: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -qversion >&5 clang: error: unknown argument '-qversion'; did you mean '--version'? clang: error: no input files configure:3697: $? = 1 configure:3686: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -version >&5 clang: error: unknown argument '-version'; did you mean '--version'? clang: error: no input files configure:3697: $? = 1 configure:3717: checking whether the C compiler works configure:3739: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -fPIC -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -L/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c >&5 configure:3743: $? = 0 configure:3794: result: yes configure:3798: checking for C compiler default output file name configure:3800: result: a.out configure:3806: checking for suffix of executables configure:3813: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -o conftest -fPIC -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -L/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c >&5 configure:3817: $? = 0 configure:3841: result: configure:3865: checking whether we are cross compiling configure:3873: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -o conftest -fPIC -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -L/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c >&5 configure:3877: $? = 0 configure:3884: ./conftest configure:3888: $? = 0 configure:3903: result: no configure:3909: checking for suffix of object files configure:3932: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -c -fPIC -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c >&5 configure:3936: $? = 0 configure:3960: result: o configure:3964: checking whether the compiler supports GNU C configure:3984: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -c -fPIC -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c >&5 configure:3984: $? = 0 configure:3996: result: yes configure:4007: checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g accepts -g configure:4028: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -c -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c >&5 configure:4028: $? = 0 configure:4075: result: yes configure:4095: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g option to enable C11 features configure:4110: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -c -fPIC -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c >&5 configure:4110: $? = 0 configure:4129: result: none needed configure:4379: checking for C++ compiler version configure:4388: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ --version >&5 Apple clang version 15.0.0 (clang-1500.1.0.2.5) Target: arm64-apple-darwin23.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:4399: $? = 0 configure:4388: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -v >&5 Apple clang version 15.0.0 (clang-1500.1.0.2.5) Target: arm64-apple-darwin23.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:4399: $? = 0 configure:4388: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:4399: $? = 1 configure:4388: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -qversion >&5 clang: error: unknown argument '-qversion'; did you mean '--version'? clang: error: no input files configure:4399: $? = 1 configure:4403: checking whether the compiler supports GNU C++ configure:4423: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -c -fPIC -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.cpp >&5 configure:4423: $? = 0 configure:4435: result: yes configure:4446: checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ accepts -g configure:4467: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -c -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.cpp >&5 configure:4467: $? = 0 configure:4514: result: yes configure:4534: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ option to enable C++11 features configure:4549: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -c -fPIC -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.cpp >&5 conftest.cpp:55:3: error: "Compiler does not advertise C++11 conformance" # error "Compiler does not advertise C++11 conformance" ^ conftest.cpp:60:3: error: unknown type name 'constexpr' constexpr int get_val() { return 20; } ^ conftest.cpp:72:17: error: delegating constructors are permitted only in C++11 delegate(): delegate(2354) {} ^~~~~~~~ conftest.cpp:83:26: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions] virtual int getval() override final { return this->n * 2; } ^ conftest.cpp:83:35: warning: 'final' keyword is a C++11 extension [-Wc++11-extensions] virtual int getval() override final { return this->n * 2; } ^ conftest.cpp:90:16: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions] nocopy() = default; ^ conftest.cpp:91:29: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] nocopy(const nocopy&) = delete; ^ conftest.cpp:92:41: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] nocopy & operator=(const nocopy&) = delete; ^ conftest.cpp:104:25: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] template auto sum(V first) -> V ^ conftest.cpp:104:25: error: 'auto' not allowed in function return type template auto sum(V first) -> V ^~~~ conftest.cpp:104:42: error: expected ';' at end of declaration template auto sum(V first) -> V ^ ; conftest.cpp:104:43: error: cannot use arrow operator on a type template auto sum(V first) -> V ^ conftest.cpp:108:33: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template auto sum(V first, Args... rest) -> V ^ conftest.cpp:108:43: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] template auto sum(V first, Args... rest) -> V ^ conftest.cpp:108:43: error: 'auto' not allowed in function return type template auto sum(V first, Args... rest) -> V ^~~~ conftest.cpp:108:74: error: expected ';' at end of declaration template auto sum(V first, Args... rest) -> V ^ ; conftest.cpp:108:75: error: cannot use arrow operator on a type template auto sum(V first, Args... rest) -> V ^ conftest.cpp:132:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a1 = 6538; ^ conftest.cpp:133:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a2 = 48573953.4; ^ conftest.cpp:134:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a3 = "String literal"; ^ conftest.cpp:137:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for (auto i = a3; *i; ++i) { total += *i; } ^ conftest.cpp:153:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for (auto &x : array) { x += 23; } ^ conftest.cpp:153:16: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for (auto &x : array) { x += 23; } ^ conftest.cpp:158:17: error: expected expression assert (eval ([](int x) { return x*2; }, 21) == 42); ^ conftest.cpp:160:17: error: expected expression assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); ^ conftest.cpp:162:17: error: expected expression assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); ^ conftest.cpp:168:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a = sum(1); ^ conftest.cpp:168:12: error: no matching function for call to 'sum' auto a = sum(1); ^~~ conftest.cpp:169:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto b = sum(1, 2); ^ conftest.cpp:169:12: error: no matching function for call to 'sum' auto b = sum(1, 2); ^~~ conftest.cpp:170:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto c = sum(1.0, 2.0, 3.0); ^ conftest.cpp:170:12: error: no matching function for call to 'sum' auto c = sum(1.0, 2.0, 3.0); ^~~ conftest.cpp:175:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse] cxx11test::delegate d2(); ^~ conftest.cpp:175:25: note: remove parentheses to declare a variable cxx11test::delegate d2(); ^~ conftest.cpp:188:16: error: found '<::' after a template name which forms the digraph '<:' (aka '[') and a ':', did you mean '< ::'? test_template<::test_template> v(test_template(12)); ^~~ < :: conftest.cpp:188:36: error: a space is required between consecutive right angle brackets (use '> >') test_template<::test_template> v(test_template(12)); ^~ > > conftest.cpp:192:22: error: use of undeclared identifier 'u8' char const *utf8 = u8"UTF-8 string \u2500"; ^ conftest.cpp:192:24: error: expected ';' at end of declaration char const *utf8 = u8"UTF-8 string \u2500"; ^ ; fatal error: too many errors emitted, stopping now [-ferror-limit=] 18 warnings and 20 errors generated. configure:4549: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ICU" | #define PACKAGE_TARNAME "International Components for Unicode" | #define PACKAGE_VERSION "74.1" | #define PACKAGE_STRING "ICU 74.1" | #define PACKAGE_BUGREPORT "http://icu-project.org/bugs" | #define PACKAGE_URL "http://icu-project.org" | /* end confdefs.h. */ | | // Does the compiler advertise C++98 conformance? | #if !defined __cplusplus || __cplusplus < 199711L | # error "Compiler does not advertise C++98 conformance" | #endif | | // These inclusions are to reject old compilers that | // lack the unsuffixed header files. | #include | #include | | // and are *not* freestanding headers in C++98. | extern void assert (int); | namespace std { | extern int strcmp (const char *, const char *); | } | | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | using std::exception; | using std::strcmp; | | namespace { | | void test_exception_syntax() | { | try { | throw "test"; | } catch (const char *s) { | // Extra parentheses suppress a warning when building autoconf itself, | // due to lint rules shared with more typical C programs. | assert (!(strcmp) (s, "test")); | } | } | | template struct test_template | { | T const val; | explicit test_template(T t) : val(t) {} | template T add(U u) { return static_cast(u) + val; } | }; | | } // anonymous namespace | | | // Does the compiler advertise C++ 2011 conformance? | #if !defined __cplusplus || __cplusplus < 201103L | # error "Compiler does not advertise C++11 conformance" | #endif | | namespace cxx11test | { | constexpr int get_val() { return 20; } | | struct testinit | { | int i; | double d; | }; | | class delegate | { | public: | delegate(int n) : n(n) {} | delegate(): delegate(2354) {} | | virtual int getval() { return this->n; }; | protected: | int n; | }; | | class overridden : public delegate | { | public: | overridden(int n): delegate(n) {} | virtual int getval() override final { return this->n * 2; } | }; | | class nocopy | { | public: | nocopy(int i): i(i) {} | nocopy() = default; | nocopy(const nocopy&) = delete; | nocopy & operator=(const nocopy&) = delete; | private: | int i; | }; | | // for testing lambda expressions | template Ret eval(Fn f, Ret v) | { | return f(v); | } | | // for testing variadic templates and trailing return types | template auto sum(V first) -> V | { | return first; | } | template auto sum(V first, Args... rest) -> V | { | return first + sum(rest...); | } | } | | | int | main (int argc, char **argv) | { | int ok = 0; | | assert (argc); | assert (! argv[0]); | { | test_exception_syntax (); | test_template tt (2.0); | assert (tt.add (4) == 6.0); | assert (true && !false); | } | | | { | // Test auto and decltype | auto a1 = 6538; | auto a2 = 48573953.4; | auto a3 = "String literal"; | | int total = 0; | for (auto i = a3; *i; ++i) { total += *i; } | | decltype(a2) a4 = 34895.034; | } | { | // Test constexpr | short sa[cxx11test::get_val()] = { 0 }; | } | { | // Test initializer lists | cxx11test::testinit il = { 4323, 435234.23544 }; | } | { | // Test range-based for | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | for (auto &x : array) { x += 23; } | } | { | // Test lambda expressions | using cxx11test::eval; | assert (eval ([](int x) { return x*2; }, 21) == 42); | double d = 2.0; | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | assert (d == 5.0); | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | assert (d == 5.0); | } | { | // Test use of variadic templates | using cxx11test::sum; | auto a = sum(1); | auto b = sum(1, 2); | auto c = sum(1.0, 2.0, 3.0); | } | { | // Test constructor delegation | cxx11test::delegate d1; | cxx11test::delegate d2(); | cxx11test::delegate d3(45); | } | { | // Test override and final | cxx11test::overridden o1(55464); | } | { | // Test nullptr | char *c = nullptr; | } | { | // Test template brackets | test_template<::test_template> v(test_template(12)); | } | { | // Unicode literals | char const *utf8 = u8"UTF-8 string \u2500"; | char16_t const *utf16 = u"UTF-8 string \u2500"; | char32_t const *utf32 = U"UTF-32 string \u2500"; | } | | return ok; | } | configure:4549: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -std=gnu++11 -c -fPIC -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.cpp >&5 conftest.cpp:175:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse] cxx11test::delegate d2(); ^~ conftest.cpp:175:25: note: remove parentheses to declare a variable cxx11test::delegate d2(); ^~ 1 warning generated. configure:4549: $? = 0 configure:4571: result: -std=gnu++11 configure:4760: checking pkg-config is at least version 0.20 configure:4763: result: yes configure:4773: checking for icu-le-hb configure:4780: $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:4783: $? = 1 configure:4797: $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:4800: $? = 1 configure:4814: result: no No package 'icu-le-hb' found configure:4869: checking how to run the C preprocessor configure:4895: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -E -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c configure:4895: $? = 0 configure:4911: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -E -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. configure:4911: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ICU" | #define PACKAGE_TARNAME "International Components for Unicode" | #define PACKAGE_VERSION "74.1" | #define PACKAGE_STRING "ICU 74.1" | #define PACKAGE_BUGREPORT "http://icu-project.org/bugs" | #define PACKAGE_URL "http://icu-project.org" | /* end confdefs.h. */ | #include configure:4940: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -E configure:4954: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -E -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c configure:4954: $? = 0 configure:4970: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -E -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.c conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. configure:4970: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "ICU" | #define PACKAGE_TARNAME "International Components for Unicode" | #define PACKAGE_VERSION "74.1" | #define PACKAGE_STRING "ICU 74.1" | #define PACKAGE_BUGREPORT "http://icu-project.org/bugs" | #define PACKAGE_URL "http://icu-project.org" | /* end confdefs.h. */ | #include configure:5018: checking for a BSD-compatible install configure:5092: result: /opt/homebrew/bin/ginstall -c configure:5124: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -std=gnu++11 -o conftest -fPIC -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -L/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk conftest.cpp >&5 configure:5124: $? = 0 configure:5148: error: 'autoconf-archive' is missing ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=aarch64-apple-darwin23.3.0 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='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-fPIC -g' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-fPIC -g' ac_cv_env_CXX_set=set ac_cv_env_CXX_value=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ 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/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' 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=/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/debug/lib/pkgconfig/:/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/debug/share/pkgconfig/ ac_cv_env_PKG_CONFIG_set=set ac_cv_env_PKG_CONFIG_value=/opt/homebrew/bin/pkg-config ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=aarch64-apple-darwin23.3.0 ac_cv_objext=o ac_cv_path_install='/opt/homebrew/bin/ginstall -c' ac_cv_prog_CPP='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -E' ac_cv_prog_cc_c11= ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_cxx_cxx11=-std=gnu++11 ac_cv_prog_cxx_g=yes ac_cv_prog_cxx_stdcxx=-std=gnu++11 ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar' ARFLAGS='' CC='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g' CFLAGS='-fPIC -g' COMPILE_LINK_ENVVAR='' CPP='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -fPIC -g -E' CPPFLAGS='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' CXX='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -std=gnu++11' CXXFLAGS='-fPIC -g' DATA_PACKAGING_MODE='' DATA_TRUE='' DEFS='' DOXYGEN='' ECHO_C='\c' ECHO_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='\c' ICU_ECHO_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/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk' LIBCFLAGS='' LIBCXXFLAGS='' LIBOBJS='' LIBS='' LIB_M='' LIB_THREAD='' LIB_VERSION='74.1' LIB_VERSION_MAJOR='74' LTLIBOBJS='' OBJEXT='o' PACKAGE='icu' PACKAGE_BUGREPORT='http://icu-project.org/bugs' PACKAGE_NAME='ICU' PACKAGE_STRING='ICU 74.1' PACKAGE_TARNAME='International Components for Unicode' PACKAGE_URL='http://icu-project.org' PACKAGE_VERSION='74.1' PATH_SEPARATOR=':' PKG_CONFIG='/opt/homebrew/bin/pkg-config' PKG_CONFIG_LIBDIR='' PKG_CONFIG_PATH='/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/debug/lib/pkgconfig/:/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/debug/share/pkgconfig/' PLUGINS_TRUE='' PYTHON='/opt/homebrew/bin/python3' RANLIB='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib' SAMPLES_TRUE='' SED='' SHELL='/bin/sh' TESTS_TRUE='' TOOLS_TRUE='' UCLN_NO_AUTO_CLEANUP='' UCONFIG_CFLAGS='' UCONFIG_CPPFLAGS='' UCONFIG_CXXFLAGS='' UNICODE_VERSION='15.1' 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='' U_NL_LANGINFO_CODESET='' U_OVERRIDE_CXX_ALLOCATION='' U_TIMEZONE='' U_TZNAME='' U_TZSET='' VERSION='74.1' ac_ct_CC='' ac_ct_CXX='' bindir='${prefix}/../tools/icu/debug/bin' build='aarch64-apple-darwin23.3.0' build_alias='' build_cpu='aarch64' build_os='darwin23.3.0' build_vendor='apple' cross_buildroot='' cross_compiling='no' datadir='${datarootdir}' datarootdir='${prefix}/share/icu' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='aarch64-apple-darwin23.3.0' host_alias='' host_cpu='aarch64' host_os='darwin23.3.0' host_vendor='apple' 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='/Users/fledge/Developer/skiavcpkg/vcpkg/installed/arm64-osx/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 "74.1" #define PACKAGE_STRING "ICU 74.1" #define PACKAGE_BUGREPORT "http://icu-project.org/bugs" #define PACKAGE_URL "http://icu-project.org" configure: exit 1 ```
FledgeXu commented 8 months ago

Fixed: brew install autoconf-archive