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

ifort 16.0.1 error on mac

Smrkolj__Grega
Beginner
1,921 Views

Hi,

 

I've just installed Parallel Studio XE Composer Edition for Fortran OS X* 2016 Update 1. I cannot get ifort run. Whichever .f90 file I run from the OS X command window, I get the following error:

ifort test.f90

ifort: error #10106: Fatal error in gcc, terminated by segmentation violation

ifort: error #10106: Fatal error in gcc, terminated by segmentation violation

 

There is no problem with my file as other fortran compilers (e.g gfortran) compile with no error. 

 

0 Kudos
10 Replies
Smrkolj__Grega
Beginner
1,921 Views

PS I'm on OS X El Capital, version 10.11.2

0 Kudos
Kevin_D_Intel
Employee
1,921 Views

What version of Xcode do you have installed?

It appears OS X* 10.11.2 was recently released (maybe on/about Dec. 8) and I’m not finding any existing internally reported issues with that error signature so this may be something we are not currently aware of. I have inquired with our QA team on whether they have tested under the latest OS X* and Xcode. We only recently added support for OS X* 10.11.1 and Xcode 7.1 in the PSXE 2016 Update 1 that you noted having.

Is there any possibility of your stepping back to supported versions of OS X* and Xcode by PSXE 2016 Update 1?

0 Kudos
Smrkolj__Grega
Beginner
1,921 Views

My XCode version is 6.4. I'm afraid I cannot step back to former OS X. I have just noticed that the f-file (a simple test file though) compiles despite this error and a.out seems to run, but I don't know how the things are affected. Could something else than OS X version be a reason for this error? I suppose there were no major changes in the latest OS X update. 

 

0 Kudos
Kevin_D_Intel
Employee
1,921 Views

Does gcc compile a simple test.c on your system?

From what you described maybe the failure relates to our compiler driver performing a gcc related inquiry and while that fails it is not sufficient to derail the actual compilation. I'll have to inquire with our Driver team.

0 Kudos
Smrkolj__Grega
Beginner
1,921 Views

Do you mean something like below? In this case it fails completely.  

gcc test.f90

Segmentation fault: 11

0 Kudos
Kevin_D_Intel
Employee
1,921 Views

No, you would provide a C program, something like a test.c file containing:

main()
{
}

If the seg-fault occurs with test.c then that is likely the root of the error that ifort suffered too.

Our QA team will try testing your Xcode 6.4 + OS X* 10.11.2 to see whether that combination works. They did confirm that OS X* 10.11.2 and Xcode 7.2 works with PSXE 2016 Update 1.
 

0 Kudos
Kevin_D_Intel
Employee
1,921 Views

Actually, back to your earlier attempt at using gcc with the Fortran source file, I'm told that too should not suffer a seg-fault and so it appears the root of the issue is with gcc. Please check the installation of gcc on your system. Once gcc is working that should resolve the fault occurring with ifort as well.

0 Kudos
Smrkolj__Grega
Beginner
1,921 Views

Thank you Kevin! I re-installed Xcode (ver 7.1) and Command Line Tools for OS X 10.11. However, whenever I type "gcc -v" in terminal window, I get the message "Segmentation fault: 11". It seems there is really something wrong with gcc. Do you perhaps know how to fix this? I reinstalled xcode and command line tools (which does not help) and googling around I can't find any solution....

0 Kudos
Steven_L_Intel1
Employee
1,921 Views

Apple doesn't provide gcc anymore - you have to install it separately. https://wiki.helsinki.fi/display/HUGG/Installing+the+GNU+compilers+on+Mac+OS+X is one page I found explaining how to do this.

0 Kudos
Smrkolj__Grega
Beginner
1,921 Views

Hi, many thanks for your prompt reply. However, I installed GCC 5.3.0 tar, but was still getting segmentation fault 11. What has finally solved the problem is the following suggestion I found googling around. Ifort now works with no problems reported. 

"I found that clang (Apple's LLVM-based C compiler) is intended to be a compatible replacement for gcc, so I just sym-linked gcc to clang as follows:

whence gcc #=> /usr/local/bin/gcc
whence clang #=> /usr/bin/clang
cd /usr/local/bin
sudo mv gcc gcc_OLD
sudo ln -s /usr/bin/clang /usr/local/bin/gcc
gcc -v
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
0 Kudos
Reply