Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26733 Discussions

New macOS Big Sur return "ld: library not found for -lSystem"

joesch
Novice
96,975 Views

I update the newest macOS Big Sur version. But the intel fortran does not work.

The version is "ifort version 19.1.3.301".

1 Solution
joesch
Novice
96,820 Views

The problem is solved when the path to the lib is specified:

ifort xxx.f90  -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib

It seems the lib is now not under the default path.

@Ron_Green @Steve_Lionel 

View solution in original post

13 Replies
Steve_Lionel
Black Belt Retired Employee
96,925 Views

I would be astonished if it DID work. New MacOS releases tend to break non-Apple software more often than not; it's even worse than Linux for this.  Did you re-add the XCode command line tools?

xcode-select --install

Historically, Intel has had to make adjustments in the installation to accommodate new MacOS releases. I'm sure that Ron, a "Mac guy", will chime in with his own observations.

joesch
Novice
96,862 Views

I reinstall xcode 12.2. It does not solve the problem.

It seems to be a problem with Mac OS, because gfortran returns the same error.

@Ron_Green 

Jose_T_Galvez
Novice
96,859 Views

In my case gfortran does work...

 

joesch
Novice
96,857 Views

It is interesting. I installed gfortran using miniconda. Maybe it is the problem.

Jose_T_Galvez
Novice
96,848 Views

I solved it in my machine (might not be applicable to yours). I had a problem with Xcode.

Once you have installed Xcode, run:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Then accept the license (only if you previously haven't) by:

sudo xcodebuild -license

Then try running the ifort code again, this worked out for me...

Hope it helps you!

 

joesch
Novice
96,836 Views

Thanks, Jose. I did not install Xcode.app, maybe it is a useful solution. 

joesch
Novice
96,821 Views

The problem is solved when the path to the lib is specified:

ifort xxx.f90  -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib

It seems the lib is now not under the default path.

@Ron_Green @Steve_Lionel 

View solution in original post

RANCHO
Beginner
95,658 Views

I have same problem!

Thanks for your way, it's very effective 。

But how should I change my configuration envirament get it back normal?

joesch
Novice
95,649 Views

I just write an alias in the .zshrc file.

alias ifort = "ifort -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib"

It works fine for me.

Alain_F_
Beginner
92,446 Views

I am using Big Sur 11.2 and ifort 19.1.0.166 .

Command line compilation works without the modification you suggest.

Several of posts quote Xcode. Do you compile with ifort through Xcode ? I thought Intel had dropped the Xcode support for long.

I just bought a renewal of my ifort license and the Installer says "Unsupported version" !!!

Steve_Lionel
Black Belt Retired Employee
92,432 Views

As this post says, Big Sur is supported in the 2021 oneAPI compiler, but not earlier versions.

Intel is no longer supporting doing builds from within Xcode, but you still need it installed. See https://software.intel.com/content/www/us/en/develop/articles/oneapi-fortran-compiler-system-require...

 
Ron_Green
Moderator
96,915 Views

what version of Xcode is installed?

Jose_T_Galvez
Novice
96,873 Views

I have exactly the same issue and have Xcode 12.2 installed

Reply