<div dir="ltr">Hi,<div>I&#39;m not sure if I should submit a bug report about this or not, but there are two issues with building distributable binaries with the Intel compilers on Mac OS X.</div><div><br></div><div><div><ol>

<li>I think that &#39;-Wl,-macosx_version_min,${CMAKE_OSX_DEPLOYMENT_TARGET}&#39; should be added to all the linker flags. Without this, using Unix Makefiles as the generator, this flag doesn&#39;t get passed to the linker and as a result the executable only runs on systems with the same OS as the executable was built on. (Possibly newer OSes too, but I haven&#39;t tested this.) If I build a binary on 10.8 and try to run it on my wife&#39;s computer without passing this flag, even though CMAKE_OSX_DEPLOYMENT_TARGET is set to 10.6, I get the following error: &#39;Illegal instruction: 4&#39; I have no idea whether this issue applies to the XCode generator as well. See <a href="http://software.intel.com/en-us/articles/running-an-intel-compiled-binary-on-older-mac-os-x-system-gives-dyld-unknown-required-load">http://software.intel.com/en-us/articles/running-an-intel-compiled-binary-on-older-mac-os-x-system-gives-dyld-unknown-required-load</a></li>

<li>While ifort, icc and icpc provide -arch=i386 and -arch=x86_64 compatibility options (for compatibility with GCC) the prefered flags are -m 32 and -m 64 respectively. Furthermore, CMake tries to pass all the architecture flags at once to the compilers, whereas to build a universal binary with the Intel compilers one must first build the intel 64 and intel 32 versions separately and then combine them with the lipo tool. See <a href="http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/fortran-mac/GUID-8C316F3A-4F41-4F08-8A94-789BA2CBBA48.htm">http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/fortran-mac/GUID-8C316F3A-4F41-4F08-8A94-789BA2CBBA48.htm</a></li>

</ol></div>Should I submit a bug report? Am I missing something?</div><div><br></div><div>Thanks,</div><div>Zaak</div><div><div>Izaak Beekman<br>===================================<br>(301)244-9367<br>Princeton University Doctoral Candidate<br>

Mechanical and Aerospace Engineering<br><a href="mailto:ibeekman@princeton.edu" target="_blank">ibeekman@princeton.edu</a><br><br>UMD-CP Visiting Graduate Student<br>Aerospace Engineering<br><a href="mailto:ibeekman@umiacs.umd.edu" target="_blank">ibeekman@umiacs.umd.edu</a><br>

<a href="mailto:ibeekman@umd.edu" target="_blank">ibeekman@umd.edu</a></div>
</div></div>