error compiling OpenMP with llvm in NAS

Hi everyone,

I want to use llvm to compile parallel NAS benchmark (it uses openmp). However, I get the following error:

/home/norouzi/Desktop/software/dp_clang/bin/llvm-link -o …/bin/ep.A.x ep.o …/common/print_results.o …/common/randdp.o …/common/c_timers.o …/common/wtime.o
/home/norouzi/Desktop/software/dp_clang/bin/llvm-link: ep.o:1:1: error: expected top-level entity
/home/norouzi/Desktop/software/dp_clang/bin/llvm-link: error loading file ‘ep.o’
make[1]: *** […/bin/ep.A.x] Error 1
make[1]: Leaving directory `/home/norouzi/Desktop/software/benchmarks/NAS/NPB3.3-OMP-C/EP’
make: *** [ep] Error 2

I highly appreciate if someone could help. I have also attached the config file.



make.def (6.92 KB)