[CMake] Intel compiler on OS X? (solved)
Michael Jackson
mike.jackson at bluequartz.net
Thu Jul 2 14:33:40 EDT 2009
There is a Darwin-icpc module shipped with CMake. It used to work when
I created it but maybe something broke during development or when
Intel shipped a new compiler? I setup the following in my .bash_profile:
alias intelcompile='export CC=/usr/bin/icc; export CXX=/usr/bin/icpc;
source ${ICC_INSTALL_DIR}/bin/iccvars.sh; source ${IPP_INSTALL_DIR}/
tools/env/ippvars.sh'
then with a clean build directory I would do the following:
[ ] $ intelcompile
[ ] $ cmake ../
and all would work from there.
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
On Jul 2, 2009, at 2:14 PM, Convey, Christian J CIV NUWC NWPT wrote:
> It turns out that to compile c++ code, you use the "icpc" command to
> invoke the compiler, rather than the "icc" command.
>
>> -----Original Message-----
>> From: cmake-bounces at cmake.org
>> [mailto:cmake-bounces at cmake.org] On Behalf Of Convey,
>> Christian J CIV NUWC NWPT
>> Sent: Thursday, July 02, 2009 13:42
>> To: cmake at cmake.org
>> Subject: [CMake] Intel compiler on OS X?
>>
>> Has anyone successfully used cmake (2.4.6) with the Intel
>> "icc" compiler (version 11.1) for OS X?
>>
>> When I run cmake I get an error: During cmake's "configure"
>> phase, cmake tells me that it couldn't successfully compile a
>> simple test program using the "icc" compiler. The specific
>> error issued is by the linker:
>>
>> Undefined symbols:
>>
>> "____gxx_personality_v0", referenced from:
>> EH_frame0 in testCXXCompiler.cxx.o
>>
>> ld: symbol(s) not found
>>
>>
>>
>> Christian Convey
>> Scientist
>> Naval Undersea Warfare Centers
>> Newport, Rhode Island, USA
>> (p) (401) 832-6824
>> (f) (401) 832-4749
>>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list