clang-omp / clang

clang with OpenMP 3.1 and some elements of OpenMP 4.0 support
clang-omp.github.com
Other
91 stars 15 forks source link

Can't build OpenMP runtime using clang-omp #55

Open gnzlbg opened 9 years ago

gnzlbg commented 9 years ago

I've installed clang-omp following the instructions on its website. The last step is to install the runtime library from openmp.llvm.org.

When following the instructions to install it in MacOS X Yosemite using:

make compiler=clang mode=release

I get the following error with clang-omp trunk:

----- 1/1 --- iomp.o -----
clang -r -nostartfiles -static-intel  -no-intel-extensions \
        -Wl,-unexported_symbols_list,external-symbols.lst \
        -Wl,-non_global_symbols_strip_list,external-symbols.lst \
        -filelist external-objects.lst \
        -o iomp.o ittnotify_static.o kmp_affinity.o kmp_alloc.o kmp_atomic.o kmp_barrier.o kmp_cancel.o kmp_csupport.o kmp_debug.o kmp_dispatch.o kmp_environment.o kmp_error.o kmp_ftn_cdecl.o kmp_ftn_extra.o kmp_global.o kmp_gsupport.o kmp_i18n.o kmp_io.o kmp_itt.o kmp_lock.o kmp_runtime.o kmp_sched.o kmp_settings.o kmp_str.o kmp_taskdeps.o kmp_tasking.o kmp_taskq.o kmp_threadprivate.o kmp_utility.o kmp_version.o kmp_wait_release.o z_Linux_asm.o z_Linux_util.o
clang: error: unknown argument: '-static-intel'
clang: error: unknown argument: '-no-intel-extensions'
make[1]: *** [iomp.o] Error 1

I didn't had this error the last time I installed clang-omp and the run-time library, is it an issue with clang-omp or the runtime and where should I report this error?

alexey-bataev commented 9 years ago

Hmm, that's very strange. I could not reproduce your problem. Try to build runtime using cmake

Best regards,

Alexey Bataev

Software Engineer Intel Compiler Team Intel Corp.

09.12.2014 19:45, gnzlbg пишет:

I've installed clang-omp following the instructions on its website http://clang-omp.github.io/. The last step is to install the runtime library from openmp.llvm.org http://openmp.llvm.org/.

When following the instructions to install it in MacOS X Yosemit

|make compiler=clang mode=release|

I get the following error with clang-omp trunk:

----- 1/1 --- iomp.o ----- clang -r -nostartfiles -static-intel -no-intel-extensions \ -Wl,-unexported_symbols_list,external-symbols.lst \ -Wl,-non_global_symbols_strip_list,external-symbols.lst \ -filelist external-objects.lst \ -o iomp.o ittnotify_static.o kmp_affinity.o kmp_alloc.o kmp_atomic.o kmp_barrier.o kmp_cancel.o kmp_csupport.o kmp_debug.o kmp_dispatch.o kmp_environment.o kmp_error.o kmp_ftn_cdecl.o kmp_ftn_extra.o kmp_global.o kmp_gsupport.o kmp_i18n.o kmp_io.o kmp_itt.o kmp_lock.o kmp_runtime.o kmp_sched.o kmp_settings.o kmp_str.o kmp_taskdeps.o kmp_tasking.o kmp_taskq.o kmp_threadprivate.o kmp_utility.o kmp_version.o kmp_wait_release.o z_Linux_asm.o z_Linux_util.o clang: error: unknown argument:'-static-intel' clang: error: unknown argument:'-no-intel-extensions' make[1]:*\ [iomp.o] Error 1

— Reply to this email directly or view it on GitHub https://github.com/clang-omp/clang/issues/55.

kshitij-v-mehta commented 9 years ago

Same issue for me.

alexey-bataev commented 9 years ago

Did you tried to build it with using regular clang? This must be reported to libiomp mailing list. Also, try to build using cmake

Best regards,

Alexey Bataev

Software Engineer Intel Compiler Team Intel Corp.

13.03.2015 7:55, kvm1983 пишет:

Same issue for me.

— Reply to this email directly or view it on GitHub https://github.com/clang-omp/clang/issues/55#issuecomment-78801052.

kshitij-v-mehta commented 9 years ago

Not sure I understand what regular clang means. For now, I removed those flags that cause the build to fail from src/makefile.mk and was able to build the library successfully.