<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello all,&nbsp;</div><div><br></div><div>libomp still fails to build as a dependency of clang 3.8 installation as shown in Step 4:</div><div><br></div><div>main.log from&nbsp;</div><div>/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_libomp/libomp/</div><div><a href="http://pastebin.com/9YwFQusZ">http://pastebin.com/9YwFQusZ</a></div><div><br></div><div>This is earlier than Step 8 that was modified by Jeremy.</div><div><br></div><div>How do I work around this error?</div><div><br></div><div>Pat</div><div><br></div><div><br></div><br><div><div>El 2016-07-31, a las 00:20, Jeremy Huddleston Sequoia escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br><blockquote type="cite">On Jul 30, 2016, at 18:16, Ryan Schmidt &lt;<a href="mailto:ryandesign@macports.org">ryandesign@macports.org</a>&gt; wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">On Jul 30, 2016, at 7:58 AM, [ftp83plus] wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">El 29 jul 2016, a las 16:45, Lawrence Velázquez escribió:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">On Jul 29, 2016, at 1:35 AM, Ken Cunningham wrote:<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">/opt/local/bin/clang++-mp-3.3 &nbsp;&nbsp;-pipe -Os -stdlib=libc++ &nbsp;&nbsp;-arch i386 -mmacosx-version-min=10.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names &nbsp;-L/opt/local/lib -Wl,-headerpad_max_install_names &nbsp;CMakeFiles/cmTC_70577.dir/testCXXCompiler.cxx.o &nbsp;-o cmTC_70577 &nbsp;<br></blockquote></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">ld: warning: ignoring file /usr/lib/libc++.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /usr/lib/libc++.dylib<br></blockquote></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">You're building for -arch i386, but your libc++.dylib does not have<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">that architecture (it's likely going to be x64_86) -- So somewhere<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">( probably in your macports.conf file, I would think) your<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">architecture is not set correctly.<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">The libomp port is being installed +universal. Since it uses the muniversal-1.0 portgroup, MacPorts builds it for each architecture separately, then lipo(1)s everything together at the end.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">The problem is that the i386 build is trying to link to libc++, which in your case appears to be provided by libcxx. But libomp does not declare a dependency on libcxx, so MacPorts did not attempt to rebuild libcxx +universal. You may have to do this yourself.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">vq<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">So should I rebuild libcxx +universal variant first before performing Step 4 of the LibcxxOnOlderSystems?<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Jeremy, shouldn't we modify the LibcxxOnOlderSystems instructions to include installing libcxx +universal?<br></blockquote><br><br>Something like this should work:<br><br>sudo port -v -s upgrade --enforce-variants libcxx +universal universal_archs="x86_64 i386" configure.compiler=macports-clang-3.8<br><br>or:<br><br>sudo port -v -s upgrade --enforce-variants ld64 +ld64_127<br>sudo port -v -s upgrade --enforce-variants libcxx +universal universal_archs="x86_64 i386 ppc" configure.compiler=macports-clang-3.8<br><br>I've updated the wiki as well.</div></blockquote></div><br></body></html>