This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.64. Invocation command line was $ /home/test/autobuild/run/instance-3/output/build/host-gdb-arc-2017.09-rc1-gdb/gdb/configure --srcdir=.././gdb --cache-file=./config.cache --prefix=/home/test/autobuild/run/instance-3/output/host --sysconfdir=/home/test/autobuild/run/instance-3/output/host/etc --localstatedir=/home/test/autobuild/run/instance-3/output/host/var --enable-shared --disable-static --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --disable-debug --with-xmlto=no --with-fop=no --disable-dependency-tracking --enable-static --without-uiout --disable-gdbtk --without-x --enable-threads --disable-werror --without-included-gettext --with-curses --disable-binutils --disable-ld --disable-gas --disable-tui --without-python --disable-sim --program-transform-name=s&^&arc-buildroot-linux-uclibc-& --disable-option-checking --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=arc-buildroot-linux-uclibc ## --------- ## ## Platform. ## ## --------- ## hostname = build uname -m = x86_64 uname -r = 4.4.0-97-generic uname -s = Linux uname -v = #120-Ubuntu SMP Tue Sep 19 17:28:18 UTC 2017 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /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/test/autobuild/run/instance-3/output/host/bin PATH: /home/test/autobuild/run/instance-3/output/host/sbin PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/local/games PATH: /usr/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:2684: creating cache ./config.cache configure:2763: checking whether to enable maintainer-specific portions of Makefiles configure:2772: result: no configure:2797: checking for x86_64-pc-linux-gnu-gcc configure:2824: result: /usr/bin/gcc configure:3093: checking for C compiler version configure:3102: /usr/bin/gcc --version >&5 gcc (Debian 4.7.2-5) 4.7.2 Copyright (C) 2012 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:3113: $? = 0 configure:3102: /usr/bin/gcc -v >&5 Using built-in specs. COLLECT_GCC=/usr/bin/gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-5) configure:3113: $? = 0 configure:3102: /usr/bin/gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3113: $? = 4 configure:3102: /usr/bin/gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3113: $? = 4 configure:3133: checking for C compiler default output file name configure:3155: /usr/bin/gcc -O2 -I/home/test/autobuild/run/instance-3/output/host/include -static-libstdc++ -static-libgcc -L/home/test/autobuild/run/instance-3/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-3/output/host/lib conftest.c >&5 configure:3159: $? = 0 configure:3196: result: a.out configure:3212: checking whether the C compiler works configure:3221: ./a.out configure:3225: $? = 0 configure:3240: result: yes configure:3247: checking whether we are cross compiling configure:3249: result: no configure:3252: checking for suffix of executables configure:3259: /usr/bin/gcc -o conftest -O2 -I/home/test/autobuild/run/instance-3/output/host/include -static-libstdc++ -static-libgcc -L/home/test/autobuild/run/instance-3/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-3/output/host/lib conftest.c >&5 configure:3263: $? = 0 configure:3285: result: configure:3291: checking for suffix of object files configure:3313: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:3317: $? = 0 configure:3338: result: o configure:3342: checking whether we are using the GNU C compiler configure:3361: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:3361: $? = 0 configure:3370: result: yes configure:3379: checking whether /usr/bin/gcc accepts -g configure:3399: /usr/bin/gcc -c -g conftest.c >&5 configure:3399: $? = 0 configure:3440: result: yes configure:3457: checking for /usr/bin/gcc option to accept ISO C89 configure:3521: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:3521: $? = 0 configure:3534: result: none needed configure:3666: checking for C++ compiler version configure:3675: /usr/bin/g++ --version >&5 g++ (Debian 4.7.2-5) 4.7.2 Copyright (C) 2012 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:3686: $? = 0 configure:3675: /usr/bin/g++ -v >&5 Using built-in specs. COLLECT_GCC=/usr/bin/g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-5) configure:3686: $? = 0 configure:3675: /usr/bin/g++ -V >&5 g++: error: unrecognized command line option '-V' g++: fatal error: no input files compilation terminated. configure:3686: $? = 4 configure:3675: /usr/bin/g++ -qversion >&5 g++: error: unrecognized command line option '-qversion' g++: fatal error: no input files compilation terminated. configure:3686: $? = 4 configure:3690: checking whether we are using the GNU C++ compiler configure:3709: /usr/bin/g++ -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.cpp >&5 configure:3709: $? = 0 configure:3718: result: yes configure:3727: checking whether /usr/bin/g++ accepts -g configure:3747: /usr/bin/g++ -c -g conftest.cpp >&5 configure:3747: $? = 0 configure:3788: result: yes configure:3818: checking how to run the C preprocessor configure:3849: /usr/bin/gcc -E conftest.c configure:3849: $? = 0 configure:3863: /usr/bin/gcc -E conftest.c conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:3863: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include configure:3888: result: /usr/bin/gcc -E configure:3908: /usr/bin/gcc -E conftest.c configure:3908: $? = 0 configure:3922: /usr/bin/gcc -E conftest.c conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory compilation terminated. configure:3922: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include configure:3951: checking for grep that handles long lines and -e configure:4009: result: /bin/grep configure:4014: checking for egrep configure:4076: result: /bin/grep -E configure:4081: checking for ANSI C header files configure:4101: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4101: $? = 0 configure:4174: /usr/bin/gcc -o conftest -O2 -I/home/test/autobuild/run/instance-3/output/host/include -static-libstdc++ -static-libgcc -L/home/test/autobuild/run/instance-3/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-3/output/host/lib conftest.c >&5 configure:4174: $? = 0 configure:4174: ./conftest configure:4174: $? = 0 configure:4185: result: yes configure:4198: checking for sys/types.h configure:4198: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4198: $? = 0 configure:4198: result: yes configure:4198: checking for sys/stat.h configure:4198: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4198: $? = 0 configure:4198: result: yes configure:4198: checking for stdlib.h configure:4198: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4198: $? = 0 configure:4198: result: yes configure:4198: checking for string.h configure:4198: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4198: $? = 0 configure:4198: result: yes configure:4198: checking for memory.h configure:4198: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4198: $? = 0 configure:4198: result: yes configure:4198: checking for strings.h configure:4198: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4198: $? = 0 configure:4198: result: yes configure:4198: checking for inttypes.h configure:4198: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4198: $? = 0 configure:4198: result: yes configure:4198: checking for stdint.h configure:4198: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4198: $? = 0 configure:4198: result: yes configure:4198: checking for unistd.h configure:4198: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4198: $? = 0 configure:4198: result: yes configure:4212: checking minix/config.h usability configure:4212: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 conftest.c:52:26: fatal error: minix/config.h: No such file or directory compilation terminated. configure:4212: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | #include configure:4212: result: no configure:4212: checking minix/config.h presence configure:4212: /usr/bin/gcc -E conftest.c conftest.c:19:26: fatal error: minix/config.h: No such file or directory compilation terminated. configure:4212: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | /* end confdefs.h. */ | #include configure:4212: result: no configure:4212: checking for minix/config.h configure:4212: result: no configure:4233: checking whether it is safe to define __EXTENSIONS__ configure:4251: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4251: $? = 0 configure:4258: result: yes configure:4299: checking build system type configure:4313: result: x86_64-pc-linux-gnu configure:4333: checking host system type configure:4346: result: x86_64-pc-linux-gnu configure:4366: checking target system type configure:4379: result: arc-buildroot-linux-uclibc configure:4418: checking for dlfcn.h configure:4418: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4418: $? = 0 configure:4418: result: yes configure:4431: checking for windows.h configure:4431: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 conftest.c:59:21: fatal error: windows.h: No such file or directory compilation terminated. configure:4431: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | #include | #ifdef HAVE_SYS_TYPES_H | # include | #endif | #ifdef HAVE_SYS_STAT_H | # include | #endif | #ifdef STDC_HEADERS | # include | # include | #else | # ifdef HAVE_STDLIB_H | # include | # endif | #endif | #ifdef HAVE_STRING_H | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | # include | # endif | # include | #endif | #ifdef HAVE_STRINGS_H | # include | #endif | #ifdef HAVE_INTTYPES_H | # include | #endif | #ifdef HAVE_STDINT_H | # include | #endif | #ifdef HAVE_UNISTD_H | # include | #endif | | #include configure:4431: result: no configure:4458: checking for library containing dlopen configure:4489: /usr/bin/gcc -o conftest -O2 -I/home/test/autobuild/run/instance-3/output/host/include -static-libstdc++ -static-libgcc -L/home/test/autobuild/run/instance-3/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-3/output/host/lib conftest.c >&5 /tmp/ccaxQYMB.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `dlopen' collect2: error: ld returned 1 exit status configure:4489: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char dlopen (); | int | main () | { | return dlopen (); | ; | return 0; | } configure:4489: /usr/bin/gcc -o conftest -O2 -I/home/test/autobuild/run/instance-3/output/host/include -static-libstdc++ -static-libgcc -L/home/test/autobuild/run/instance-3/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-3/output/host/lib conftest.c -ldl >&5 configure:4489: $? = 0 configure:4506: result: -ldl configure:4537: checking for special C compiler options needed for large files configure:4582: result: no configure:4588: checking for _FILE_OFFSET_BITS value needed for large files configure:4613: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4613: $? = 0 configure:4645: result: no configure:4732: checking for /usr/bin/gcc option to accept ANSI C configure:4790: /usr/bin/gcc -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.c >&5 configure:4790: $? = 0 configure:4800: result: none needed configure:4970: checking whether /usr/bin/g++ supports C++11 features by default configure:5264: /usr/bin/g++ -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.cpp >&5 conftest.cpp:36:2: error: #error "This is not a C++11 compiler" configure:5264: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:5271: result: no configure:5280: checking whether /usr/bin/g++ supports C++11 features with -std=gnu++11 configure:5576: /usr/bin/g++ -std=gnu++11 -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.cpp >&5 conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1>': conftest.cpp:274:25: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<23>': conftest.cpp:275:26: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<23>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1, 2>': conftest.cpp:276:28: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1, 2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<1, 2>::value' conftest.cpp:276:30: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 5, 11>': conftest.cpp:277:32: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 11>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:277:34: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<5, 11>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:277:34: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>': conftest.cpp:278:42: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 7, 11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<7, 11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<13>::value' has no initializer configure:5576: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:5585: result: no configure:5280: checking whether /usr/bin/g++ supports C++11 features with -std=gnu++0x configure:5576: /usr/bin/g++ -std=gnu++0x -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.cpp >&5 conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1>': conftest.cpp:274:25: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<23>': conftest.cpp:275:26: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<23>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1, 2>': conftest.cpp:276:28: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1, 2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<1, 2>::value' conftest.cpp:276:30: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 5, 11>': conftest.cpp:277:32: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 11>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:277:34: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<5, 11>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:277:34: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>': conftest.cpp:278:42: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 7, 11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<7, 11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<13>::value' has no initializer configure:5576: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:5585: result: no configure:5598: checking whether /usr/bin/g++ supports C++11 features with -std=c++11 configure:5894: /usr/bin/g++ -std=c++11 -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.cpp >&5 conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1>': conftest.cpp:274:25: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<23>': conftest.cpp:275:26: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<23>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1, 2>': conftest.cpp:276:28: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1, 2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<1, 2>::value' conftest.cpp:276:30: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 5, 11>': conftest.cpp:277:32: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 11>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:277:34: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<5, 11>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:277:34: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>': conftest.cpp:278:42: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 7, 11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<7, 11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<13>::value' has no initializer configure:5894: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:5903: result: no configure:5598: checking whether /usr/bin/g++ supports C++11 features with -std=c++0x configure:5894: /usr/bin/g++ -std=c++0x -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.cpp >&5 conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1>': conftest.cpp:274:25: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<23>': conftest.cpp:275:26: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<23>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<1, 2>': conftest.cpp:276:28: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<1, 2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<1, 2>::value' conftest.cpp:276:30: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 5, 11>': conftest.cpp:277:32: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 11>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:277:34: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<5, 11>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<5, 5, 11>::value' conftest.cpp:277:34: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>': conftest.cpp:278:42: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>': conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<5, 7, 11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<5, 7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<7, 11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<7, 11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<11, 13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<11, 13>::value' has no initializer conftest.cpp: In instantiation of 'struct cxx11::test_variadic_templates::sum<13>': conftest.cpp:264:57: recursively required from 'constexpr cxx11::test_variadic_templates::sum<3, 5, 7, 11, 13>::value' conftest.cpp:264:57: required from 'constexpr cxx11::test_variadic_templates::sum<2, 3, 5, 7, 11, 13>::value' conftest.cpp:278:44: required from here conftest.cpp:264:57: error: declaration of 'constexpr const auto cxx11::test_variadic_templates::sum<13>::value' has no initializer configure:5894: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:5903: result: no configure:5598: checking whether /usr/bin/g++ supports C++11 features with +std=c++11 configure:5894: /usr/bin/g++ +std=c++11 -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.cpp >&5 g++: error: +std=c++11: No such file or directory configure:5894: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:5903: result: no configure:5598: checking whether /usr/bin/g++ supports C++11 features with -h std=c++11 configure:5894: /usr/bin/g++ -h std=c++11 -c -O2 -I/home/test/autobuild/run/instance-3/output/host/include conftest.cpp >&5 g++: error: unrecognized option '-h' configure:5894: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define __EXTENSIONS__ 1 | #define _ALL_SOURCE 1 | #define _GNU_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define _TANDEM_SOURCE 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | | | // If the compiler admits that it is not ready for C++11, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201103L | | #error "This is not a C++11 compiler" | | #else | | namespace cxx11 | { | | namespace test_static_assert | { | | template | struct check | { | static_assert(sizeof(int) <= sizeof(T), "not big enough"); | }; | | } | | namespace test_final_override | { | | struct Base | { | virtual void f() {} | }; | | struct Derived : public Base | { | virtual void f() override {} | }; | | } | | namespace test_double_right_angle_brackets | { | | template < typename T > | struct check {}; | | typedef check single_type; | typedef check> double_type; | typedef check>> triple_type; | typedef check>>> quadruple_type; | | } | | namespace test_decltype | { | | int | f() | { | int a = 1; | decltype(a) b = 2; | return a + b; | } | | } | | namespace test_type_deduction | { | | template < typename T1, typename T2 > | struct is_same | { | static const bool value = false; | }; | | template < typename T > | struct is_same | { | static const bool value = true; | }; | | template < typename T1, typename T2 > | auto | add(T1 a1, T2 a2) -> decltype(a1 + a2) | { | return a1 + a2; | } | | int | test(const int c, volatile int v) | { | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == false, ""); | auto ac = c; | auto av = v; | auto sumi = ac + av + 'x'; | auto sumf = ac + av + 1.0; | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == true, ""); | static_assert(is_same::value == false, ""); | static_assert(is_same::value == true, ""); | return (sumf > 0.0) ? sumi : add(c, v); | } | | } | | namespace test_noexcept | { | | int f() { return 0; } | int g() noexcept { return 0; } | | static_assert(noexcept(f()) == false, ""); | static_assert(noexcept(g()) == true, ""); | | } | | namespace test_constexpr | { | | template < typename CharT > | unsigned long constexpr | strlen_c_r(const CharT *const s, const unsigned long acc) noexcept | { | return *s ? strlen_c_r(s + 1, acc + 1) : acc; | } | | template < typename CharT > | unsigned long constexpr | strlen_c(const CharT *const s) noexcept | { | return strlen_c_r(s, 0UL); | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("1") == 1UL, ""); | static_assert(strlen_c("example") == 7UL, ""); | static_assert(strlen_c("another\0example") == 7UL, ""); | | } | | namespace test_rvalue_references | { | | template < int N > | struct answer | { | static constexpr int value = N; | }; | | answer<1> f(int&) { return answer<1>(); } | answer<2> f(const int&) { return answer<2>(); } | answer<3> f(int&&) { return answer<3>(); } | | void | test() | { | int i = 0; | const int c = 0; | static_assert(decltype(f(i))::value == 1, ""); | static_assert(decltype(f(c))::value == 2, ""); | static_assert(decltype(f(0))::value == 3, ""); | } | | } | | namespace test_uniform_initialization | { | | struct test | { | static const int zero {}; | static const int one {1}; | }; | | static_assert(test::zero == 0, ""); | static_assert(test::one == 1, ""); | | } | | namespace test_lambdas | { | | void | test1() | { | auto lambda1 = [](){}; | auto lambda2 = lambda1; | lambda1(); | lambda2(); | } | | int | test2() | { | auto a = [](int i, int j){ return i + j; }(1, 2); | auto b = []() -> int { return '0'; }(); | auto c = [=](){ return a + b; }(); | auto d = [&](){ return c; }(); | auto e = [a, &b](int x) mutable { | const auto identity = [](int y){ return y; }; | for (auto i = 0; i < a; ++i) | a += b--; | return x + identity(a + b); | }(0); | return a + b + c + d + e; | } | | int | test3() | { | const auto nullary = [](){ return 0; }; | const auto unary = [](int x){ return x; }; | using nullary_t = decltype(nullary); | using unary_t = decltype(unary); | const auto higher1st = [](nullary_t f){ return f(); }; | const auto higher2nd = [unary](nullary_t f1){ | return [unary, f1](unary_t f2){ return f2(unary(f1())); }; | }; | return higher1st(nullary) + higher2nd(nullary)(unary); | } | | } | | namespace test_variadic_templates | { | | template | struct sum; | | template | struct sum | { | static constexpr auto value = N0 + sum::value; | }; | | template <> | struct sum<> | { | static constexpr auto value = 0; | }; | | static_assert(sum<>::value == 0, ""); | static_assert(sum<1>::value == 1, ""); | static_assert(sum<23>::value == 23, ""); | static_assert(sum<1, 2>::value == 3, ""); | static_assert(sum<5, 5, 11>::value == 21, ""); | static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); | | } | | // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae | // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function | // because of this. | namespace test_template_alias_sfinae | { | | struct foo {}; | | template | using member = typename T::member_type; | | template | void func(...) {} | | template | void func(member*) {} | | void test(); | | void test() { func(0); } | | } | | } // namespace cxx11 | | #endif // __cplusplus >= 201103L | | | configure:5903: result: no configure:5920: error: *** A compiler with support for C++11 language features is required. ## ---------------- ## ## 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=/usr/bin/gcc ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O2 -I/home/test/autobuild/run/instance-3/output/host/include' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-O2 -I/home/test/autobuild/run/instance-3/output/host/include' ac_cv_env_CXX_set=set ac_cv_env_CXX_value=/usr/bin/g++ ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-static-libstdc++ -static-libgcc -L/home/test/autobuild/run/instance-3/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-3/output/host/lib' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_MAKEINFOFLAGS_set= ac_cv_env_MAKEINFOFLAGS_value= ac_cv_env_MAKEINFO_set=set ac_cv_env_MAKEINFO_value='true --split-size=5000000' ac_cv_env_XMKMF_set= ac_cv_env_XMKMF_value= ac_cv_env_YACC_set=set ac_cv_env_YACC_value='bison -y' ac_cv_env_YFLAGS_set= ac_cv_env_YFLAGS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=x86_64-pc-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=x86_64-pc-linux-gnu ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=arc-buildroot-linux-uclibc ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_minix_config_h=no ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_header_windows_h=no ac_cv_host=x86_64-pc-linux-gnu ac_cv_objext=o ac_cv_path_EGREP='/bin/grep -E' ac_cv_path_GREP=/bin/grep ac_cv_prog_CC=/usr/bin/gcc ac_cv_prog_CPP='/usr/bin/gcc -E' ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_safe_to_define___extensions__=yes ac_cv_search_dlopen=-ldl ac_cv_sys_file_offset_bits=no ac_cv_sys_largefile_CC=no ac_cv_target=arc-buildroot-linux-uclibc am_cv_prog_cc_stdc= ax_cv_cxx_compile_cxx11=no ax_cv_cxx_compile_cxx11__h_std_cpp11=no ax_cv_cxx_compile_cxx11__std_cpp0x=no ax_cv_cxx_compile_cxx11__std_cpp11=no ax_cv_cxx_compile_cxx11__std_gnupp0x=no ax_cv_cxx_compile_cxx11__std_gnupp11=no ax_cv_cxx_compile_cxx11_pstd_cpp11=no ## ----------------- ## ## Output variables. ## ## ----------------- ## ALLOCA='' AR='/usr/bin/ar' AWK='mawk' CATALOGS='' CATOBJEXT='' CC='/usr/bin/gcc' CCDEPMODE='' CFLAGS='-O2 -I/home/test/autobuild/run/instance-3/output/host/include' CONFIG_ALL='' CONFIG_CLEAN='' CONFIG_DEPS='' CONFIG_INSTALL='' CONFIG_LDFLAGS='' CONFIG_OBS='' CONFIG_SRCS='' CONFIG_UNINSTALL='' CPP='/usr/bin/gcc -E' CPPFLAGS='' CXX='/usr/bin/g++' CXXFLAGS='-O2 -I/home/test/autobuild/run/instance-3/output/host/include' CXX_DIALECT='' DATADIRNAME='' DEBUGDIR='' DEFS='' DEPDIR='' DLLTOOL='dlltool' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/bin/grep -E' ENABLE_CFLAGS='' EXEEXT='' GCORE_TRANSFORM_NAME='' GDBTKLIBS='' GDBTK_CFLAGS='' GDBTK_SRC_DIR='' GDB_DATADIR='' GDB_NM_FILE='' GDB_TRANSFORM_NAME='' GENCAT='' GMSGFMT='' GNULIB_STDINT_H='' GREP='/bin/grep' GUILD='' GUILD_TARGET_FLAG='' GUILE_CPPFLAGS='' GUILE_LIBS='' GUI_CFLAGS_X='' HAVE_CXX11='' HAVE_GUILE_FALSE='' HAVE_GUILE_TRUE='' HAVE_LIBBABELTRACE='' HAVE_LIBEXPAT='' HAVE_LIBIPT='' HAVE_LIBLZMA='' HAVE_NATIVE_GCORE_HOST='' HAVE_NATIVE_GCORE_TARGET='' HAVE_PYTHON_FALSE='' HAVE_PYTHON_TRUE='' INCINTL='' INSTALL_DATA='/usr/bin/install -c -m 644' INSTALL_PROGRAM='/usr/bin/install -c' INSTALL_SCRIPT='/usr/bin/install -c' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' INSTOBJEXT='' JIT_READER_DIR='' LDFLAGS='-static-libstdc++ -static-libgcc -L/home/test/autobuild/run/instance-3/output/host/lib -Wl,-rpath,/home/test/autobuild/run/instance-3/output/host/lib' LIBBABELTRACE='' LIBEXPAT='' LIBGUI='' LIBICONV='' LIBINTL='' LIBINTL_DEP='' LIBIPT='' LIBLZMA='' LIBOBJS='' LIBS='-ldl ' LN_S='' LOADLIBES='' LTLIBBABELTRACE='' LTLIBEXPAT='' LTLIBICONV='' LTLIBIPT='' LTLIBLZMA='' LTLIBOBJS='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='true --split-size=5000000' MAKEINFOFLAGS='' MAKEINFO_EXTRA_FLAGS='' MH_CFLAGS='' MIG='' NATDEPFILES='' NAT_CDEPS='' NAT_FILE='' NAT_GENERATED_FILES='' OBJEXT='o' PACKAGE='' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PKGVERSION='' POSUB='' PROFILE_CFLAGS='' PYTHON_CFLAGS='' PYTHON_CPPFLAGS='' PYTHON_LIBS='' RANLIB='/usr/bin/ranlib' RDYNAMIC='' READLINE='' READLINE_CFLAGS='' READLINE_DEPS='' READLINE_TEXI_INCFLAG='' REPORT_BUGS_TEXI='' REPORT_BUGS_TO='' SER_HARDWIRE='' SHELL='/bin/bash' SIM='' SIM_OBS='' STRIP='' SYSTEM_GDBINIT='' TARGET_OBS='' TARGET_PTR='' TARGET_SYSTEM_ROOT='' TCL_BIN_DIR='' TCL_DEPS='' TCL_INCLUDE='' TCL_LIBRARY='' TCL_LIB_FILE='' TCL_LIB_FLAG='' TCL_LIB_SPEC='' TCL_PATCH_LEVEL='' TCL_SRC_DIR='' TCL_STUB_LIB_FILE='' TCL_STUB_LIB_FLAG='' TCL_STUB_LIB_SPEC='' TCL_VERSION='' TK_BIN_DIR='' TK_DEPS='' TK_INCLUDE='' TK_LIBRARY='' TK_LIB_FILE='' TK_LIB_FLAG='' TK_LIB_SPEC='' TK_SRC_DIR='' TK_STUB_LIB_FILE='' TK_STUB_LIB_FLAG='' TK_STUB_LIB_SPEC='' TK_VERSION='' TK_XINCLUDES='' USE_NLS='' WARN_CFLAGS='' WERROR_CFLAGS='' WIN32LDAPP='' WIN32LIBS='' WINDRES='windres' XGETTEXT='' XMKMF='' XM_CLIBS='' XSLTPROC='' X_CFLAGS='' X_LDFLAGS='' X_LIBS='' YACC='bison -y' YFLAGS='' ac_ct_CC='' ac_ct_CXX='' am__leading_dot='' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='x86_64-pc-linux-gnu' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='NONE' host='x86_64-pc-linux-gnu' host_alias='x86_64-pc-linux-gnu' host_cpu='x86_64' host_os='linux-gnu' host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/test/autobuild/run/instance-3/output/build/host-gdb-arc-2017.09-rc1-gdb/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='/home/test/autobuild/run/instance-3/output/host/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' pkg_config_prog_path='' prefix='/home/test/autobuild/run/instance-3/output/host' program_transform_name='s&^&arc-buildroot-linux-uclibc-&' psdir='${docdir}' python_prog_path='' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' subdirs='' sysconfdir='/home/test/autobuild/run/instance-3/output/host/etc' target='arc-buildroot-linux-uclibc' target_alias='arc-buildroot-linux-uclibc' target_cpu='arc' target_os='linux-uclibc' target_subdir='' target_vendor='buildroot' zlibdir='' zlibinc='' ## ------------------- ## ## File substitutions. ## ## ------------------- ## nat_makefile_frag='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define __EXTENSIONS__ 1 #define _ALL_SOURCE 1 #define _GNU_SOURCE 1 #define _POSIX_PTHREAD_SEMANTICS 1 #define _TANDEM_SOURCE 1 #define HAVE_DLFCN_H 1 configure: exit 1