Fortran runtime error on macOS Sonoma

I runned Fortran 95 with macos Ventura and Xcode 14.2. Upgraded to macOs Sonoma and to Xcode15.3, but now fortran is not running. Many error messages received. What should I do? Uninstall gcc (gfortran) and re-install a new version


iMac 24-inch,M1,2021. Chip Apple M1.

Messages:

-macosx_version_min has been renamed to -macos_version_min


ld: warning: ignoring duplicate libraries: '-lSystem', '-lgcc', '-lgcc_ext.10.5'


ld: warning: Support for dylib stub (MH_DYLIB_STUB) file '/usr/local/gfortran/lib/libgcc_ext.10.5.dylib' is deprecated, text-based stubs should be used instead (with `GENERATE_TEXT_BASED_STUBS` build setting, or `tapi` tool)


ld: malformed mach-o missing relocations, LC_DYLD_INFO, or LC_DYLD_CHAINED_FIXUPS in '/usr/local/gfortran/lib/libgcc_ext.10.5.dylib'


collect2: error: ld returned 1 exit status


More details:

mac@MBP-di-Casa-2 ~ % which gfortran


/usr/local/bin/gfortran


mac@MBP-di-Casa-2 ~ % gfortran -v


Using built-in specs.


COLLECT_GCC=gfortran


COLLECT_LTO_WRAPPER=/usr/local/gfortran/libexec/gcc/x86_64-apple-darwin18/8.2.0/lto-wrapper


Target: x86_64-apple-darwin18


Configured with: ../gcc-8.2.0/configure --prefix=/usr/local/gfortran --with-gmp=/Users/fx/devel/gcc/build_package/deps --enable-languages=c,c++,fortran,objc,obj-c++ --build=x86_64-apple-darwin18 --disable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk


Thread model: posix


gcc version 8.2.0 (GCC) 


mac@MBP-di-Casa-2 ~ % which gcc


/usr/local/bin/gcc


mac@MBP-di-Casa-2 ~ % gcc -v


Using built-in specs.


COLLECT_GCC=gcc


COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin15.6.0/7.1.0/lto-wrapper


Target: x86_64-apple-darwin15.6.0


Configured with: ../gcc-7.1.0/configure --enable-languages=c++,fortran


Thread model: posix


gcc version 7.1.0 (GCC) 


[Edited by Moderator]

iMac 27″, macOS 10.13

Posted on Mar 27, 2024 4:28 AM

Reply

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Fortran runtime error on macOS Sonoma

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.