Hello all, 

I’m working on a MBP, 2018 model and yesterday I updated to the latest version 
of BigSur. Since then I cannot compile any fortran code and the error I get is 

ld: library not found for -lSystem
collect2: error: ld returned 1 exit status


I have tried both gcc9 and gcc10

gfortran -v gives this output :

Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin20/10.2.0/lto-wrapper
Target: x86_64-apple-darwin20
Configured with: 
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc10/gcc10/work/gcc-10.2.0/configure
 --prefix=/opt/local --build=x86_64-apple-darwin20 
--enable-languages=c,c++,objc,obj-c++,lto,fortran,jit 
--libdir=/opt/local/lib/gcc10 --includedir=/opt/local/include/gcc10 
--infodir=/opt/local/share/info --mandir=/opt/local/share/man 
--datarootdir=/opt/local/share/gcc-10 --with-local-prefix=/opt/local 
--with-system-zlib --disable-nls --program-suffix=-mp-10 
--with-gxx-include-dir=/opt/local/include/gcc10/c++/ --with-gmp=/opt/local 
--with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local 
--enable-stage1-checking --disable-multilib --enable-lto 
--enable-libstdcxx-time --with-build-config=bootstrap-debug 
--with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld 
--with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket 
<https://trac.macports.org/newticket> --enable-host-shared --disable-tls 
--with-pkgversion='MacPorts gcc10 10.2.0_4' 
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (MacPorts gcc10 10.2.0_4) 

I’ve removed and reinstalled MacPorts and all packages but it didn’t help.

Any ideas what may be the problem here? 

Thanks in advance for your help

Andreas 

Dr. Seismologist

Reply via email to