Closed xiaozhuai closed 1 year ago
We should explicitly point out the error that autoconf-archive is not installed
By checking if autoconf-archive
is installed or by better highlighting the error?
By checking if
autoconf-archive
is installed or by better highlighting the error?
Yes, we should point out this on stdout, not in config-x64-osx-dbg-config.log
@xiaozhuai Thanks for posting this issue, I will submit a PR to fix this.
Describe the bug Build error
Environment
To Reproduce Steps to reproduce the behavior:
Failure logs
config-x64-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 72.1, which was generated by GNU Autoconf 2.71. Invocation command line was $ ./../src/c-72_1-src-507f6288e7.clean/source/configure --disable-samples --disable-tests --disable-layoutex --disable-silent-rules --verbose --disable-shared --enable-static --enable-debug --disable-release --prefix=/usr/local/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' ## --------- ## ## Platform. ## ## --------- ## hostname = xiaozhuai-master.local uname -m = x86_64 uname -r = 21.6.0 uname -s = Darwin uname -v = Darwin Kernel Version 21.6.0: Sun Nov 6 23:31:16 PST 2022; root:xnu-8020.240.14~1/RELEASE_X86_64 /usr/bin/uname -p = i386 /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 21.6.0: Sun Nov 6 23:31:16 PST 2022; root:xnu-8020.240.14~1/RELEASE_X86_64 Kernel configured for up to 16 processors. 8 processors are physically available. 16 processors are logically available. Processor type: x86_64h (Intel x86-64h Haswell) Processors active: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Primary memory available: 32.00 gigabytes Default processor set: 634 tasks, 3381 threads, 16 processors Load average: 2.62, Mach factor: 13.49 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/vcpkg/ PATH: /usr/local/opt/gnu-tar/libexec/gnubin/ PATH: /usr/local/opt/coreutils/libexec/gnubin/ PATH: /Users/xiaozhuai/.nvm/versions/node/v16.19.0/bin/ PATH: /Users/xiaozhuai/go/bin/ PATH: /Users/xiaozhuai/.cargo/bin/ PATH: /Users/xiaozhuai/.local/bin/ PATH: /usr/local/sbin/ PATH: /usr/local/bin/ PATH: /usr/bin/ PATH: /bin/ PATH: /usr/sbin/ PATH: /sbin/ PATH: /opt/X11/bin/ PATH: /Library/Apple/usr/bin/ PATH: /Applications/Wireshark.app/Contents/MacOS/ PATH: /Users/xiaozhuai/Android/sdk/platform-tools/ PATH: /Users/xiaozhuai/Android/sdk/tools/ PATH: /Users/xiaozhuai/Android/sdk/tools/bin/ PATH: /Users/xiaozhuai/Android/sdk/build-tools/29.0.2/ PATH: /Applications/010 Editor.app/Contents/CmdLine/ PATH: /usr/local/bin/ PATH: /usr/local/bin/ ## ----------- ## ## Core tests. ## ## ----------- ## configure:3118: looking for aux files: install-sh config.guess config.sub configure:3131: trying ./../src/c-72_1-src-507f6288e7.clean/source/ configure:3142: ./../src/c-72_1-src-507f6288e7.clean/source/install-sh found configure:3160: ./../src/c-72_1-src-507f6288e7.clean/source/config.guess found configure:3160: ./../src/c-72_1-src-507f6288e7.clean/source/config.sub found configure:3300: checking for ICU version numbers configure:3333: result: release 72.1, library 72.1, unicode version 15.0 configure:3346: checking build system type configure:3361: result: x86_64-apple-darwin21.6.0 configure:3381: checking host system type configure:3395: result: x86_64-apple-darwin21.6.0 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:3640: checking for C compiler version configure:3649: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g --version >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:3660: $? = 0 configure:3649: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -v >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.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/MacOSX13.1.sdk' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-fPIC' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-mmacosx-version-min=12.6' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-g' [-Wunused-command-line-argument] configure:3660: $? = 0 configure:3649: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:3660: $? = 1 configure:3649: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -qversion >&5 clang: error: unknown argument '-qversion'; did you mean '--version'? clang: error: no input files configure:3660: $? = 1 configure:3649: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -version >&5 clang: error: unknown argument '-version'; did you mean '--version'? clang: error: no input files configure:3660: $? = 1 configure:3680: checking whether the C compiler works configure:3702: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -fPIC -mmacosx-version-min=12.6 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -L/usr/local/vcpkg/installed/x64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -o conftest -fPIC -mmacosx-version-min=12.6 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -L/usr/local/vcpkg/installed/x64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 conftest.c >&5 configure:3778: $? = 0 configure:3801: result: configure:3823: checking whether we are cross compiling configure:3831: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -o conftest -fPIC -mmacosx-version-min=12.6 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -L/usr/local/vcpkg/installed/x64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 conftest.c >&5 configure:3835: $? = 0 configure:3842: ./conftest configure:3846: $? = 0 configure:3861: result: no configure:3866: checking for suffix of object files configure:3889: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -c -fPIC -mmacosx-version-min=12.6 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk conftest.c >&5 configure:3893: $? = 0 configure:3915: result: o configure:3919: checking whether the compiler supports GNU C configure:3939: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -c -fPIC -mmacosx-version-min=12.6 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk conftest.c >&5 configure:3939: $? = 0 configure:3949: result: yes configure:3960: checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g accepts -g configure:3981: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -c -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk conftest.c >&5 configure:3981: $? = 0 configure:4025: result: yes configure:4045: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g option to enable C11 features configure:4060: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -c -fPIC -mmacosx-version-min=12.6 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk conftest.c >&5 configure:4060: $? = 0 configure:4078: result: none needed configure:4318: checking for C++ compiler version configure:4327: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ --version >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:4338: $? = 0 configure:4327: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -v >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:4338: $? = 0 configure:4327: /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:4338: $? = 1 configure:4327: /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:4338: $? = 1 configure:4342: checking whether the compiler supports GNU C++ configure:4362: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -c -fPIC -mmacosx-version-min=12.6 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk conftest.cpp >&5 configure:4362: $? = 0 configure:4372: result: yes configure:4383: checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ accepts -g configure:4404: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -c -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk conftest.cpp >&5 configure:4404: $? = 0 configure:4448: result: yes configure:4468: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ option to enable C++11 features configure:4483: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -c -fPIC -mmacosx-version-min=12.6 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.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:4483: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ICU"
| #define PACKAGE_TARNAME "International Components for Unicode"
| #define PACKAGE_VERSION "72.1"
| #define PACKAGE_STRING "ICU 72.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: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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -E -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk conftest.c
configure:4821: $? = 0
configure:4836: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -E -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include
^~~~~~~~~~~~~~~~~~
1 error generated.
configure:4836: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ICU"
| #define PACKAGE_TARNAME "International Components for Unicode"
| #define PACKAGE_VERSION "72.1"
| #define PACKAGE_STRING "ICU 72.1"
| #define PACKAGE_BUGREPORT "http://icu-project.org/bugs"
| #define PACKAGE_URL "http://icu-project.org"
| /* end confdefs.h. */
| #include
configure:4863: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -E
configure:4877: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -E -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk conftest.c
configure:4877: $? = 0
configure:4892: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -E -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include
^~~~~~~~~~~~~~~~~~
1 error generated.
configure:4892: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ICU"
| #define PACKAGE_TARNAME "International Components for Unicode"
| #define PACKAGE_VERSION "72.1"
| #define PACKAGE_STRING "ICU 72.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/local/opt/coreutils/libexec/gnubin/install -c
configure:5043: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -o conftest -fPIC -mmacosx-version-min=12.6 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -L/usr/local/vcpkg/installed/x64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 conftest.cpp >&5
configure:5043: $? = 0
configure:5067: error: 'autoconf-archive' is missing
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin21.6.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/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-fPIC -mmacosx-version-min=12.6 -g'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-fPIC -mmacosx-version-min=12.6 -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/usr/local/vcpkg/installed/x64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6'
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=/usr/local/vcpkg/installed/x64-osx/debug/lib/pkgconfig/:/usr/local/vcpkg/installed/x64-osx/debug/share/pkgconfig/
ac_cv_env_PKG_CONFIG_set=set
ac_cv_env_PKG_CONFIG_value=/usr/local/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=x86_64-apple-darwin21.6.0
ac_cv_objext=o
ac_cv_path_install='/usr/local/opt/coreutils/libexec/gnubin/install -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/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -E'
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_g=yes
ac_cv_prog_cxx_stdcxx=
## ----------------- ##
## 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/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g'
CFLAGS='-fPIC -mmacosx-version-min=12.6 -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/MacOSX13.1.sdk -fPIC -mmacosx-version-min=12.6 -g -E'
CPPFLAGS='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk'
CXX='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++'
CXXFLAGS='-fPIC -mmacosx-version-min=12.6 -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/usr/local/vcpkg/installed/x64-osx/debug/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6'
LIBCFLAGS=''
LIBCXXFLAGS=''
LIBOBJS=''
LIBS=''
LIB_M=''
LIB_THREAD=''
LIB_VERSION='72.1'
LIB_VERSION_MAJOR='72'
LTLIBOBJS=''
OBJEXT='o'
PACKAGE='icu'
PACKAGE_BUGREPORT='http://icu-project.org/bugs'
PACKAGE_NAME='ICU'
PACKAGE_STRING='ICU 72.1'
PACKAGE_TARNAME='International Components for Unicode'
PACKAGE_URL='http://icu-project.org'
PACKAGE_VERSION='72.1'
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/local/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH='/usr/local/vcpkg/installed/x64-osx/debug/lib/pkgconfig/:/usr/local/vcpkg/installed/x64-osx/debug/share/pkgconfig/'
PLUGINS_TRUE=''
PYTHON='/usr/local/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.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=''
U_NL_LANGINFO_CODESET=''
U_OVERRIDE_CXX_ALLOCATION=''
U_TIMEZONE=''
U_TZNAME=''
U_TZSET=''
VERSION='72.1'
ac_ct_CC=''
ac_ct_CXX=''
bindir='${prefix}/../tools/icu/debug/bin'
build='x86_64-apple-darwin21.6.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin21.6.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='x86_64-apple-darwin21.6.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin21.6.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='/usr/local/vcpkg/installed/x64-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 "72.1"
#define PACKAGE_STRING "ICU 72.1"
#define PACKAGE_BUGREPORT "http://icu-project.org/bugs"
#define PACKAGE_URL "http://icu-project.org"
configure: exit 1
```
config-x64-osx-dbg-err.log
``` configure: WARNING: unrecognized options: --disable-silent-rules ```
Solved
Need to install
autoconf-archive
firstTODO
We should explicitly point out the error that
autoconf-archive
is not installed