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.69. Invocation command line was $ ./configure --enable-autogen --with-jemalloc-prefix=je_ --enable-prof ## --------- ## ## Platform. ## ## --------- ## hostname = localhost.localdomain uname -m = x86_64 uname -r = 3.10.0-957.el7.x86_64 uname -s = Linux uname -v = #1 SMP Thu Nov 8 23:39:32 UTC 2018 /usr/bin/uname -p = x86_64 /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /root/.vscode-server/bin/d2e414d9e4239a252d1ab117bd7067f125afd80a/bin PATH: /root/.vscode-server/bin/d2e414d9e4239a252d1ab117bd7067f125afd80a/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /root/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2662: checking for xsltproc configure:2693: result: false configure:2777: checking for gcc configure:2793: found /usr/bin/gcc configure:2804: result: gcc configure:3033: checking for C compiler version configure:3042: gcc --version >&5 gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39) Copyright (C) 2015 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:3053: $? = 0 configure:3042: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) configure:3053: $? = 0 configure:3042: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3053: $? = 4 configure:3042: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3053: $? = 4 configure:3073: checking whether the C compiler works configure:3095: gcc conftest.c >&5 configure:3099: $? = 0 configure:3147: result: yes configure:3150: checking for C compiler default output file name configure:3152: result: a.out configure:3158: checking for suffix of executables configure:3165: gcc -o conftest conftest.c >&5 configure:3169: $? = 0 configure:3191: result: configure:3213: checking whether we are cross compiling configure:3221: gcc -o conftest conftest.c >&5 configure:3225: $? = 0 configure:3232: ./conftest configure:3236: $? = 0 configure:3251: result: no configure:3256: checking for suffix of object files configure:3278: gcc -c conftest.c >&5 configure:3282: $? = 0 configure:3303: result: o configure:3307: checking whether we are using the GNU C compiler configure:3326: gcc -c conftest.c >&5 configure:3326: $? = 0 configure:3335: result: yes configure:3344: checking whether gcc accepts -g configure:3364: gcc -c -g conftest.c >&5 configure:3364: $? = 0 configure:3405: result: yes configure:3422: checking for gcc option to accept ISO C89 configure:3485: gcc -c conftest.c >&5 configure:3485: $? = 0 configure:3498: result: none needed configure:3563: checking whether compiler is cray configure:3583: gcc -c conftest.c >&5 conftest.c: In function 'main': conftest.c:15:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token int fail-1; ^ configure:3583: $? = 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. */ | | int | main () | { | | #ifndef _CRAYC | int fail-1; | #endif | | ; | return 0; | } configure:3590: result: no configure:3627: checking whether compiler supports -std=gnu11 configure:3658: gcc -c -std=gnu11 conftest.c >&5 configure:3658: $? = 0 configure:3660: result: yes configure:3742: checking whether compiler supports -Wall configure:3773: gcc -c -std=gnu11 -Wall conftest.c >&5 configure:3773: $? = 0 configure:3775: result: yes configure:3793: checking whether compiler supports -Wextra configure:3824: gcc -c -std=gnu11 -Wall -Wextra conftest.c >&5 configure:3824: $? = 0 configure:3826: result: yes configure:3844: checking whether compiler supports -Wshorten-64-to-32 configure:3875: gcc -c -std=gnu11 -Wall -Wextra -Wshorten-64-to-32 conftest.c >&5 gcc: error: unrecognized command line option '-Wshorten-64-to-32' configure:3875: $? = 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 JEMALLOC_HAS_RESTRICT 1 | /* end confdefs.h. */ | | | int | main () | { | | return 0; | | ; | return 0; | } configure:3881: result: no configure:3895: checking whether compiler supports -Wsign-compare configure:3926: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare conftest.c >&5 configure:3926: $? = 0 configure:3928: result: yes configure:3946: checking whether compiler supports -Wundef configure:3977: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef conftest.c >&5 configure:3977: $? = 0 configure:3979: result: yes configure:3997: checking whether compiler supports -Wno-format-zero-length configure:4028: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length conftest.c >&5 configure:4028: $? = 0 configure:4030: result: yes configure:4048: checking whether compiler supports -pipe configure:4079: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe conftest.c >&5 configure:4079: $? = 0 configure:4081: result: yes configure:4099: checking whether compiler supports -g3 configure:4130: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:4130: $? = 0 configure:4132: result: yes configure:4580: checking how to run the C preprocessor configure:4611: gcc -E conftest.c configure:4611: $? = 0 configure:4625: gcc -E conftest.c conftest.c:10:28: fatal error: ac_nonexistent.h: No such file or directory #include ^ compilation terminated. configure:4625: $? = 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 JEMALLOC_HAS_RESTRICT 1 | /* end confdefs.h. */ | #include configure:4650: result: gcc -E configure:4670: gcc -E conftest.c configure:4670: $? = 0 configure:4684: gcc -E conftest.c conftest.c:10:28: fatal error: ac_nonexistent.h: No such file or directory #include ^ compilation terminated. configure:4684: $? = 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 JEMALLOC_HAS_RESTRICT 1 | /* end confdefs.h. */ | #include configure:4847: checking for g++ configure:4863: found /usr/bin/g++ configure:4874: result: g++ configure:4901: checking for C++ compiler version configure:4910: g++ --version >&5 g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39) Copyright (C) 2015 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:4921: $? = 0 configure:4910: g++ -v >&5 Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) configure:4921: $? = 0 configure:4910: g++ -V >&5 g++: error: unrecognized command line option '-V' g++: fatal error: no input files compilation terminated. configure:4921: $? = 4 configure:4910: g++ -qversion >&5 g++: error: unrecognized command line option '-qversion' g++: fatal error: no input files compilation terminated. configure:4921: $? = 4 configure:4925: checking whether we are using the GNU C++ compiler configure:4944: g++ -c conftest.cpp >&5 configure:4944: $? = 0 configure:4953: result: yes configure:4962: checking whether g++ accepts -g configure:4982: g++ -c -g conftest.cpp >&5 configure:4982: $? = 0 configure:5023: result: yes configure:5054: checking whether g++ supports C++14 features by default configure:5468: g++ -c -g -O2 conftest.cpp >&5 conftest.cpp:21:2: error: #error "This is not a C++11 compiler" #error "This is not a C++11 compiler" ^ conftest.cpp:306:2: error: #error "This is not a C++14 compiler" #error "This is not a C++14 compiler" ^ configure:5468: $? = 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 JEMALLOC_HAS_RESTRICT 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 | | | | | // If the compiler admits that it is not ready for C++14, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201402L | | #error "This is not a C++14 compiler" | | #else | | namespace cxx14 | { | | namespace test_polymorphic_lambdas | { | | int | test() | { | const auto lambda = [](auto&&... args){ | const auto istiny = [](auto x){ | return (sizeof(x) == 1UL) ? 1 : 0; | }; | const int aretiny[] = { istiny(args)... }; | return aretiny[0]; | }; | return lambda(1, 1L, 1.0f, '1'); | } | | } | | namespace test_binary_literals | { | | constexpr auto ivii = 0b0000000000101010; | static_assert(ivii == 42, "wrong value"); | | } | | namespace test_generalized_constexpr | { | | template < typename CharT > | constexpr unsigned long | strlen_c(const CharT *const s) noexcept | { | auto length = 0UL; | for (auto p = s; *p; ++p) | ++length; | return length; | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("x") == 1UL, ""); | static_assert(strlen_c("test") == 4UL, ""); | static_assert(strlen_c("another\0test") == 7UL, ""); | | } | | namespace test_lambda_init_capture | { | | int | test() | { | auto x = 0; | const auto lambda1 = [a = x](int b){ return a + b; }; | const auto lambda2 = [a = lambda1(x)](){ return a; }; | return lambda2(); | } | | } | | namespace test_digit_seperators | { | | constexpr auto ten_million = 100'000'000; | static_assert(ten_million == 100000000, ""); | | } | | namespace test_return_type_deduction | { | | auto f(int& x) { return x; } | decltype(auto) g(int& x) { return x; } | | template < typename T1, typename T2 > | struct is_same | { | static constexpr auto value = false; | }; | | template < typename T > | struct is_same | { | static constexpr auto value = true; | }; | | int | test() | { | auto x = 0; | static_assert(is_same::value, ""); | static_assert(is_same::value, ""); | return x; | } | | } | | } // namespace cxx14 | | #endif // __cplusplus >= 201402L | | | configure:5475: result: no configure:5486: checking whether g++ supports C++14 features with -std=c++14 configure:5902: g++ -std=c++14 -c -g -O2 conftest.cpp >&5 g++: error: unrecognized command line option '-std=c++14' configure:5902: $? = 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 JEMALLOC_HAS_RESTRICT 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 | | | | | // If the compiler admits that it is not ready for C++14, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201402L | | #error "This is not a C++14 compiler" | | #else | | namespace cxx14 | { | | namespace test_polymorphic_lambdas | { | | int | test() | { | const auto lambda = [](auto&&... args){ | const auto istiny = [](auto x){ | return (sizeof(x) == 1UL) ? 1 : 0; | }; | const int aretiny[] = { istiny(args)... }; | return aretiny[0]; | }; | return lambda(1, 1L, 1.0f, '1'); | } | | } | | namespace test_binary_literals | { | | constexpr auto ivii = 0b0000000000101010; | static_assert(ivii == 42, "wrong value"); | | } | | namespace test_generalized_constexpr | { | | template < typename CharT > | constexpr unsigned long | strlen_c(const CharT *const s) noexcept | { | auto length = 0UL; | for (auto p = s; *p; ++p) | ++length; | return length; | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("x") == 1UL, ""); | static_assert(strlen_c("test") == 4UL, ""); | static_assert(strlen_c("another\0test") == 7UL, ""); | | } | | namespace test_lambda_init_capture | { | | int | test() | { | auto x = 0; | const auto lambda1 = [a = x](int b){ return a + b; }; | const auto lambda2 = [a = lambda1(x)](){ return a; }; | return lambda2(); | } | | } | | namespace test_digit_seperators | { | | constexpr auto ten_million = 100'000'000; | static_assert(ten_million == 100000000, ""); | | } | | namespace test_return_type_deduction | { | | auto f(int& x) { return x; } | decltype(auto) g(int& x) { return x; } | | template < typename T1, typename T2 > | struct is_same | { | static constexpr auto value = false; | }; | | template < typename T > | struct is_same | { | static constexpr auto value = true; | }; | | int | test() | { | auto x = 0; | static_assert(is_same::value, ""); | static_assert(is_same::value, ""); | return x; | } | | } | | } // namespace cxx14 | | #endif // __cplusplus >= 201402L | | | configure:5911: result: no configure:5486: checking whether g++ supports C++14 features with -std=c++0x configure:5902: g++ -std=c++0x -c -g -O2 conftest.cpp >&5 conftest.cpp:306:2: error: #error "This is not a C++14 compiler" #error "This is not a C++14 compiler" ^ configure:5902: $? = 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 JEMALLOC_HAS_RESTRICT 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 | | | | | // If the compiler admits that it is not ready for C++14, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201402L | | #error "This is not a C++14 compiler" | | #else | | namespace cxx14 | { | | namespace test_polymorphic_lambdas | { | | int | test() | { | const auto lambda = [](auto&&... args){ | const auto istiny = [](auto x){ | return (sizeof(x) == 1UL) ? 1 : 0; | }; | const int aretiny[] = { istiny(args)... }; | return aretiny[0]; | }; | return lambda(1, 1L, 1.0f, '1'); | } | | } | | namespace test_binary_literals | { | | constexpr auto ivii = 0b0000000000101010; | static_assert(ivii == 42, "wrong value"); | | } | | namespace test_generalized_constexpr | { | | template < typename CharT > | constexpr unsigned long | strlen_c(const CharT *const s) noexcept | { | auto length = 0UL; | for (auto p = s; *p; ++p) | ++length; | return length; | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("x") == 1UL, ""); | static_assert(strlen_c("test") == 4UL, ""); | static_assert(strlen_c("another\0test") == 7UL, ""); | | } | | namespace test_lambda_init_capture | { | | int | test() | { | auto x = 0; | const auto lambda1 = [a = x](int b){ return a + b; }; | const auto lambda2 = [a = lambda1(x)](){ return a; }; | return lambda2(); | } | | } | | namespace test_digit_seperators | { | | constexpr auto ten_million = 100'000'000; | static_assert(ten_million == 100000000, ""); | | } | | namespace test_return_type_deduction | { | | auto f(int& x) { return x; } | decltype(auto) g(int& x) { return x; } | | template < typename T1, typename T2 > | struct is_same | { | static constexpr auto value = false; | }; | | template < typename T > | struct is_same | { | static constexpr auto value = true; | }; | | int | test() | { | auto x = 0; | static_assert(is_same::value, ""); | static_assert(is_same::value, ""); | return x; | } | | } | | } // namespace cxx14 | | #endif // __cplusplus >= 201402L | | | configure:5911: result: no configure:5486: checking whether g++ supports C++14 features with +std=c++14 configure:5902: g++ +std=c++14 -c -g -O2 conftest.cpp >&5 g++: error: +std=c++14: No such file or directory configure:5902: $? = 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 JEMALLOC_HAS_RESTRICT 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 | | | | | // If the compiler admits that it is not ready for C++14, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201402L | | #error "This is not a C++14 compiler" | | #else | | namespace cxx14 | { | | namespace test_polymorphic_lambdas | { | | int | test() | { | const auto lambda = [](auto&&... args){ | const auto istiny = [](auto x){ | return (sizeof(x) == 1UL) ? 1 : 0; | }; | const int aretiny[] = { istiny(args)... }; | return aretiny[0]; | }; | return lambda(1, 1L, 1.0f, '1'); | } | | } | | namespace test_binary_literals | { | | constexpr auto ivii = 0b0000000000101010; | static_assert(ivii == 42, "wrong value"); | | } | | namespace test_generalized_constexpr | { | | template < typename CharT > | constexpr unsigned long | strlen_c(const CharT *const s) noexcept | { | auto length = 0UL; | for (auto p = s; *p; ++p) | ++length; | return length; | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("x") == 1UL, ""); | static_assert(strlen_c("test") == 4UL, ""); | static_assert(strlen_c("another\0test") == 7UL, ""); | | } | | namespace test_lambda_init_capture | { | | int | test() | { | auto x = 0; | const auto lambda1 = [a = x](int b){ return a + b; }; | const auto lambda2 = [a = lambda1(x)](){ return a; }; | return lambda2(); | } | | } | | namespace test_digit_seperators | { | | constexpr auto ten_million = 100'000'000; | static_assert(ten_million == 100000000, ""); | | } | | namespace test_return_type_deduction | { | | auto f(int& x) { return x; } | decltype(auto) g(int& x) { return x; } | | template < typename T1, typename T2 > | struct is_same | { | static constexpr auto value = false; | }; | | template < typename T > | struct is_same | { | static constexpr auto value = true; | }; | | int | test() | { | auto x = 0; | static_assert(is_same::value, ""); | static_assert(is_same::value, ""); | return x; | } | | } | | } // namespace cxx14 | | #endif // __cplusplus >= 201402L | | | configure:5911: result: no configure:5486: checking whether g++ supports C++14 features with -h std=c++14 configure:5902: g++ -h std=c++14 -c -g -O2 conftest.cpp >&5 g++: error: unrecognized command line option '-h' configure:5902: $? = 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 JEMALLOC_HAS_RESTRICT 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 | | | | | // If the compiler admits that it is not ready for C++14, why torture it? | // Hopefully, this will speed up the test. | | #ifndef __cplusplus | | #error "This is not a C++ compiler" | | #elif __cplusplus < 201402L | | #error "This is not a C++14 compiler" | | #else | | namespace cxx14 | { | | namespace test_polymorphic_lambdas | { | | int | test() | { | const auto lambda = [](auto&&... args){ | const auto istiny = [](auto x){ | return (sizeof(x) == 1UL) ? 1 : 0; | }; | const int aretiny[] = { istiny(args)... }; | return aretiny[0]; | }; | return lambda(1, 1L, 1.0f, '1'); | } | | } | | namespace test_binary_literals | { | | constexpr auto ivii = 0b0000000000101010; | static_assert(ivii == 42, "wrong value"); | | } | | namespace test_generalized_constexpr | { | | template < typename CharT > | constexpr unsigned long | strlen_c(const CharT *const s) noexcept | { | auto length = 0UL; | for (auto p = s; *p; ++p) | ++length; | return length; | } | | static_assert(strlen_c("") == 0UL, ""); | static_assert(strlen_c("x") == 1UL, ""); | static_assert(strlen_c("test") == 4UL, ""); | static_assert(strlen_c("another\0test") == 7UL, ""); | | } | | namespace test_lambda_init_capture | { | | int | test() | { | auto x = 0; | const auto lambda1 = [a = x](int b){ return a + b; }; | const auto lambda2 = [a = lambda1(x)](){ return a; }; | return lambda2(); | } | | } | | namespace test_digit_seperators | { | | constexpr auto ten_million = 100'000'000; | static_assert(ten_million == 100000000, ""); | | } | | namespace test_return_type_deduction | { | | auto f(int& x) { return x; } | decltype(auto) g(int& x) { return x; } | | template < typename T1, typename T2 > | struct is_same | { | static constexpr auto value = false; | }; | | template < typename T > | struct is_same | { | static constexpr auto value = true; | }; | | int | test() | { | auto x = 0; | static_assert(is_same::value, ""); | static_assert(is_same::value, ""); | return x; | } | | } | | } // namespace cxx14 | | #endif // __cplusplus >= 201402L | | | configure:5911: result: no configure:5936: No compiler with C++14 support was found configure:6193: checking for grep that handles long lines and -e configure:6251: result: /usr/bin/grep configure:6256: checking for egrep configure:6318: result: /usr/bin/grep -E configure:6323: checking for ANSI C header files configure:6343: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6343: $? = 0 configure:6416: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6416: $? = 0 configure:6416: ./conftest configure:6416: $? = 0 configure:6427: result: yes configure:6440: checking for sys/types.h configure:6440: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6440: $? = 0 configure:6440: result: yes configure:6440: checking for sys/stat.h configure:6440: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6440: $? = 0 configure:6440: result: yes configure:6440: checking for stdlib.h configure:6440: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6440: $? = 0 configure:6440: result: yes configure:6440: checking for string.h configure:6440: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6440: $? = 0 configure:6440: result: yes configure:6440: checking for memory.h configure:6440: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6440: $? = 0 configure:6440: result: yes configure:6440: checking for strings.h configure:6440: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6440: $? = 0 configure:6440: result: yes configure:6440: checking for inttypes.h configure:6440: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6440: $? = 0 configure:6440: result: yes configure:6440: checking for stdint.h configure:6440: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6440: $? = 0 configure:6440: result: yes configure:6440: checking for unistd.h configure:6440: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6440: $? = 0 configure:6440: result: yes configure:6452: checking whether byte ordering is bigendian configure:6467: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 conftest.c:21:9: error: unknown type name 'not' not a universal capable compiler ^ conftest.c:21:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'universal' not a universal capable compiler ^ conftest.c:21:15: error: unknown type name 'universal' configure:6467: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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. */ | #ifndef __APPLE_CC__ | not a universal capable compiler | #endif | typedef int dummy; | configure:6512: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6512: $? = 0 configure:6530: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 conftest.c: In function 'main': conftest.c:27:4: error: unknown type name 'not' not big endian ^ conftest.c:27:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'endian' not big endian ^ configure:6530: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 | #include | | int | main () | { | #if BYTE_ORDER != BIG_ENDIAN | not big endian | #endif | | ; | return 0; | } configure:6658: result: no configure:6702: checking size of void * configure:6707: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6707: $? = 0 configure:6707: ./conftest configure:6707: $? = 0 configure:6721: result: 8 configure:6748: checking size of int configure:6753: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6753: $? = 0 configure:6753: ./conftest configure:6753: $? = 0 configure:6767: result: 4 configure:6793: checking size of long configure:6798: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6798: $? = 0 configure:6798: ./conftest configure:6798: $? = 0 configure:6812: result: 8 configure:6838: checking size of long long configure:6843: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6843: $? = 0 configure:6843: ./conftest configure:6843: $? = 0 configure:6857: result: 8 configure:6883: checking size of intmax_t configure:6888: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:6888: $? = 0 configure:6888: ./conftest configure:6888: $? = 0 configure:6902: result: 8 configure:6930: checking build system type configure:6944: result: x86_64-pc-linux-gnu configure:6964: checking host system type configure:6977: result: x86_64-pc-linux-gnu configure:7043: checking whether pause instruction is compilable configure:7059: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:7059: $? = 0 configure:7067: result: yes configure:7117: checking number of significant virtual address bits configure:7168: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 conftest.c >&5 configure:7168: $? = 0 configure:7168: ./conftest configure:7168: $? = 0 configure:7178: result: 48 configure:7290: checking for ar configure:7306: found /usr/bin/ar configure:7317: result: ar configure:7386: checking for nm configure:7402: found /usr/bin/nm configure:7413: result: nm configure:7440: checking for gawk configure:7456: found /usr/bin/gawk configure:7467: result: gawk configure:7739: checking malloc.h usability configure:7739: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -D_GNU_SOURCE conftest.c >&5 configure:7739: $? = 0 configure:7739: result: yes configure:7739: checking malloc.h presence configure:7739: gcc -E -D_GNU_SOURCE conftest.c configure:7739: $? = 0 configure:7739: result: yes configure:7739: checking for malloc.h configure:7739: result: yes configure:7745: checking whether malloc_usable_size definition can use const argument configure:7761: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -D_GNU_SOURCE conftest.c >&5 conftest.c:42:12: error: conflicting types for 'malloc_usable_size' size_t malloc_usable_size(const void *ptr); ^ In file included from conftest.c:40:0: /usr/include/malloc.h:151:15: note: previous declaration of 'malloc_usable_size' was here extern size_t malloc_usable_size (void *__ptr) __THROW; ^ configure:7761: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | /* end confdefs.h. */ | #include | #include | size_t malloc_usable_size(const void *ptr); | | int | main () | { | | ; | return 0; | } configure:7769: result: no configure:7806: checking for library containing log configure:7837: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -D_GNU_SOURCE conftest.c >&5 conftest.c:48:6: warning: conflicting types for built-in function 'log' [enabled by default] char log (); ^ /tmp/ccZ33TN7.o: In function `main': /root/skynet/3rd/jemalloc/conftest.c:52: undefined reference to `log' collect2: error: ld returned 1 exit status configure:7837: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | /* 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 log (); | int | main () | { | return log (); | ; | return 0; | } configure:7837: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -D_GNU_SOURCE conftest.c -lm >&5 conftest.c:48:6: warning: conflicting types for built-in function 'log' [enabled by default] char log (); ^ configure:7837: $? = 0 configure:7854: result: -lm configure:7872: checking whether __attribute__ syntax is compilable configure:7888: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -D_GNU_SOURCE conftest.c -lm >&5 configure:7888: $? = 0 configure:7896: result: yes configure:7904: checking whether compiler supports -fvisibility=hidden configure:7935: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -D_GNU_SOURCE conftest.c >&5 configure:7935: $? = 0 configure:7937: result: yes configure:7955: checking whether compiler supports -fvisibility=hidden configure:7992: g++ -c -fvisibility=hidden -D_GNU_SOURCE conftest.cpp >&5 configure:7992: $? = 0 configure:7994: result: yes configure:8022: checking whether compiler supports -Werror configure:8053: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -D_GNU_SOURCE conftest.c >&5 configure:8053: $? = 0 configure:8055: result: yes configure:8073: checking whether compiler supports -herror_on_warning configure:8104: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -herror_on_warning -D_GNU_SOURCE conftest.c >&5 gcc: error: unrecognized command line option '-h' configure:8104: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | /* end confdefs.h. */ | | | int | main () | { | | return 0; | | ; | return 0; | } configure:8110: result: no configure:8124: checking whether tls_model attribute is compilable configure:8142: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -D_GNU_SOURCE conftest.c -lm >&5 configure:8142: $? = 0 configure:8150: result: yes configure:8165: checking whether compiler supports -Werror configure:8196: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -D_GNU_SOURCE conftest.c >&5 configure:8196: $? = 0 configure:8198: result: yes configure:8216: checking whether compiler supports -herror_on_warning configure:8247: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -herror_on_warning -D_GNU_SOURCE conftest.c >&5 gcc: error: unrecognized command line option '-h' configure:8247: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | /* end confdefs.h. */ | | | int | main () | { | | return 0; | | ; | return 0; | } configure:8253: result: no configure:8267: checking whether alloc_size attribute is compilable configure:8283: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -D_GNU_SOURCE conftest.c -lm >&5 configure:8283: $? = 0 configure:8291: result: yes configure:8309: checking whether compiler supports -Werror configure:8340: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -D_GNU_SOURCE conftest.c >&5 configure:8340: $? = 0 configure:8342: result: yes configure:8360: checking whether compiler supports -herror_on_warning configure:8391: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -herror_on_warning -D_GNU_SOURCE conftest.c >&5 gcc: error: unrecognized command line option '-h' configure:8391: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | /* end confdefs.h. */ | | | int | main () | { | | return 0; | | ; | return 0; | } configure:8397: result: no configure:8411: checking whether format(gnu_printf, ...) attribute is compilable configure:8427: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -D_GNU_SOURCE conftest.c -lm >&5 configure:8427: $? = 0 configure:8435: result: yes configure:8453: checking whether compiler supports -Werror configure:8484: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -D_GNU_SOURCE conftest.c >&5 configure:8484: $? = 0 configure:8486: result: yes configure:8504: checking whether compiler supports -herror_on_warning configure:8535: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -herror_on_warning -D_GNU_SOURCE conftest.c >&5 gcc: error: unrecognized command line option '-h' configure:8535: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | /* end confdefs.h. */ | | | int | main () | { | | return 0; | | ; | return 0; | } configure:8541: result: no configure:8555: checking whether format(printf, ...) attribute is compilable configure:8571: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -D_GNU_SOURCE conftest.c -lm >&5 configure:8571: $? = 0 configure:8579: result: yes configure:8598: checking whether compiler supports -Werror configure:8629: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -D_GNU_SOURCE conftest.c >&5 configure:8629: $? = 0 configure:8631: result: yes configure:8649: checking whether compiler supports -herror_on_warning configure:8680: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -herror_on_warning -D_GNU_SOURCE conftest.c >&5 gcc: error: unrecognized command line option '-h' configure:8680: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | /* end confdefs.h. */ | | | int | main () | { | | return 0; | | ; | return 0; | } configure:8686: result: no configure:8700: checking whether format(printf, ...) attribute is compilable configure:8716: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -Werror -D_GNU_SOURCE conftest.c -lm >&5 configure:8716: $? = 0 configure:8724: result: yes configure:8784: checking for a BSD-compatible install configure:8852: result: /usr/bin/install -c configure:8906: checking for ranlib configure:8922: found /usr/bin/ranlib configure:8933: result: ranlib configure:8957: checking for ld configure:8975: found /usr/bin/ld configure:8988: result: /usr/bin/ld configure:8998: checking for autoconf configure:9016: found /usr/local/bin/autoconf configure:9029: result: /usr/local/bin/autoconf configure:9138: checking for memalign configure:9138: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -D_GNU_SOURCE conftest.c -lm >&5 configure:9138: $? = 0 configure:9138: result: yes configure:9145: checking for valloc configure:9145: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -D_GNU_SOURCE conftest.c -lm >&5 configure:9145: $? = 0 configure:9145: result: yes configure:9352: checking whether compiler supports -O3 configure:9383: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -D_GNU_SOURCE conftest.c >&5 configure:9383: $? = 0 configure:9385: result: yes configure:9403: checking whether compiler supports -O3 configure:9440: g++ -c -fvisibility=hidden -O3 -D_GNU_SOURCE conftest.cpp >&5 configure:9440: $? = 0 configure:9442: result: yes configure:9466: checking whether compiler supports -funroll-loops configure:9497: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c >&5 configure:9497: $? = 0 configure:9499: result: yes configure:9934: checking unwind.h usability configure:9934: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c >&5 configure:9934: $? = 0 configure:9934: result: yes configure:9934: checking unwind.h presence configure:9934: gcc -E -D_GNU_SOURCE conftest.c configure:9934: $? = 0 configure:9934: result: yes configure:9934: checking for unwind.h configure:9934: result: yes configure:9947: checking for _Unwind_Backtrace in -lgcc configure:9972: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lgcc -lm >&5 configure:9972: $? = 0 configure:9981: result: yes configure:10083: checking configured backtracing method configure:10085: result: libgcc configure:10113: checking for sbrk configure:10113: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lm -lgcc -lm >&5 configure:10113: $? = 0 configure:10113: result: yes configure:10168: checking whether utrace(2) is compilable configure:10192: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lm -lgcc -lm >&5 conftest.c:65:24: fatal error: sys/ktrace.h: No such file or directory #include ^ compilation terminated. configure:10192: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | /* end confdefs.h. */ | | #include | #include | #include | #include | #include | | int | main () | { | | utrace((void *)0, 0); | | ; | return 0; | } configure:10200: result: no configure:10308: checking whether a program using __builtin_unreachable is compilable configure:10332: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lm -lgcc -lm >&5 configure:10332: $? = 0 configure:10340: result: yes configure:10352: checking whether a program using __builtin_ffsl is compilable configure:10377: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lm -lgcc -lm >&5 configure:10377: $? = 0 configure:10385: result: yes configure:10446: checking whether a program using __builtin_popcountl is compilable configure:10471: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lm -lgcc -lm >&5 configure:10471: $? = 0 configure:10479: result: yes configure:10513: checking LG_PAGE configure:10564: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lm -lgcc -lm >&5 configure:10564: $? = 0 configure:10564: ./conftest configure:10564: $? = 0 configure:10574: result: 12 configure:10645: checking pthread.h usability configure:10645: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c >&5 configure:10645: $? = 0 configure:10645: result: yes configure:10645: checking pthread.h presence configure:10645: gcc -E -D_GNU_SOURCE conftest.c configure:10645: $? = 0 configure:10645: result: yes configure:10645: checking for pthread.h configure:10645: result: yes configure:10657: checking for pthread_create in -lpthread configure:10682: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lpthread -lm -lgcc -lm >&5 configure:10682: $? = 0 configure:10691: result: yes configure:10770: checking dlfcn.h usability configure:10770: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c >&5 configure:10770: $? = 0 configure:10770: result: yes configure:10770: checking dlfcn.h presence configure:10770: gcc -E -D_GNU_SOURCE conftest.c configure:10770: $? = 0 configure:10770: result: yes configure:10770: checking for dlfcn.h configure:10770: result: yes configure:10775: checking for dlsym configure:10775: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lm -lgcc -lm -pthread >&5 /tmp/cchq0Tht.o: In function `main': /root/skynet/3rd/jemalloc/conftest.c:106: undefined reference to `dlsym' collect2: error: ld returned 1 exit status configure:10775: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | /* Define dlsym to an innocuous variant, in case declares dlsym. | For example, HP-UX 11i declares gettimeofday. */ | #define dlsym innocuous_dlsym | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char dlsym (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef dlsym | | /* 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 dlsym (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_dlsym || defined __stub___dlsym | choke me | #endif | | int | main () | { | return dlsym (); | ; | return 0; | } configure:10775: result: no configure:10779: checking for dlsym in -ldl configure:10804: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -ldl -lm -lgcc -lm -pthread >&5 configure:10804: $? = 0 configure:10813: result: yes configure:10838: checking whether pthread_atfork(3) is compilable configure:10858: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:10858: $? = 0 configure:10866: result: yes configure:10874: checking whether pthread_setname_np(3) is compilable configure:10894: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:10894: $? = 0 configure:10902: result: yes configure:10920: checking for library containing clock_gettime configure:10951: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:10951: $? = 0 configure:10968: result: none required configure:11103: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable configure:11125: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11125: $? = 0 configure:11133: result: yes configure:11142: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable configure:11168: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11168: $? = 0 configure:11176: result: yes configure:11185: checking whether mach_absolute_time() is compilable configure:11205: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 conftest.c:78:28: fatal error: mach/mach_time.h: No such file or directory #include ^ compilation terminated. configure:11205: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | #define JEMALLOC_HAVE_DLSYM | #define JEMALLOC_HAVE_PTHREAD_ATFORK | #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP | #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 | #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 | /* end confdefs.h. */ | | #include | | int | main () | { | | mach_absolute_time(); | | ; | return 0; | } configure:11213: result: no configure:11238: checking whether compiler supports -Werror configure:11269: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -Werror -D_GNU_SOURCE -D_REENTRANT conftest.c >&5 configure:11269: $? = 0 configure:11271: result: yes configure:11289: checking whether syscall(2) is compilable configure:11310: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -Werror -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11310: $? = 0 configure:11318: result: yes configure:11335: checking for secure_getenv configure:11335: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11335: $? = 0 configure:11335: result: yes configure:11348: checking for sched_getcpu configure:11348: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11348: $? = 0 configure:11348: result: yes configure:11361: checking for sched_setaffinity configure:11361: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11361: $? = 0 configure:11361: result: yes configure:11374: checking for issetugid configure:11374: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 /tmp/cclosV75.o: In function `main': /root/skynet/3rd/jemalloc/conftest.c:115: undefined reference to `issetugid' collect2: error: ld returned 1 exit status configure:11374: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | #define JEMALLOC_HAVE_DLSYM | #define JEMALLOC_HAVE_PTHREAD_ATFORK | #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP | #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 | #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 | #define JEMALLOC_USE_SYSCALL | #define JEMALLOC_HAVE_SECURE_GETENV | #define JEMALLOC_HAVE_SCHED_GETCPU | #define JEMALLOC_HAVE_SCHED_SETAFFINITY | /* end confdefs.h. */ | /* Define issetugid to an innocuous variant, in case declares issetugid. | For example, HP-UX 11i declares gettimeofday. */ | #define issetugid innocuous_issetugid | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char issetugid (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef issetugid | | /* 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 issetugid (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_issetugid || defined __stub___issetugid | choke me | #endif | | int | main () | { | return issetugid (); | ; | return 0; | } configure:11374: result: no configure:11387: checking for _malloc_thread_cleanup configure:11387: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 /tmp/cccbUs47.o: In function `main': /root/skynet/3rd/jemalloc/conftest.c:115: undefined reference to `_malloc_thread_cleanup' collect2: error: ld returned 1 exit status configure:11387: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | #define JEMALLOC_HAVE_DLSYM | #define JEMALLOC_HAVE_PTHREAD_ATFORK | #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP | #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 | #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 | #define JEMALLOC_USE_SYSCALL | #define JEMALLOC_HAVE_SECURE_GETENV | #define JEMALLOC_HAVE_SCHED_GETCPU | #define JEMALLOC_HAVE_SCHED_SETAFFINITY | /* end confdefs.h. */ | /* Define _malloc_thread_cleanup to an innocuous variant, in case declares _malloc_thread_cleanup. | For example, HP-UX 11i declares gettimeofday. */ | #define _malloc_thread_cleanup innocuous__malloc_thread_cleanup | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char _malloc_thread_cleanup (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef _malloc_thread_cleanup | | /* 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 _malloc_thread_cleanup (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub__malloc_thread_cleanup || defined __stub____malloc_thread_cleanup | choke me | #endif | | int | main () | { | return _malloc_thread_cleanup (); | ; | return 0; | } configure:11387: result: no configure:11402: checking for _pthread_mutex_init_calloc_cb configure:11402: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 /tmp/ccVKkbed.o: In function `main': /root/skynet/3rd/jemalloc/conftest.c:115: undefined reference to `_pthread_mutex_init_calloc_cb' collect2: error: ld returned 1 exit status configure:11402: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | #define JEMALLOC_HAVE_DLSYM | #define JEMALLOC_HAVE_PTHREAD_ATFORK | #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP | #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 | #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 | #define JEMALLOC_USE_SYSCALL | #define JEMALLOC_HAVE_SECURE_GETENV | #define JEMALLOC_HAVE_SCHED_GETCPU | #define JEMALLOC_HAVE_SCHED_SETAFFINITY | /* end confdefs.h. */ | /* Define _pthread_mutex_init_calloc_cb to an innocuous variant, in case declares _pthread_mutex_init_calloc_cb. | For example, HP-UX 11i declares gettimeofday. */ | #define _pthread_mutex_init_calloc_cb innocuous__pthread_mutex_init_calloc_cb | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char _pthread_mutex_init_calloc_cb (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef _pthread_mutex_init_calloc_cb | | /* 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 _pthread_mutex_init_calloc_cb (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub__pthread_mutex_init_calloc_cb || defined __stub____pthread_mutex_init_calloc_cb | choke me | #endif | | int | main () | { | return _pthread_mutex_init_calloc_cb (); | ; | return 0; | } configure:11402: result: no configure:11461: checking for TLS configure:11480: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c >&5 configure:11480: $? = 0 configure:11481: result: yes configure:11502: checking whether C11 atomics is compilable configure:11531: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 conftest.c:85:23: fatal error: stdatomic.h: No such file or directory #include ^ compilation terminated. configure:11531: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | #define JEMALLOC_HAVE_DLSYM | #define JEMALLOC_HAVE_PTHREAD_ATFORK | #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP | #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 | #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 | #define JEMALLOC_USE_SYSCALL | #define JEMALLOC_HAVE_SECURE_GETENV | #define JEMALLOC_HAVE_SCHED_GETCPU | #define JEMALLOC_HAVE_SCHED_SETAFFINITY | #define JEMALLOC_TLS | /* end confdefs.h. */ | | #include | #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__) | #include | #else | #error Atomics not available | #endif | | int | main () | { | | uint64_t *p = (uint64_t *)0; | uint64_t x = 1; | volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p; | uint64_t r = atomic_fetch_add(a, x) + x; | return r == 0; | | ; | return 0; | } configure:11539: result: no configure:11549: checking whether GCC __atomic atomics is compilable configure:11572: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 conftest.c: In function 'main': conftest.c:90:9: warning: unused variable 'y' [-Wunused-variable] int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED); ^ configure:11572: $? = 0 configure:11580: result: yes configure:11588: checking whether GCC 8-bit __atomic atomics is compilable configure:11611: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 conftest.c: In function 'main': conftest.c:91:11: warning: unused variable 'y' [-Wunused-variable] int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED); ^ configure:11611: $? = 0 configure:11619: result: yes configure:11630: checking whether GCC __sync atomics is compilable configure:11652: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11652: $? = 0 configure:11660: result: yes configure:11668: checking whether GCC 8-bit __sync atomics is compilable configure:11690: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11690: $? = 0 configure:11698: result: yes configure:11709: checking whether Darwin OSAtomic*() is compilable configure:11739: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 conftest.c:87:30: fatal error: libkern/OSAtomic.h: No such file or directory #include ^ compilation terminated. configure:11739: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | #define JEMALLOC_HAVE_DLSYM | #define JEMALLOC_HAVE_PTHREAD_ATFORK | #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP | #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 | #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 | #define JEMALLOC_USE_SYSCALL | #define JEMALLOC_HAVE_SECURE_GETENV | #define JEMALLOC_HAVE_SCHED_GETCPU | #define JEMALLOC_HAVE_SCHED_SETAFFINITY | #define JEMALLOC_TLS | #define JEMALLOC_GCC_ATOMIC_ATOMICS 1 | #define JEMALLOC_GCC_U8_ATOMIC_ATOMICS 1 | #define JEMALLOC_GCC_SYNC_ATOMICS 1 | #define JEMALLOC_GCC_U8_SYNC_ATOMICS 1 | /* end confdefs.h. */ | | #include | #include | | int | main () | { | | { | int32_t x32 = 0; | volatile int32_t *x32p = &x32; | OSAtomicAdd32(1, x32p); | } | { | int64_t x64 = 0; | volatile int64_t *x64p = &x64; | OSAtomicAdd64(1, x64p); | } | | ; | return 0; | } configure:11747: result: no configure:11757: checking whether madvise(2) is compilable configure:11777: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11777: $? = 0 configure:11785: result: yes configure:11793: checking whether madvise(..., MADV_FREE) is compilable configure:11813: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 conftest.c: In function 'main': conftest.c:94:24: error: 'MADV_FREE' undeclared (first use in this function) madvise((void *)0, 0, MADV_FREE); ^ conftest.c:94:24: note: each undeclared identifier is reported only once for each function it appears in configure:11813: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | #define JEMALLOC_HAVE_DLSYM | #define JEMALLOC_HAVE_PTHREAD_ATFORK | #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP | #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 | #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 | #define JEMALLOC_USE_SYSCALL | #define JEMALLOC_HAVE_SECURE_GETENV | #define JEMALLOC_HAVE_SCHED_GETCPU | #define JEMALLOC_HAVE_SCHED_SETAFFINITY | #define JEMALLOC_TLS | #define JEMALLOC_GCC_ATOMIC_ATOMICS 1 | #define JEMALLOC_GCC_U8_ATOMIC_ATOMICS 1 | #define JEMALLOC_GCC_SYNC_ATOMICS 1 | #define JEMALLOC_GCC_U8_SYNC_ATOMICS 1 | #define JEMALLOC_HAVE_MADVISE | /* end confdefs.h. */ | | #include | | int | main () | { | | madvise((void *)0, 0, MADV_FREE); | | ; | return 0; | } configure:11821: result: no configure:11841: checking whether madvise(..., MADV_DONTNEED) is compilable configure:11861: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11861: $? = 0 configure:11869: result: yes configure:11878: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable configure:11899: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11899: $? = 0 configure:11907: result: yes configure:11916: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable configure:11937: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:11937: $? = 0 configure:11945: result: yes configure:11961: checking for __builtin_clz configure:11986: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 conftest.c: In function 'main': conftest.c:99:61: warning: unused variable 'y' [-Wunused-variable] int y = __builtin_clz(x); ^ conftest.c:103:61: warning: unused variable 'y' [-Wunused-variable] int y = __builtin_clzl(x); ^ configure:11986: $? = 0 configure:11994: result: yes configure:12004: checking whether Darwin os_unfair_lock_*() is compilable configure:12031: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 conftest.c:94:21: fatal error: os/lock.h: No such file or directory #include ^ compilation terminated. configure:12031: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | #define JEMALLOC_HAVE_DLSYM | #define JEMALLOC_HAVE_PTHREAD_ATFORK | #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP | #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 | #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 | #define JEMALLOC_USE_SYSCALL | #define JEMALLOC_HAVE_SECURE_GETENV | #define JEMALLOC_HAVE_SCHED_GETCPU | #define JEMALLOC_HAVE_SCHED_SETAFFINITY | #define JEMALLOC_TLS | #define JEMALLOC_GCC_ATOMIC_ATOMICS 1 | #define JEMALLOC_GCC_U8_ATOMIC_ATOMICS 1 | #define JEMALLOC_GCC_SYNC_ATOMICS 1 | #define JEMALLOC_GCC_U8_SYNC_ATOMICS 1 | #define JEMALLOC_HAVE_MADVISE | #define JEMALLOC_PURGE_MADVISE_FREE | #define JEMALLOC_DEFINE_MADVISE_FREE | #define JEMALLOC_PURGE_MADVISE_DONTNEED | #define JEMALLOC_MADVISE_DONTDUMP | #define JEMALLOC_HAVE_MADVISE_HUGE | #define JEMALLOC_HAVE_BUILTIN_CLZ | /* end confdefs.h. */ | | #include | #include | | int | main () | { | | #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200 | #error "os_unfair_lock is not supported" | #else | os_unfair_lock lock = OS_UNFAIR_LOCK_INIT; | os_unfair_lock_lock(&lock); | os_unfair_lock_unlock(&lock); | #endif | | ; | return 0; | } configure:12039: result: no configure:12106: checking whether glibc malloc hook is compilable configure:12133: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:12133: $? = 0 configure:12141: result: yes configure:12153: checking whether glibc memalign hook is compilable configure:12176: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 conftest.c: In function 'main': conftest.c:104:9: warning: variable 'ptr' set but not used [-Wunused-but-set-variable] void *ptr = 0L; ^ configure:12176: $? = 0 configure:12184: result: yes configure:12196: checking whether pthreads adaptive mutexes is compilable configure:12219: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:12219: $? = 0 configure:12227: result: yes configure:12238: checking whether compiler supports -D_GNU_SOURCE configure:12269: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_GNU_SOURCE -D_REENTRANT conftest.c >&5 configure:12269: $? = 0 configure:12271: result: yes configure:12289: checking whether compiler supports -Werror configure:12320: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -Werror -D_GNU_SOURCE -D_REENTRANT conftest.c >&5 configure:12320: $? = 0 configure:12322: result: yes configure:12340: checking whether compiler supports -herror_on_warning configure:12371: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -Werror -herror_on_warning -D_GNU_SOURCE -D_REENTRANT conftest.c >&5 gcc: error: unrecognized command line option '-h' configure:12371: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | #define JEMALLOC_HAVE_DLSYM | #define JEMALLOC_HAVE_PTHREAD_ATFORK | #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP | #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 | #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 | #define JEMALLOC_USE_SYSCALL | #define JEMALLOC_HAVE_SECURE_GETENV | #define JEMALLOC_HAVE_SCHED_GETCPU | #define JEMALLOC_HAVE_SCHED_SETAFFINITY | #define JEMALLOC_TLS | #define JEMALLOC_GCC_ATOMIC_ATOMICS 1 | #define JEMALLOC_GCC_U8_ATOMIC_ATOMICS 1 | #define JEMALLOC_GCC_SYNC_ATOMICS 1 | #define JEMALLOC_GCC_U8_SYNC_ATOMICS 1 | #define JEMALLOC_HAVE_MADVISE | #define JEMALLOC_PURGE_MADVISE_FREE | #define JEMALLOC_DEFINE_MADVISE_FREE | #define JEMALLOC_PURGE_MADVISE_DONTNEED | #define JEMALLOC_MADVISE_DONTDUMP | #define JEMALLOC_HAVE_MADVISE_HUGE | #define JEMALLOC_HAVE_BUILTIN_CLZ | #define JEMALLOC_TLS_MODEL __attribute__((tls_model("initial-exec"))) | #define JEMALLOC_BACKGROUND_THREAD 1 | #define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP | /* end confdefs.h. */ | | | int | main () | { | | return 0; | | ; | return 0; | } configure:12377: result: no configure:12391: checking whether strerror_r returns char with gnu source is compilable configure:12416: gcc -o conftest -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -Werror -D_GNU_SOURCE -D_REENTRANT conftest.c -lm -lgcc -lm -pthread -ldl >&5 configure:12416: $? = 0 configure:12424: result: yes configure:12440: checking for stdbool.h that conforms to C99 configure:12507: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c >&5 conftest.c: In function 'main': conftest.c:146:14: warning: the address of 's' will always evaluate as 'true' [-Waddress] bool e = &s; ^ conftest.c:150:22: warning: the address of 'a' will always evaluate as 'true' [-Waddress] return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l ^ conftest.c:150:27: warning: the address of 'b' will always evaluate as 'true' [-Waddress] return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l ^ conftest.c:150:32: warning: the address of 'c' will always evaluate as 'true' [-Waddress] return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l ^ conftest.c:150:37: warning: the address of 'd' will always evaluate as 'true' [-Waddress] return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l ^ conftest.c:150:47: warning: the address of 'f' will always evaluate as 'true' [-Waddress] return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l ^ conftest.c:150:52: warning: the address of 'g' will always evaluate as 'true' [-Waddress] return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l ^ conftest.c:150:57: warning: the address of 'h' will always evaluate as 'true' [-Waddress] return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l ^ conftest.c:150:62: warning: the address of 'i' will always evaluate as 'true' [-Waddress] return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l ^ conftest.c:151:29: warning: the address of 'n' will always evaluate as 'true' [-Waddress] ^ conftest.c:151:34: warning: the address of 'o' will always evaluate as 'true' [-Waddress] ^ conftest.c:151:39: warning: the address of 'p' will always evaluate as 'true' [-Waddress] ^ configure:12507: $? = 0 configure:12514: result: yes configure:12516: checking for _Bool configure:12516: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c >&5 configure:12516: $? = 0 configure:12516: gcc -c -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -D_GNU_SOURCE -D_REENTRANT conftest.c >&5 conftest.c: In function 'main': conftest.c:133:20: error: expected expression before ')' token if (sizeof ((_Bool))) ^ configure:12516: $? = 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 JEMALLOC_HAS_RESTRICT 1 | #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 SIZEOF_VOID_P 8 | #define LG_SIZEOF_PTR 3 | #define SIZEOF_INT 4 | #define LG_SIZEOF_INT 2 | #define SIZEOF_LONG 8 | #define LG_SIZEOF_LONG 3 | #define SIZEOF_LONG_LONG 8 | #define LG_SIZEOF_LONG_LONG 3 | #define SIZEOF_INTMAX_T 8 | #define LG_SIZEOF_INTMAX_T 3 | #define HAVE_CPU_SPINWAIT 1 | #define CPU_SPINWAIT __asm__ volatile("pause") | #define LG_VADDR 48 | #define LG_VADDR 48 | #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS | #define JEMALLOC_HAS_ALLOCA_H 1 | #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY | #define JEMALLOC_THREADED_INIT | #define JEMALLOC_USE_CXX_THROW | #define HAVE_MALLOC_H 1 | #define JEMALLOC_USABLE_SIZE_CONST | #define JEMALLOC_HAVE_ATTR | #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE | #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF | #define JEMALLOC_HAVE_ATTR_FORMAT_ARG | #define JEMALLOC_PREFIX "je_" | #define JEMALLOC_CPREFIX "JE_" | #define JEMALLOC_OVERRIDE_MEMALIGN | #define JEMALLOC_OVERRIDE_VALLOC | #define JEMALLOC_PRIVATE_NAMESPACE je_ | #define JEMALLOC_CONFIG_MALLOC_CONF "" | #define JEMALLOC_STATS | #define HAVE_UNWIND_H 1 | #define JEMALLOC_PROF_LIBGCC | #define JEMALLOC_PROF | #define JEMALLOC_MAPS_COALESCE | #define JEMALLOC_RETAIN | #define JEMALLOC_DSS | #define JEMALLOC_FILL | #define JEMALLOC_CACHE_OBLIVIOUS | #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable | #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll | #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl | #define JEMALLOC_INTERNAL_FFS __builtin_ffs | #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount | #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl | #define LG_PAGE 12 | #define LG_HUGEPAGE 21 | #define JEMALLOC_HAVE_PTHREAD | #define HAVE_PTHREAD_H 1 | #define HAVE_DLFCN_H 1 | #define JEMALLOC_HAVE_DLSYM | #define JEMALLOC_HAVE_PTHREAD_ATFORK | #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP | #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 | #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 | #define JEMALLOC_USE_SYSCALL | #define JEMALLOC_HAVE_SECURE_GETENV | #define JEMALLOC_HAVE_SCHED_GETCPU | #define JEMALLOC_HAVE_SCHED_SETAFFINITY | #define JEMALLOC_TLS | #define JEMALLOC_GCC_ATOMIC_ATOMICS 1 | #define JEMALLOC_GCC_U8_ATOMIC_ATOMICS 1 | #define JEMALLOC_GCC_SYNC_ATOMICS 1 | #define JEMALLOC_GCC_U8_SYNC_ATOMICS 1 | #define JEMALLOC_HAVE_MADVISE | #define JEMALLOC_PURGE_MADVISE_FREE | #define JEMALLOC_DEFINE_MADVISE_FREE | #define JEMALLOC_PURGE_MADVISE_DONTNEED | #define JEMALLOC_MADVISE_DONTDUMP | #define JEMALLOC_HAVE_MADVISE_HUGE | #define JEMALLOC_HAVE_BUILTIN_CLZ | #define JEMALLOC_TLS_MODEL __attribute__((tls_model("initial-exec"))) | #define JEMALLOC_BACKGROUND_THREAD 1 | #define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP | #define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE | /* 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 | int | main () | { | if (sizeof ((_Bool))) | return 0; | ; | return 0; | } configure:12516: result: yes configure:12681: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by config.status, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on localhost.localdomain config.status:1062: creating Makefile config.status:1062: creating jemalloc.pc config.status:1062: creating doc/html.xsl config.status:1062: creating doc/manpages.xsl config.status:1062: creating doc/jemalloc.xml config.status:1062: creating include/jemalloc/jemalloc_macros.h config.status:1062: creating include/jemalloc/jemalloc_protos.h config.status:1062: creating include/jemalloc/jemalloc_typedefs.h config.status:1062: creating include/jemalloc/internal/jemalloc_preamble.h config.status:1062: creating test/test.sh config.status:1062: creating test/include/test/jemalloc_test.h config.status:1062: creating config.stamp config.status:1062: creating bin/jemalloc-config config.status:1062: creating bin/jemalloc.sh config.status:1062: creating bin/jeprof config.status:1062: creating include/jemalloc/jemalloc_defs.h config.status:1062: creating include/jemalloc/internal/jemalloc_internal_defs.h config.status:1062: creating test/include/test/jemalloc_test_defs.h config.status:1251: executing include/jemalloc/internal/public_symbols.txt commands config.status:1251: executing include/jemalloc/internal/private_symbols.awk commands config.status:1251: executing include/jemalloc/internal/private_symbols_jet.awk commands config.status:1251: executing include/jemalloc/internal/public_namespace.h commands config.status:1251: executing include/jemalloc/internal/public_unnamespace.h commands config.status:1251: executing include/jemalloc/jemalloc_protos_jet.h commands config.status:1251: executing include/jemalloc/jemalloc_rename.h commands config.status:1251: executing include/jemalloc/jemalloc_mangle.h commands config.status:1251: executing include/jemalloc/jemalloc_mangle_jet.h commands config.status:1251: executing include/jemalloc/jemalloc.h commands configure:13983: result: =============================================================================== configure:13985: result: jemalloc version : 5.2.1-0-gea6b3e973b477b8061e0076bb257dbd7f3faa756 configure:13987: result: library revision : 2 configure:13989: result: configure:13991: result: CONFIG : --enable-autogen --with-jemalloc-prefix=je_ --enable-prof configure:13993: result: CC : gcc configure:13995: result: CONFIGURE_CFLAGS : -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops configure:13997: result: SPECIFIED_CFLAGS : configure:13999: result: EXTRA_CFLAGS : configure:14001: result: CPPFLAGS : -D_GNU_SOURCE -D_REENTRANT configure:14003: result: CXX : g++ configure:14005: result: CONFIGURE_CXXFLAGS : -fvisibility=hidden -O3 configure:14007: result: SPECIFIED_CXXFLAGS : configure:14009: result: EXTRA_CXXFLAGS : configure:14011: result: LDFLAGS : configure:14013: result: EXTRA_LDFLAGS : configure:14015: result: DSO_LDFLAGS : -shared -Wl,-soname,$(@F) configure:14017: result: LIBS : -lm -lgcc -lm -pthread -ldl configure:14019: result: RPATH_EXTRA : configure:14021: result: configure:14023: result: XSLTPROC : false configure:14025: result: XSLROOT : configure:14027: result: configure:14029: result: PREFIX : /usr/local configure:14031: result: BINDIR : /usr/local/bin configure:14033: result: DATADIR : /usr/local/share configure:14035: result: INCLUDEDIR : /usr/local/include configure:14037: result: LIBDIR : /usr/local/lib configure:14039: result: MANDIR : /usr/local/share/man configure:14041: result: configure:14043: result: srcroot : configure:14045: result: abs_srcroot : /root/skynet/3rd/jemalloc/ configure:14047: result: objroot : configure:14049: result: abs_objroot : /root/skynet/3rd/jemalloc/ configure:14051: result: configure:14053: result: JEMALLOC_PREFIX : je_ configure:14055: result: JEMALLOC_PRIVATE_NAMESPACE configure:14057: result: : je_ configure:14059: result: install_suffix : configure:14061: result: malloc_conf : configure:14063: result: documentation : 1 configure:14065: result: shared libs : 1 configure:14067: result: static libs : 1 configure:14069: result: autogen : 1 configure:14071: result: debug : 0 configure:14073: result: stats : 1 configure:14075: result: experimetal_smallocx : 0 configure:14077: result: prof : 1 configure:14079: result: prof-libunwind : 0 configure:14081: result: prof-libgcc : 1 configure:14083: result: prof-gcc : 0 configure:14085: result: fill : 1 configure:14087: result: utrace : 0 configure:14089: result: xmalloc : 0 configure:14091: result: log : 0 configure:14093: result: lazy_lock : 0 configure:14095: result: cache-oblivious : 1 configure:14097: result: cxx : 0 configure:14099: result: =============================================================================== ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_big_endian=0 ac_cv_build=x86_64-pc-linux-gnu ac_cv_c_bigendian=no 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= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= 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= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= 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_func__malloc_thread_cleanup=no ac_cv_func__pthread_mutex_init_calloc_cb=no ac_cv_func_dlsym=no ac_cv_func_issetugid=no ac_cv_func_memalign=yes ac_cv_func_sbrk=yes ac_cv_func_sched_getcpu=yes ac_cv_func_sched_setaffinity=yes ac_cv_func_secure_getenv=yes ac_cv_func_valloc=yes ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_malloc_h=yes ac_cv_header_memory_h=yes ac_cv_header_pthread_h=yes ac_cv_header_stdbool_h=yes 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_unwind_h=yes ac_cv_host=x86_64-pc-linux-gnu ac_cv_lib_dl_dlsym=yes ac_cv_lib_gcc__Unwind_Backtrace=yes ac_cv_lib_pthread_pthread_create=yes ac_cv_objext=o ac_cv_path_AUTOCONF=/usr/local/bin/autoconf ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_GREP=/usr/bin/grep ac_cv_path_LD=/usr/bin/ld ac_cv_path_XSLTPROC=false ac_cv_path_install='/usr/bin/install -c' ac_cv_prog_AWK=gawk ac_cv_prog_CPP='gcc -E' ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_NM=nm ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_search_clock_gettime='none required' ac_cv_search_log=-lm ac_cv_sizeof_int=4 ac_cv_sizeof_intmax_t=8 ac_cv_sizeof_long=8 ac_cv_sizeof_long_long=8 ac_cv_sizeof_void_p=8 ac_cv_type__Bool=yes ax_cv_cxx_compile_cxx14=no ax_cv_cxx_compile_cxx14__h_std_cpp14=no ax_cv_cxx_compile_cxx14__std_cpp0x=no ax_cv_cxx_compile_cxx14__std_cpp14=no ax_cv_cxx_compile_cxx14_pstd_cpp14=no je_cv_alloc_size=yes je_cv_attribute=yes je_cv_builtin_clz=yes je_cv_c11_atomics=no je_cv_cflags_added= je_cv_clock_monotonic=yes je_cv_clock_monotonic_coarse=yes je_cv_cray=no je_cv_cray_prgenv_wrapper= je_cv_cxxflags_added=-O3 je_cv_format_arg=yes je_cv_format_gnu_printf=yes je_cv_format_printf=yes je_cv_gcc_atomic_atomics=yes je_cv_gcc_builtin_ffsl=yes je_cv_gcc_builtin_popcountl=yes je_cv_gcc_builtin_unreachable=yes je_cv_gcc_sync_atomics=yes je_cv_gcc_u8_atomic_atomics=yes je_cv_gcc_u8_sync_atomics=yes je_cv_glibc_malloc_hook=yes je_cv_glibc_memalign_hook=yes je_cv_lg_hugepage=21 je_cv_lg_page=12 je_cv_lg_vaddr=48 je_cv_mach_absolute_time=no je_cv_madv_dontdump=yes je_cv_madv_dontneed=yes je_cv_madv_free=no je_cv_madvise=yes je_cv_os_unfair_lock=no je_cv_osatomic=no je_cv_pause=yes je_cv_pthread_atfork=yes je_cv_pthread_mutex_adaptive_np=yes je_cv_pthread_setname_np=yes je_cv_strerror_r_returns_char_with_gnu_source=yes je_cv_syscall=yes je_cv_thp=yes je_cv_tls_model=yes je_cv_utrace=no ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='ar' ARFLAGS='crus' AROUT=' $@' AUTOCONF='/usr/local/bin/autoconf' AWK='gawk' BINDIR='/usr/local/bin' CC='gcc' CC_MM='1' CFLAGS='-std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops' CONFIG='--enable-autogen --with-jemalloc-prefix=je_ --enable-prof' CONFIGURE_CFLAGS='-std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops' CONFIGURE_CXXFLAGS='-fvisibility=hidden -O3' CPP='gcc -E' CPPFLAGS='-D_GNU_SOURCE -D_REENTRANT' CTARGET='-o $@' CXX='g++' CXXFLAGS='-fvisibility=hidden -O3' DATADIR='/usr/local/share' DEFS='-DHAVE_CONFIG_H' DSO_LDFLAGS='-shared -Wl,-soname,$(@F)' DUMP_SYMS='nm -a' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/usr/bin/grep -E' EXEEXT='' EXTRA_CFLAGS='' EXTRA_CXXFLAGS='' EXTRA_LDFLAGS='' GREP='/usr/bin/grep' HAVE_CXX14='0' INCLUDEDIR='/usr/local/include' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' JEMALLOC_CPREFIX='JE_' JEMALLOC_PREFIX='je_' LD='/usr/bin/ld' LDFLAGS='' LDTARGET='-o $@' LD_PRELOAD_VAR='LD_PRELOAD' LIBDIR='/usr/local/lib' LIBOBJS='' LIBS='-lm -lgcc -lm -pthread -ldl' LM='-lm' LTLIBOBJS='' MANDIR='/usr/local/share/man' MKLIB='' NM='nm' OBJEXT='o' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PIC_CFLAGS='-fPIC -DPIC' PREFIX='/usr/local' RANLIB='ranlib' RPATH='-Wl,-rpath,$(1)' RPATH_EXTRA='' SHELL='/bin/sh' SOREV='so.2' SPECIFIED_CFLAGS='' SPECIFIED_CXXFLAGS='' TEST_LD_MODE='' XSLROOT='' XSLTPROC='false' a='a' abi='elf' abs_objroot='/root/skynet/3rd/jemalloc/' abs_srcroot='/root/skynet/3rd/jemalloc/' ac_ct_CC='gcc' ac_ct_CXX='g++' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' cfghdrs_in='include/jemalloc/jemalloc_defs.h.in include/jemalloc/internal/jemalloc_internal_defs.h.in include/jemalloc/internal/private_symbols.sh include/jemalloc/internal/private_namespace.sh include/jemalloc/internal/public_namespace.sh include/jemalloc/internal/public_unnamespace.sh include/jemalloc/jemalloc_rename.sh include/jemalloc/jemalloc_mangle.sh include/jemalloc/jemalloc.sh test/include/test/jemalloc_test_defs.h.in' cfghdrs_out='include/jemalloc/jemalloc_defs.h include/jemalloc/jemalloc.h include/jemalloc/internal/private_symbols.awk include/jemalloc/internal/private_symbols_jet.awk include/jemalloc/internal/public_symbols.txt include/jemalloc/internal/public_namespace.h include/jemalloc/internal/public_unnamespace.h include/jemalloc/jemalloc_protos_jet.h include/jemalloc/jemalloc_rename.h include/jemalloc/jemalloc_mangle.h include/jemalloc/jemalloc_mangle_jet.h include/jemalloc/internal/jemalloc_internal_defs.h test/include/test/jemalloc_test_defs.h' cfgoutputs_in='Makefile.in jemalloc.pc.in doc/html.xsl.in doc/manpages.xsl.in doc/jemalloc.xml.in include/jemalloc/jemalloc_macros.h.in include/jemalloc/jemalloc_protos.h.in include/jemalloc/jemalloc_typedefs.h.in include/jemalloc/internal/jemalloc_preamble.h.in test/test.sh.in test/include/test/jemalloc_test.h.in' cfgoutputs_out='Makefile jemalloc.pc doc/html.xsl doc/manpages.xsl doc/jemalloc.xml include/jemalloc/jemalloc_macros.h include/jemalloc/jemalloc_protos.h include/jemalloc/jemalloc_typedefs.h include/jemalloc/internal/jemalloc_preamble.h test/test.sh test/include/test/jemalloc_test.h' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' enable_autogen='1' enable_cache_oblivious='1' enable_cxx='0' enable_debug='0' enable_doc='1' enable_experimental_smallocx='0' enable_fill='1' enable_initial_exec_tls='1' enable_lazy_lock='0' enable_log='0' enable_opt_safety_checks='0' enable_prof='1' enable_readlinkat='0' enable_shared='1' enable_static='1' enable_stats='1' enable_tls='1' enable_utrace='0' enable_xmalloc='0' enable_zone_allocator='' exe='' exec_prefix='/usr/local' host='x86_64-pc-linux-gnu' host_alias='' host_cpu='x86_64' host_os='linux-gnu' host_vendor='pc' htmldir='${docdir}' importlib='so' includedir='${prefix}/include' infodir='${datarootdir}/info' install_suffix='' je_='je_' jemalloc_version='5.2.1-0-gea6b3e973b477b8061e0076bb257dbd7f3faa756' jemalloc_version_bugfix='1' jemalloc_version_gid='ea6b3e973b477b8061e0076bb257dbd7f3faa756' jemalloc_version_major='5' jemalloc_version_minor='2' jemalloc_version_nrev='0' libdir='${exec_prefix}/lib' libdl='' libexecdir='${exec_prefix}/libexec' libprefix='lib' link_whole_archive='0' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' o='o' objroot='' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr/local' private_namespace='je_' program_transform_name='s,x,x,' psdir='${docdir}' rev='2' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' so='so' srcroot='' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define JEMALLOC_HAS_RESTRICT 1 #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 SIZEOF_VOID_P 8 #define LG_SIZEOF_PTR 3 #define SIZEOF_INT 4 #define LG_SIZEOF_INT 2 #define SIZEOF_LONG 8 #define LG_SIZEOF_LONG 3 #define SIZEOF_LONG_LONG 8 #define LG_SIZEOF_LONG_LONG 3 #define SIZEOF_INTMAX_T 8 #define LG_SIZEOF_INTMAX_T 3 #define HAVE_CPU_SPINWAIT 1 #define CPU_SPINWAIT __asm__ volatile("pause") #define LG_VADDR 48 #define LG_VADDR 48 #define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS #define JEMALLOC_HAS_ALLOCA_H 1 #define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY #define JEMALLOC_THREADED_INIT #define JEMALLOC_USE_CXX_THROW #define HAVE_MALLOC_H 1 #define JEMALLOC_USABLE_SIZE_CONST #define JEMALLOC_HAVE_ATTR #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF #define JEMALLOC_HAVE_ATTR_FORMAT_ARG #define JEMALLOC_PREFIX "je_" #define JEMALLOC_CPREFIX "JE_" #define JEMALLOC_OVERRIDE_MEMALIGN #define JEMALLOC_OVERRIDE_VALLOC #define JEMALLOC_PRIVATE_NAMESPACE je_ #define JEMALLOC_CONFIG_MALLOC_CONF "" #define JEMALLOC_STATS #define HAVE_UNWIND_H 1 #define JEMALLOC_PROF_LIBGCC #define JEMALLOC_PROF #define JEMALLOC_MAPS_COALESCE #define JEMALLOC_RETAIN #define JEMALLOC_DSS #define JEMALLOC_FILL #define JEMALLOC_CACHE_OBLIVIOUS #define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable #define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll #define JEMALLOC_INTERNAL_FFSL __builtin_ffsl #define JEMALLOC_INTERNAL_FFS __builtin_ffs #define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount #define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl #define LG_PAGE 12 #define LG_HUGEPAGE 21 #define JEMALLOC_HAVE_PTHREAD #define HAVE_PTHREAD_H 1 #define HAVE_DLFCN_H 1 #define JEMALLOC_HAVE_DLSYM #define JEMALLOC_HAVE_PTHREAD_ATFORK #define JEMALLOC_HAVE_PTHREAD_SETNAME_NP #define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1 #define JEMALLOC_HAVE_CLOCK_MONOTONIC 1 #define JEMALLOC_USE_SYSCALL #define JEMALLOC_HAVE_SECURE_GETENV #define JEMALLOC_HAVE_SCHED_GETCPU #define JEMALLOC_HAVE_SCHED_SETAFFINITY #define JEMALLOC_TLS #define JEMALLOC_GCC_ATOMIC_ATOMICS 1 #define JEMALLOC_GCC_U8_ATOMIC_ATOMICS 1 #define JEMALLOC_GCC_SYNC_ATOMICS 1 #define JEMALLOC_GCC_U8_SYNC_ATOMICS 1 #define JEMALLOC_HAVE_MADVISE #define JEMALLOC_PURGE_MADVISE_FREE #define JEMALLOC_DEFINE_MADVISE_FREE #define JEMALLOC_PURGE_MADVISE_DONTNEED #define JEMALLOC_MADVISE_DONTDUMP #define JEMALLOC_HAVE_MADVISE_HUGE #define JEMALLOC_HAVE_BUILTIN_CLZ #define JEMALLOC_TLS_MODEL __attribute__((tls_model("initial-exec"))) #define JEMALLOC_BACKGROUND_THREAD 1 #define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP #define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE #define HAVE__BOOL 1 #define HAVE_STDBOOL_H 1 configure: exit 0