- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I update the newest macOS Big Sur version. But the intel fortran does not work.
The version is "ifort version 19.1.3.301".
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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.
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
It is interesting. I installed gfortran using miniconda. Maybe it is the problem.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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!
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Thanks, Jose. I did not install Xcode.app, maybe it is a useful solution.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I have same problem!
Thanks for your way, it's very effective 。
But how should I change my configuration envirament get it back normal?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I just write an alias in the .zshrc file.
alias ifort = "ifort -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/u
It works fine for me.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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" !!!
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
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-requirements.html#inpage-nav-2-2
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
This did work for me in the terminal.
However, when I put the following in a makefile, it again cannot find -lSystem:
ifort -c xxx.f90
ifor -o xxx *.o -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
rm -f *.o *.mod
Do you perhaps have a suggestion for how to make it work in a makefile?
Thanks
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
did you run this command
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
if so, you would not need -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
try removing that -L argument from the ifort command
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I ran the command you suggested and it returned
xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/Developer'
I did previously do a
xcode-select --install
which if I run again returns
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
OK there is definitely a bug here with the ifort and icc/icpx Intel drivers.
Bit of legacy - both compilers USED TO require Xcode installation. Not just Command Line tools but Xcode AND Command Line tools. Goes back years and years. SO the driver, ifort (or icc) ASSUME that Xcode is under /Applications. If Xcode is NOT there, or is in a different directory (which happens if you open the .xip zip file elsewhere and don't move the .app under /Applications manually) then the compiler cannot find the libs.
The fix would be to assume COMMAND LINE TOOLS and make NO assumption about Xcode. and path lib searches to the command line tool under /Library/Developer/CommandLineTools. This is because YOU HAVE TO HAVE COMMAND LINE TOOLS for either ifort or icc to work.
Let me get working on this. I'll enter a bug report. For now manually adding the -L path is a workaround.
ron