https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112862
--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> --- > this appears to be fixed; I get clean fortran testsuite results on (x86_64) > Darwin21 and Darwin23. Please could you check and either close this or post > your Xcode version, configure line and OS version. I'm still seeing this in last Friday's bootstraps: macOS/Darwin versions Xcode version 12.7.2 (21G1974)/21.6.0 14.2 13.6.3 (22G436)/22.6.0 14.3 14.2.1 (23C71)/23.2.0 15.1 The full configure line for macOS 14 is /usr/local/bin/bash /vol/gcc/src/hg/master/darwin/configure --prefix=/vol/gcc --target=x86_64-apple-darwin23.2.0 --disable-multilib --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk --enable-libphobos --enable-objc-gc --with-target-bdw-gc-include=/vol/gcc/include --with-target-bdw-gc-lib=/vol/gcc/lib/amd64,i386=/vol/gcc/lib --with-gmp-include=/vol/gcc/include --with-gmp-lib=/vol/gcc/lib/amd64 --with-mpfr-include=/vol/gcc/include --with-mpfr-lib=/vol/gcc/lib/amd64 --with-mpc-include=/vol/gcc/include --with-mpc-lib=/vol/gcc/lib/amd64 --enable-languages=all,ada,obj-c++ --with-isl-include=/vol/gcc/include --with-isl-lib=/vol/gcc/lib/amd64 --with-zstd-include=/vol/gcc/include --with-zstd-lib=/vol/gcc/lib/amd64 --build=x86_64-apple-darwin23.2.0 --host=x86_64-apple-darwin23.2.0 The other two are equivalent. When I check the coarray_40.exe binary on macOS 14, I find: $ otool -L ./coarray_40.exe ./coarray_40.exe: @rpath/libatomic.1.dylib (compatibility version 4.0.0, current version 4.0.0) @rpath/libgfortran.5.dylib (compatibility version 6.0.0, current version 6.0.0) @rpath/libgcc_s.1.1.dylib (compatibility version 1.0.0, current version 1.1.0) @rpath/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1336.61.1) $ otool -l ./coarray_40.exe [...] Load command 14 cmd LC_LOAD_DYLIB cmdsize 56 name @rpath/libatomic.1.dylib (offset 24) time stamp 2 Thu Jan 1 01:00:02 1970 current version 4.0.0 compatibility version 4.0.0 but, unlike for the other libs, *no* corresponding LC_RPATH. If I manually add the right -B arg (-B/private/var/gcc/regression/master/14-gcc/build/x86_64-apple-darwin23.2.0/./libatomic/.libs) to the command line, the missing LC_RPATH shows up and the excutable runs successfully.