Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29362 Discussions

ifort: error #10149: option '-cxxlib-gcc' not supported with the current installed GCC

steve_kruegerutah_ed
958 Views
I am trying to compile a program and get this error. How do I fix it?

gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)

I installed the latest SDK (xcode 3.1.2).
/Developer/usr/bin contains
i686-apple-darwin9-g++-4.0.1
i686-apple-darwin9-g++-4.2.1

0 Kudos
3 Replies
Kevin_D_Intel
Employee
958 Views

The error indicates exceeding the supported version of gcc/g++ for version of ifort used.

Can you get ifort to identify itself with: ifort -V

You should try uninstalling the SDK as that may have taken gcc/g++ beyond the versions supported by your version of ifort.

Our 10.1 and 11.0 releases both support Xcode 3.1.x. See the URL below for the current compiler/Xcode supported versions.

http://software.intel.com/en-us/articles/performance-tools-for-software-developers-compatibility-of-intel-compiler-for-mac-os-x-and-xcode/
0 Kudos
steve_kruegerutah_ed
958 Views

The error indicates exceeding the supported version of gcc/g++ for version of ifort used.

Can you get ifort to identify itself with: ifort -V


% ifort -V
Intel Fortran Compiler Professional for applications running on Intel 64, Version 11.0 Build 20090131 Package ID: m_cprof_p_11.0.059

0 Kudos
Ron_Green
Moderator
958 Views
Steve,

I see that your question was answered in Premier, with you finding the fix in deinstalling Xcode and reinstalling everything (including the Intel compiler, I assume).

There was another user with a similar error not too long ago. I'd like to document the debug procedure for future Forum readers:

Please provide the output from the following commands:

ifort -V
gcc --version
g++ --version
sw_vers
echo $GXX_ROOT

The Intel Fortra compiler uses the libraries provided with gcc and g++ and invokes
these compilers to determine the directory path to the libraries.

The error message will sometimes occur when the compiler has a problem locating
gcc or g++.

But we're still not sure how either your system or this other user's got into it's state. Did you install Xcode 3.1.2 AFTER the compiler? I'd like to better understand how you think your system got into it's bad state.

thanks

ron
0 Kudos
Reply