[Openmp-dev] Linking fails on Windows
İsmail Dönmez
ismail at donmez.ws
Wed Aug 5 02:59:54 PDT 2015
Hi,
Tried to build openmp alongside llvm/clang and it fails at the linking stage:
FAILED: cmd.exe /C "cd . && "C:\Program Files
(x86)\CMake\bin\cmake.exe" -E vs_link_dll
C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_alloc.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_atomic.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_csupport.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_debug.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_itt.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_environment.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_error.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_global.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_i18n.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_io.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_runtime.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_settings.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_str.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_tasking.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_taskq.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_threadprivate.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_utility.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\z_Windows_NT_util.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\z_Windows_NT-586_util.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\thirdparty\ittnotify\ittnotify_static.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_ftn_cdecl.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_ftn_extra.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_version.c.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_barrier.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_wait_release.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_affinity.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_dispatch.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_lock.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_sched.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_taskdeps.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_cancel.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\z_Windows_NT-586_asm.asm.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\libomp.rc.res
/out:bin\libomp.dll /implib:lib\libomp.dll.lib /pdb:bin\libomp.dll.pdb
/dll /version:5.0 /machine:x64 /INCREMENTAL:NO
/DEF:C:/cygwin64/home/ismail/src/llvm/dist/projects/openmp/runtime/src/libomp.def
kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cmd.exe /C "cd /D
C:\cygwin64\home\ismail\src\llvm\dist\projects\openmp\runtime\src &&
"C:\Program Files (x86)\CMake\bin\cmake.exe" -E make_directory
C:/cygwin64/home/ismail/src/llvm/projects/openmp/runtime/exports/common/include
&& "C:\Program Files (x86)\CMake\bin\cmake.exe" -E copy omp.h
C:/cygwin64/home/ismail/src/llvm/projects/openmp/runtime/exports/common/include
&& cd /D C:\cygwin64\home\ismail\src\llvm\dist\projects\openmp\runtime\src
&& "C:\Program Files (x86)\CMake\bin\cmake.exe" -E make_directory
C:/cygwin64/home/ismail/src/llvm/projects/openmp/runtime/exports/win_32e/lib
&& "C:\Program Files (x86)\CMake\bin\cmake.exe" -E copy
C:/cygwin64/home/ismail/src/llvm/dist/bin/libomp.dll
C:/cygwin64/home/ismail/src/llvm/projects/openmp/runtime/exports/win_32e/lib""
libomp.def : error LNK2001: unresolved external symbol __kmp_debugging
libomp.def : error LNK2001: unresolved external symbol
__kmp_omp_debug_struct_info
lib\libomp.dll.lib : fatal error LNK1120: 2 unresolved externals
This is on Windows 7 x64 with VS2015. Any clues?
Thanks.
More information about the Openmp-dev
mailing list