<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 16, 2017 at 1:36 PM, Georgios Rokos <span dir="ltr"><<a href="mailto:grokos@us.ibm.com" target="_blank">grokos@us.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><p><font size="2">Hi Jack,</font><span class="gmail-"><br><br><font size="2">"</font><tt><i><font size="2">Is there a cmake variable which can be set to suppress the build of libomptarget.dylib until this issue is fixed properly?</font></i></tt><font size="2">"</font><br><br></span><font size="2">Yes, it is easy to fix. I'll submit a patch.</font><br><br><font size="2">George</font></p></div></blockquote><div><br></div>Are you planning to retain the building of libomptarget.dylib on darwin by avoiding the use of the unsupported -version-script linker option?<br> Jack<br>ps Currently I am working around this issue by using the change...</div><div class="gmail_quote"><br><div><div>Index: CMakeLists.txt</div><div>===================================================================</div><div>--- CMakeLists.txt<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>(revision 298112)</div><div>+++ CMakeLists.txt<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>(working copy)</div><div>@@ -4,6 +4,6 @@ set(OPENMP_LLVM_TOOLS_DIR "" CACHE PATH </div><div> </div><div> add_subdirectory(runtime)</div><div> </div><div>-if (NOT WIN32)</div><div>+if (NOT WIN32 AND NOT APPLE)</div><div> add_subdirectory(libomptarget)</div><div> endif()</div></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><p><br><img width="16" height="16" src="cid:1__=0ABB0A76DFF315878f9e8a93df938690918c0AB@" border="0" alt="Inactive hide details for Jack Howarth via Openmp-dev ---16/03/2017 09:18:41---Currently trunk fails to build openmp on darwin"><font size="2" color="#424282">Jack Howarth via Openmp-dev ---16/03/2017 09:18:41---Currently trunk fails to build openmp on darwin due to the failure of... [ 46%] Linking CXX shared l</font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">Jack Howarth via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a>></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">"openmp-dev (<a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a>)" <<a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a>>, llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">16/03/2017 09:18</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">[Openmp-dev] disabling lib/libomptarget.dylib build?</font><br><font size="2" color="#5F5F5F">Sent by: </font><font size="2">"Openmp-dev" <<a href="mailto:openmp-dev-bounces@lists.llvm.org" target="_blank">openmp-dev-bounces@lists.<wbr>llvm.org</a>></font><br></p><hr width="100%" size="2" align="left" noshade style="color:rgb(128,145,165)"><div><div class="gmail-h5"><br><br><br><tt><font size="2">Currently trunk fails to build openmp on darwin due to the failure of...<br><br>[ 46%] Linking CXX shared library ../../../lib/libomptarget.<wbr>dylib<br>cd /sw/src/fink.build/llvm50-5.0.<wbr>0-1/build/stage1/projects/<wbr>openmp/libomptarget<br>&& /sw/bin/cmake -E cmake_link_script<br>CMakeFiles/omptarget.dir/link.<wbr>txt --verbose=1<br>/sw/src/fink.build/llvm50-5.0.<wbr>0-1/opt-bin/ccclang++ -fno-common -fPIC<br>-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter<br>-Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic<br>-Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor<br>-Wdelete-non-virtual-dtor -Wstring-conversion -Werror=date-time<br>-std=c++11 -O3 -dynamiclib -Wl,-headerpad_max_install_<wbr>names -L/sw/lib<br>-o ../../../lib/libomptarget.<wbr>dylib -install_name<br>/sw/src/fink.build/llvm50-5.0.<wbr>0-1/build/stage1/lib/<wbr>libomptarget.dylib<br>CMakeFiles/omptarget.dir/src/<wbr>omptarget.cpp.o -ldl<br>-Wl,--version-script=/sw/src/<wbr>fink.build/llvm50-5.0.0-1/<wbr>llvm-5.0.0.src/projects/<wbr>openmp/libomptarget/exports<br>ld: unknown option:<br>--version-script=/sw/src/fink.<wbr>build/llvm50-5.0.0-1/llvm-5.0.<wbr>0.src/projects/openmp/<wbr>libomptarget/exports<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>make[2]: *** [lib/libomptarget.dylib] Error 1<br>make[1]: *** [projects/openmp/libomptarget/<wbr>CMakeFiles/omptarget.dir/all] Error 2<br>make: *** [all] Error 2<br><br>when the cmake build attempts to use the unsupported -version-script<br>linker option on darwin. Is there a cmake variable which can be set to<br>suppress the build of libomptarget.dylib until this issue is fixed<br>properly?<br> Jack<br>ps This issue is filed as </font></tt><tt><font size="2"><a href="http://bugs.llvm.org/show_bug.cgi?id=32309" target="_blank">http://bugs.llvm.org/show_bug.<wbr>cgi?id=32309</a></font></tt></div></div><tt><font size="2"><div><div class="gmail-h5"><br><br>Bug 32309 - ld: unknown option: --version-script= failure in<br>lib/libomptarget.dylib on darwin<br></div></div>______________________________<wbr>_________________<br>Openmp-dev mailing list<br><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br></font></tt><tt><font size="2"><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/openmp-dev</a></font></tt><tt><font size="2"><br></font></tt><br><br><br>
<p></p></div>
</blockquote></div><br></div></div>