Detecting CXX OpenMP failed with the following output:
Change Dir: /build/test/build/CMakeFiles/CMakeTmp
Run Build Command(s):/nix/store/is8wg3j77z9ndpsvkm85sfbrlvvqd66l-gnumake-4.3/bin/make -f Makefile cmTC_b2a2a/fast && /nix/store/is8wg3j77z9ndpsvkm85sfbrlvvqd66l-gnumake-4.3/bin/make -f CMakeFiles/cmTC_b2a2a.dir/build.make CMakeFiles/cmTC_b2a2a.dir/build
make[1]: Entering directory '/build/test/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_b2a2a.dir/OpenMPTryFlag.cpp.o
/nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/bin/clang++ -fopenmp=libomp -v -MD -MT CMakeFiles/cmTC_b2a2a.dir/OpenMPTryFlag.cpp.o -MF CMakeFiles/cmTC_b2a2a.dir/OpenMPTryFlag.cpp.o.d -o CMakeFiles/cmTC_b2a2a.dir/OpenMPTryFlag.cpp.o -c /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp
clang version 13.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /nix/store/9k6x3pif7fq745rqx295mwn94z9slx6n-clang-13.0.0/bin
Found candidate GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib/gcc/x86_64-unknown-linux-gnu/10.3.0
Found candidate GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0
Selected GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
(in-process)
"/nix/store/9k6x3pif7fq745rqx295mwn94z9slx6n-clang-13.0.0/bin/clang-13" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name OpenMPTryFlag.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -v -fcoverage-compilation-dir=/build/test/build/CMakeFiles/CMakeTmp -nostdsysteminc -resource-dir /nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root -dependency-file CMakeFiles/cmTC_b2a2a.dir/OpenMPTryFlag.cpp.o.d -MT CMakeFiles/cmTC_b2a2a.dir/OpenMPTryFlag.cpp.o -sys-header-deps -idirafter /nix/store/vccvfa5bjb9dv4x6zq5gjf1yp58y4brg-glibc-2.33-108-dev/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include -isystem /nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include -isystem /nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include -isystem /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include -isystem /nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include -isystem /nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include -isystem /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1 -D _FORTIFY_SOURCE=2 -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0 -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/x86_64-unknown-linux-gnu -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/backward -internal-isystem /nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root/include -O2 -Wformat -Wformat-security -Werror=format-security -fdeprecated-macro -fdebug-compilation-dir=/build/test/build/CMakeFiles/CMakeTmp -ferror-limit 19 -fopenmp -fwrapv -stack-protector 2 -stack-protector-buffer-size 4 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_b2a2a.dir/OpenMPTryFlag.cpp.o -x c++ /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp
clang -cc1 version 13.0.0 based upon LLVM 13.0.0 default target x86_64-unknown-linux-gnu
ignoring duplicate directory "/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include"
#include "..." search starts here:
#include <...> search starts here:
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include
/nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include
/nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/x86_64-unknown-linux-gnu
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/backward
/nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root/include
/nix/store/vccvfa5bjb9dv4x6zq5gjf1yp58y4brg-glibc-2.33-108-dev/include
End of search list.
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
In file included from /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:18:
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:142:34: error: unknown type name 'ldiv_t'
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace
return ::ldiv(__x, __y);
~~^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:146:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:148:12: error: no member named 'lldiv' in the global namespace
return ::lldiv(__x, __y);
~~^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: use of undeclared identifier 'size_t'; did you mean 'std::size_t'?
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/cstdlib:99:9: note: 'std::size_t' declared here
using ::size_t _LIBCPP_USING_IF_EXISTS;
^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: reference to unresolved using declaration
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/cstdlib:99:1: note: using declaration annotated with 'using_if_exists' here
using ::size_t _LIBCPP_USING_IF_EXISTS;
^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: unknown type name 'size_t'
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:81: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:89: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:97: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:146:86: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_rect(void *, const void *, size_t, int, const size_t *,
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:146:105: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_rect(void *, const void *, size_t, int, const size_t *,
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:51: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:67: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:83: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:99: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:148:94: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_associate_ptr(const void *, const void *, size_t, size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:148:102: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_associate_ptr(const void *, const void *, size_t, size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:231:88: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_async(void *, const void *, size_t, size_t, size_t, int,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_b2a2a.dir/build.make:79: CMakeFiles/cmTC_b2a2a.dir/OpenMPTryFlag.cpp.o] Error 1
make[1]: Leaving directory '/build/test/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_b2a2a/fast] Error 2
Detecting CXX OpenMP failed with the following output:
Change Dir: /build/test/build/CMakeFiles/CMakeTmp
Run Build Command(s):/nix/store/is8wg3j77z9ndpsvkm85sfbrlvvqd66l-gnumake-4.3/bin/make -f Makefile cmTC_1da41/fast && /nix/store/is8wg3j77z9ndpsvkm85sfbrlvvqd66l-gnumake-4.3/bin/make -f CMakeFiles/cmTC_1da41.dir/build.make CMakeFiles/cmTC_1da41.dir/build
make[1]: Entering directory '/build/test/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_1da41.dir/OpenMPTryFlag.cpp.o
/nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/bin/clang++ -fopenmp=libiomp5 -v -MD -MT CMakeFiles/cmTC_1da41.dir/OpenMPTryFlag.cpp.o -MF CMakeFiles/cmTC_1da41.dir/OpenMPTryFlag.cpp.o.d -o CMakeFiles/cmTC_1da41.dir/OpenMPTryFlag.cpp.o -c /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp
clang version 13.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /nix/store/9k6x3pif7fq745rqx295mwn94z9slx6n-clang-13.0.0/bin
Found candidate GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib/gcc/x86_64-unknown-linux-gnu/10.3.0
Found candidate GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0
Selected GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
(in-process)
"/nix/store/9k6x3pif7fq745rqx295mwn94z9slx6n-clang-13.0.0/bin/clang-13" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name OpenMPTryFlag.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -v -fcoverage-compilation-dir=/build/test/build/CMakeFiles/CMakeTmp -nostdsysteminc -resource-dir /nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root -dependency-file CMakeFiles/cmTC_1da41.dir/OpenMPTryFlag.cpp.o.d -MT CMakeFiles/cmTC_1da41.dir/OpenMPTryFlag.cpp.o -sys-header-deps -idirafter /nix/store/vccvfa5bjb9dv4x6zq5gjf1yp58y4brg-glibc-2.33-108-dev/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include -isystem /nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include -isystem /nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include -isystem /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include -isystem /nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include -isystem /nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include -isystem /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1 -D _FORTIFY_SOURCE=2 -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0 -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/x86_64-unknown-linux-gnu -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/backward -internal-isystem /nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root/include -O2 -Wformat -Wformat-security -Werror=format-security -fdeprecated-macro -fdebug-compilation-dir=/build/test/build/CMakeFiles/CMakeTmp -ferror-limit 19 -fopenmp -fwrapv -stack-protector 2 -stack-protector-buffer-size 4 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_1da41.dir/OpenMPTryFlag.cpp.o -x c++ /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp
clang -cc1 version 13.0.0 based upon LLVM 13.0.0 default target x86_64-unknown-linux-gnu
ignoring duplicate directory "/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include"
#include "..." search starts here:
#include <...> search starts here:
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include
/nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include
/nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/x86_64-unknown-linux-gnu
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/backward
/nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root/include
/nix/store/vccvfa5bjb9dv4x6zq5gjf1yp58y4brg-glibc-2.33-108-dev/include
End of search list.
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
In file included from /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:18:
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:142:34: error: unknown type name 'ldiv_t'
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace
return ::ldiv(__x, __y);
~~^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:146:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:148:12: error: no member named 'lldiv' in the global namespace
return ::lldiv(__x, __y);
~~^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: use of undeclared identifier 'size_t'; did you mean 'std::size_t'?
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/cstdlib:99:9: note: 'std::size_t' declared here
using ::size_t _LIBCPP_USING_IF_EXISTS;
^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: reference to unresolved using declaration
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/cstdlib:99:1: note: using declaration annotated with 'using_if_exists' here
using ::size_t _LIBCPP_USING_IF_EXISTS;
^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: unknown type name 'size_t'
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:81: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:89: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:97: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:146:86: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_rect(void *, const void *, size_t, int, const size_t *,
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:146:105: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_rect(void *, const void *, size_t, int, const size_t *,
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:51: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:67: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:83: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:99: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:148:94: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_associate_ptr(const void *, const void *, size_t, size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:148:102: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_associate_ptr(const void *, const void *, size_t, size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:231:88: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_async(void *, const void *, size_t, size_t, size_t, int,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_1da41.dir/build.make:79: CMakeFiles/cmTC_1da41.dir/OpenMPTryFlag.cpp.o] Error 1
make[1]: Leaving directory '/build/test/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_1da41/fast] Error 2
Detecting CXX OpenMP failed with the following output:
Change Dir: /build/test/build/CMakeFiles/CMakeTmp
Run Build Command(s):/nix/store/is8wg3j77z9ndpsvkm85sfbrlvvqd66l-gnumake-4.3/bin/make -f Makefile cmTC_c5a63/fast && /nix/store/is8wg3j77z9ndpsvkm85sfbrlvvqd66l-gnumake-4.3/bin/make -f CMakeFiles/cmTC_c5a63.dir/build.make CMakeFiles/cmTC_c5a63.dir/build
make[1]: Entering directory '/build/test/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_c5a63.dir/OpenMPTryFlag.cpp.o
/nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/bin/clang++ -fopenmp -v -MD -MT CMakeFiles/cmTC_c5a63.dir/OpenMPTryFlag.cpp.o -MF CMakeFiles/cmTC_c5a63.dir/OpenMPTryFlag.cpp.o.d -o CMakeFiles/cmTC_c5a63.dir/OpenMPTryFlag.cpp.o -c /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp
clang version 13.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /nix/store/9k6x3pif7fq745rqx295mwn94z9slx6n-clang-13.0.0/bin
Found candidate GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib/gcc/x86_64-unknown-linux-gnu/10.3.0
Found candidate GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0
Selected GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
(in-process)
"/nix/store/9k6x3pif7fq745rqx295mwn94z9slx6n-clang-13.0.0/bin/clang-13" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name OpenMPTryFlag.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -v -fcoverage-compilation-dir=/build/test/build/CMakeFiles/CMakeTmp -nostdsysteminc -resource-dir /nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root -dependency-file CMakeFiles/cmTC_c5a63.dir/OpenMPTryFlag.cpp.o.d -MT CMakeFiles/cmTC_c5a63.dir/OpenMPTryFlag.cpp.o -sys-header-deps -idirafter /nix/store/vccvfa5bjb9dv4x6zq5gjf1yp58y4brg-glibc-2.33-108-dev/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include -isystem /nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include -isystem /nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include -isystem /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include -isystem /nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include -isystem /nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include -isystem /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1 -D _FORTIFY_SOURCE=2 -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0 -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/x86_64-unknown-linux-gnu -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/backward -internal-isystem /nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root/include -O2 -Wformat -Wformat-security -Werror=format-security -fdeprecated-macro -fdebug-compilation-dir=/build/test/build/CMakeFiles/CMakeTmp -ferror-limit 19 -fopenmp -fwrapv -stack-protector 2 -stack-protector-buffer-size 4 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_c5a63.dir/OpenMPTryFlag.cpp.o -x c++ /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp
clang -cc1 version 13.0.0 based upon LLVM 13.0.0 default target x86_64-unknown-linux-gnu
ignoring duplicate directory "/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include"
#include "..." search starts here:
#include <...> search starts here:
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include
/nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include
/nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/x86_64-unknown-linux-gnu
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/backward
/nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root/include
/nix/store/vccvfa5bjb9dv4x6zq5gjf1yp58y4brg-glibc-2.33-108-dev/include
End of search list.
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
In file included from /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:18:
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:142:34: error: unknown type name 'ldiv_t'
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace
return ::ldiv(__x, __y);
~~^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:146:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:148:12: error: no member named 'lldiv' in the global namespace
return ::lldiv(__x, __y);
~~^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: use of undeclared identifier 'size_t'; did you mean 'std::size_t'?
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/cstdlib:99:9: note: 'std::size_t' declared here
using ::size_t _LIBCPP_USING_IF_EXISTS;
^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: reference to unresolved using declaration
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/cstdlib:99:1: note: using declaration annotated with 'using_if_exists' here
using ::size_t _LIBCPP_USING_IF_EXISTS;
^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: unknown type name 'size_t'
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:81: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:89: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:97: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:146:86: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_rect(void *, const void *, size_t, int, const size_t *,
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:146:105: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_rect(void *, const void *, size_t, int, const size_t *,
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:51: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:67: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:83: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:99: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:148:94: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_associate_ptr(const void *, const void *, size_t, size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:148:102: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_associate_ptr(const void *, const void *, size_t, size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:231:88: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_async(void *, const void *, size_t, size_t, size_t, int,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_c5a63.dir/build.make:79: CMakeFiles/cmTC_c5a63.dir/OpenMPTryFlag.cpp.o] Error 1
make[1]: Leaving directory '/build/test/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_c5a63/fast] Error 2
Detecting CXX OpenMP failed with the following output:
Change Dir: /build/test/build/CMakeFiles/CMakeTmp
Run Build Command(s):/nix/store/is8wg3j77z9ndpsvkm85sfbrlvvqd66l-gnumake-4.3/bin/make -f Makefile cmTC_d7eb1/fast && /nix/store/is8wg3j77z9ndpsvkm85sfbrlvvqd66l-gnumake-4.3/bin/make -f CMakeFiles/cmTC_d7eb1.dir/build.make CMakeFiles/cmTC_d7eb1.dir/build
make[1]: Entering directory '/build/test/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_d7eb1.dir/OpenMPTryFlag.cpp.o
/nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/bin/clang++ -Xclang -fopenmp -v -MD -MT CMakeFiles/cmTC_d7eb1.dir/OpenMPTryFlag.cpp.o -MF CMakeFiles/cmTC_d7eb1.dir/OpenMPTryFlag.cpp.o.d -o CMakeFiles/cmTC_d7eb1.dir/OpenMPTryFlag.cpp.o -c /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp
clang version 13.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /nix/store/9k6x3pif7fq745rqx295mwn94z9slx6n-clang-13.0.0/bin
Found candidate GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib/gcc/x86_64-unknown-linux-gnu/10.3.0
Found candidate GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0
Selected GCC installation: /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
(in-process)
"/nix/store/9k6x3pif7fq745rqx295mwn94z9slx6n-clang-13.0.0/bin/clang-13" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -main-file-name OpenMPTryFlag.cpp -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb -v -fcoverage-compilation-dir=/build/test/build/CMakeFiles/CMakeTmp -nostdsysteminc -resource-dir /nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root -dependency-file CMakeFiles/cmTC_d7eb1.dir/OpenMPTryFlag.cpp.o.d -MT CMakeFiles/cmTC_d7eb1.dir/OpenMPTryFlag.cpp.o -sys-header-deps -idirafter /nix/store/vccvfa5bjb9dv4x6zq5gjf1yp58y4brg-glibc-2.33-108-dev/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include -isystem /nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include -isystem /nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include -isystem /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include -isystem /nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include -isystem /nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include -isystem /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include -isystem /nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1 -D _FORTIFY_SOURCE=2 -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0 -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/x86_64-unknown-linux-gnu -internal-isystem /nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/backward -internal-isystem /nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root/include -O2 -Wformat -Wformat-security -Werror=format-security -fdeprecated-macro -fdebug-compilation-dir=/build/test/build/CMakeFiles/CMakeTmp -ferror-limit 19 -fwrapv -stack-protector 2 -stack-protector-buffer-size 4 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -fopenmp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_d7eb1.dir/OpenMPTryFlag.cpp.o -x c++ /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp
clang -cc1 version 13.0.0 based upon LLVM 13.0.0 default target x86_64-unknown-linux-gnu
ignoring duplicate directory "/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include"
ignoring duplicate directory "/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include"
#include "..." search starts here:
#include <...> search starts here:
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include
/nix/store/6pg9132gkwqdpgpymf422igx98ffy7sl-libcxxabi-13.0.0-dev/include
/nix/store/kqi2m0f8g3p4ylk8ja76wk61i53gqgqm-compiler-rt-libc-13.0.0-dev/include
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/x86_64-unknown-linux-gnu
/nix/store/2dv93bbc06c7zg866qid73j3r36zz3jx-gcc-10.3.0/lib64/gcc/x86_64-unknown-linux-gnu/10.3.0/../../../../include/c++/10.3.0/backward
/nix/store/09vrbabr36jg49s3s4hfs5d0gx9mm3lc-clang-wrapper-13.0.0/resource-root/include
/nix/store/vccvfa5bjb9dv4x6zq5gjf1yp58y4brg-glibc-2.33-108-dev/include
End of search list.
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
In file included from /nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:18:
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:142:34: error: unknown type name 'ldiv_t'
inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(long __x, long __y) _NOEXCEPT {
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace
return ::ldiv(__x, __y);
~~^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:146:34: error: unknown type name 'lldiv_t'
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x,
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/stdlib.h:148:12: error: no member named 'lldiv' in the global namespace
return ::lldiv(__x, __y);
~~^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: use of undeclared identifier 'size_t'; did you mean 'std::size_t'?
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/cstdlib:99:9: note: 'std::size_t' declared here
using ::size_t _LIBCPP_USING_IF_EXISTS;
^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: reference to unresolved using declaration
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ydb1lxv6wx9sc7zdnb5rvrcld9ylkqj1-libcxx-13.0.0-dev/include/c++/v1/cstdlib:99:1: note: using declaration annotated with 'using_if_exists' here
using ::size_t _LIBCPP_USING_IF_EXISTS;
^
In file included from /build/test/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:142:58: error: unknown type name 'size_t'
extern void* __KAI_KMPC_CONVENTION omp_target_alloc(size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:81: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:89: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:145:97: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy(void *, const void *, size_t, size_t, size_t, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:146:86: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_rect(void *, const void *, size_t, int, const size_t *,
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:146:105: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_rect(void *, const void *, size_t, int, const size_t *,
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:51: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:67: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:83: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:147:99: error: unknown type name 'size_t'
const size_t *, const size_t *, const size_t *, const size_t *, int, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:148:94: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_associate_ptr(const void *, const void *, size_t, size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:148:102: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_associate_ptr(const void *, const void *, size_t, size_t, int);
^
/nix/store/ka2b8sn31b3msfcwsfc2s6ca84p940yb-openmp-13.0.0/include/omp.h:231:88: error: unknown type name 'size_t'
extern int __KAI_KMPC_CONVENTION omp_target_memcpy_async(void *, const void *, size_t, size_t, size_t, int,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [CMakeFiles/cmTC_d7eb1.dir/build.make:79: CMakeFiles/cmTC_d7eb1.dir/OpenMPTryFlag.cpp.o] Error 1
make[1]: Leaving directory '/build/test/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_d7eb1/fast] Error 2
Describe the bug
Clang does not include the OpenMP runtime as part of the compiler like GCC does. It has to be installed separately and is packaged as
llvmPackages.openmp. However, CMake is unable to find OpenMP despite adding it tobuildInputs.Below is an example consisting of three files that have to be placed in the same directory to reproduce.
The
CMakeError.logsuggests that the standard library is not setup correctly. There are lots ofunknown type nameerrors. UsingllvmPackages_13.stdenvinstead ofllvmPackages_13.libcxxStdenvworks, but I want to build against libc++.Steps To Reproduce
Tested failing on:
omp_test.cppCMakeLists.txtdefault.nix/tmp/nix-build-omp_test.drv-0/test/build/CMakeFiles/CMakeError.logExpected behavior
It compiles.
Screenshots
N/A
Additional context
Discourse reference: https://discourse.nixos.org/t/cmake-is-unable-to-find-openmp-from-llvmpackages-13/17679
Notify maintainers
@lovek323 @7c6f434c @dtzWill @primeos
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"and paste the result."x86_64-linux"Linux 5.4.0-97-generic, Ubuntu, 20.04.4 LTS (Focal Fossa)yesyesnix-env (Nix) 2.4"nixpkgs"/nix/var/nix/profiles/per-user/root/channels/nixpkgs