Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
947 Views

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

Jump to solution

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

The version is "ifort version 19.1.3.301".

0 Kudos

Accepted Solutions
Highlighted
Novice
797 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.

@Ronald_G_Intel @Steve_Lionel 

View solution in original post

0 Kudos
9 Replies
Highlighted
Black Belt Retired Employee
902 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.

0 Kudos
Highlighted
Moderator
892 Views

what version of Xcode is installed?

0 Kudos
Highlighted
Beginner
850 Views

I have exactly the same issue and have Xcode 12.2 installed

0 Kudos
Highlighted
Novice
839 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.

@Ronald_G_Intel 

0 Kudos
Highlighted
Beginner
836 Views

In my case gfortran does work...

 

0 Kudos
Highlighted
Novice
834 Views

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

0 Kudos
Highlighted
Beginner
825 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!

 

0 Kudos
Highlighted
Novice
813 Views

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

0 Kudos
Highlighted
Novice
798 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.

@Ronald_G_Intel @Steve_Lionel 

View solution in original post

0 Kudos