Estoy intentando compilar un programa hello world en fortran en Mac OS Big Sur. Antes de actualizar todo funcionaba bien.
Compilo con esta línea:
~ % gfortran hw.f90
--> ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
He instalado gnu gfortran y gcc antes de actualizar. Salida del comando de versión:
~ % gfortran --version
--> GNU Fortran (Homebrew GCC 10.2.0) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~ % gcc --version
--> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.28)
Target: x86_64-apple-darwin20.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Salida de qué comando:
~ % which gfortran
--> /usr/local/bin/gfortran
~ % which gcc
--> /usr/bin/gcc
0 votos
Relacionado apple.stackexchange.com/questions/372297/
0 votos
Ver las listas de correo de macports lists.macports.org/pipermail/macports-users/2020-December/