Trying to build top of tree LLVM with openmp runtime on Apple Silicon Mac fails with the following link errors.
Undefined symbols for architecture arm64:
"___divdc3", referenced from:
___kmpc_atomic_cmplx8_div in kmp_atomic.cpp.o
___kmpc_atomic_cmplx4_div_cmplx8 in kmp_atomic.cpp.o
___kmpc_atomic_cmplx8_div_cpt in kmp_atomic.cpp.o
___kmpc_atomic_cmplx10_div_cpt in kmp_atomic.cpp.o
"___divsc3", referenced from:
___kmpc_atomic_cmplx4_div in kmp_atomic.cpp.o
___kmpc_atomic_cmplx4_div_cpt in kmp_atomic.cpp.o
Thorsten,
“I would be surprised if you get OpenMP offload to run on Apple Silicon”, so would I, but that isn’t the point at hand, since kmp_atomic.cpp is not an offload file, it’s in the normal, host, runtime.
– Jim
Sorry. The compilation error can probably be solved by adding compiler-rt to the build. The other issue is the attempt to try OpenMP target on Apple Silicon.