Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)": clang version 13.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/13/bin Determining if the function ASN1_TIME_diff exists failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_e6a00 && [1/2] Building C object CMakeFiles/cmTC_e6a00.dir/CheckFunctionExists.c.o FAILED: CMakeFiles/cmTC_e6a00.dir/CheckFunctionExists.c.o /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang -D_GNU_SOURCE -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -DCHECK_FUNCTION_EXISTS=ASN1_TIME_diff -std=gnu++1z -MD -MT CMakeFiles/cmTC_e6a00.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_e6a00.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_e6a00.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c error: invalid argument '-std=gnu++1z' not allowed with 'C' ninja: build stopped: subcommand failed. Determining if the BZ2_bzCompressInit exist failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_05833 && [1/2] Building C object CMakeFiles/cmTC_05833.dir/CheckSymbolExists.c.o FAILED: CMakeFiles/cmTC_05833.dir/CheckSymbolExists.c.o /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang -D_GNU_SOURCE -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -std=gnu++1z -MD -MT CMakeFiles/cmTC_05833.dir/CheckSymbolExists.c.o -MF CMakeFiles/cmTC_05833.dir/CheckSymbolExists.c.o.d -o CMakeFiles/cmTC_05833.dir/CheckSymbolExists.c.o -c /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp/CheckSymbolExists.c error: invalid argument '-std=gnu++1z' not allowed with 'C' ninja: build stopped: subcommand failed. File /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef BZ2_bzCompressInit return ((int*)(&BZ2_bzCompressInit))[argc]; #else (void)argc; return 0; #endif } Determining if the function lzma_auto_decoder exists in the /usr/lib64/liblzma.so failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_ad7dd && [1/2] Building C object CMakeFiles/cmTC_ad7dd.dir/CheckFunctionExists.c.o FAILED: CMakeFiles/cmTC_ad7dd.dir/CheckFunctionExists.c.o /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang -D_GNU_SOURCE -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -DCHECK_FUNCTION_EXISTS=lzma_auto_decoder -std=gnu++1z -MD -MT CMakeFiles/cmTC_ad7dd.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_ad7dd.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_ad7dd.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c error: invalid argument '-std=gnu++1z' not allowed with 'C' ninja: build stopped: subcommand failed. Determining if the function lzma_easy_encoder exists in the /usr/lib64/liblzma.so failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_260b7 && [1/2] Building C object CMakeFiles/cmTC_260b7.dir/CheckFunctionExists.c.o FAILED: CMakeFiles/cmTC_260b7.dir/CheckFunctionExists.c.o /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang -D_GNU_SOURCE -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -DCHECK_FUNCTION_EXISTS=lzma_easy_encoder -std=gnu++1z -MD -MT CMakeFiles/cmTC_260b7.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_260b7.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_260b7.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c error: invalid argument '-std=gnu++1z' not allowed with 'C' ninja: build stopped: subcommand failed. Determining if the function lzma_lzma_preset exists in the /usr/lib64/liblzma.so failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_ce0a2 && [1/2] Building C object CMakeFiles/cmTC_ce0a2.dir/CheckFunctionExists.c.o FAILED: CMakeFiles/cmTC_ce0a2.dir/CheckFunctionExists.c.o /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang -D_GNU_SOURCE -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -DCHECK_FUNCTION_EXISTS=lzma_lzma_preset -std=gnu++1z -MD -MT CMakeFiles/cmTC_ce0a2.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_ce0a2.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_ce0a2.dir/CheckFunctionExists.c.o -c /usr/share/cmake/Modules/CheckFunctionExists.c error: invalid argument '-std=gnu++1z' not allowed with 'C' ninja: build stopped: subcommand failed. Performing C++ SOURCE FILE Test FOLLY_CPP_ATOMIC_BUILTIN failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_6f2f5 && [1/2] Building CXX object CMakeFiles/cmTC_6f2f5.dir/src.cxx.o [2/2] Linking CXX executable cmTC_6f2f5 FAILED: cmTC_6f2f5 : && /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang++ -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -std=gnu++1z -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/cmTC_6f2f5.dir/src.cxx.o -o cmTC_6f2f5 -ldl && : /usr/bin/x86_64-pc-linux-gnu-ld: CMakeFiles/cmTC_6f2f5.dir/src.cxx.o: in function `main': src.cxx:(.text+0xe): undefined reference to `__atomic_is_lock_free' clang-13: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Source file was: #include int main(int argc, char** argv) { struct Test { int val; }; std::atomic s; return static_cast(s.is_lock_free()); } Performing C++ SOURCE FILE Test FOLLY_STDLIB_LIBCXX failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_f95f6 && [1/2] Building CXX object CMakeFiles/cmTC_f95f6.dir/src.cxx.o [2/2] Linking CXX executable cmTC_f95f6 FAILED: cmTC_f95f6 : && /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang++ -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -std=gnu++1z -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/cmTC_f95f6.dir/src.cxx.o -o cmTC_f95f6 -ldl -latomic && : /usr/bin/x86_64-pc-linux-gnu-ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../lib64/crt1.o: in function `_start': (.text+0x17): undefined reference to `main' clang-13: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Source file was: #include #if _LIBCPP_VERSION int main() {} #endif Performing C++ SOURCE FILE Test FOLLY_STDLIB_LIBCXX_GE_9 failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_6aa96 && [1/2] Building CXX object CMakeFiles/cmTC_6aa96.dir/src.cxx.o [2/2] Linking CXX executable cmTC_6aa96 FAILED: cmTC_6aa96 : && /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang++ -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -std=gnu++1z -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/cmTC_6aa96.dir/src.cxx.o -o cmTC_6aa96 -ldl -latomic && : /usr/bin/x86_64-pc-linux-gnu-ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../lib64/crt1.o: in function `_start': (.text+0x17): undefined reference to `main' clang-13: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Source file was: #include #if _LIBCPP_VERSION >= 9000 int main() {} #endif Performing C++ SOURCE FILE Test FOLLY_STDLIB_LIBCPP failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_eccc8 && [1/2] Building CXX object CMakeFiles/cmTC_eccc8.dir/src.cxx.o [2/2] Linking CXX executable cmTC_eccc8 FAILED: cmTC_eccc8 : && /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang++ -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -std=gnu++1z -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -rdynamic CMakeFiles/cmTC_eccc8.dir/src.cxx.o -o cmTC_eccc8 -ldl -latomic && : /usr/bin/x86_64-pc-linux-gnu-ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../lib64/crt1.o: in function `_start': (.text+0x17): undefined reference to `main' clang-13: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Source file was: #include #if _CPPLIB_VER int main() {} #endif Determining if the include file jemalloc/jemalloc.h exists failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_58a24 && [1/2] Building CXX object CMakeFiles/cmTC_58a24.dir/CheckIncludeFile.cxx.o FAILED: CMakeFiles/cmTC_58a24.dir/CheckIncludeFile.cxx.o /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang++ -D_GNU_SOURCE -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -std=gnu++1z -MD -MT CMakeFiles/cmTC_58a24.dir/CheckIncludeFile.cxx.o -MF CMakeFiles/cmTC_58a24.dir/CheckIncludeFile.cxx.o.d -o CMakeFiles/cmTC_58a24.dir/CheckIncludeFile.cxx.o -c /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx:1:10: fatal error: 'jemalloc/jemalloc.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. Performing C++ SOURCE FILE Test COMPILER_HAS_W_SHADOW_LOCAL failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_a0f06 && [1/2] Building CXX object CMakeFiles/cmTC_a0f06.dir/src.cxx.o FAILED: CMakeFiles/cmTC_a0f06.dir/src.cxx.o /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang++ -DCOMPILER_HAS_W_SHADOW_LOCAL -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -std=gnu++1z -Werror=unknown-warning-option -Wshadow-local -MD -MT CMakeFiles/cmTC_a0f06.dir/src.cxx.o -MF CMakeFiles/cmTC_a0f06.dir/src.cxx.o.d -o CMakeFiles/cmTC_a0f06.dir/src.cxx.o -c /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp/src.cxx error: unknown warning option '-Wshadow-local' [-Werror,-Wunknown-warning-option] ninja: build stopped: subcommand failed. Source file was: int main() { return 0; } Performing C++ SOURCE FILE Test COMPILER_HAS_W_SHADOW_COMPATIBLE_LOCAL failed with the following output: Change Dir: /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/ninja cmTC_c060e && [1/2] Building CXX object CMakeFiles/cmTC_c060e.dir/src.cxx.o FAILED: CMakeFiles/cmTC_c060e.dir/src.cxx.o /usr/lib/llvm/13/bin/x86_64-pc-linux-gnu-clang++ -DCOMPILER_HAS_W_SHADOW_COMPATIBLE_LOCAL -O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -std=gnu++1z -Werror=unknown-warning-option -Wshadow-compatible-local -MD -MT CMakeFiles/cmTC_c060e.dir/src.cxx.o -MF CMakeFiles/cmTC_c060e.dir/src.cxx.o.d -o CMakeFiles/cmTC_c060e.dir/src.cxx.o -c /var/tmp/portage/dev-cpp/folly-2022.02.28.00/work/folly-2022.02.28.00_build/CMakeFiles/CMakeTmp/src.cxx error: unknown warning option '-Wshadow-compatible-local'; did you mean '-Wshadow-uncaptured-local'? [-Werror,-Wunknown-warning-option] ninja: build stopped: subcommand failed. Source file was: int main() { return 0; }