Duplicate LC_RPATH errors on macOS 15.4 Sequoia

status update:

  • libgfortran is fixed if you have libgfortran5=14.* This should be the default for most folks with recently updated or created envs, but if your env hasn’t had an update in a while, conda update libgfortran5 should do it
  • The linker has been fixed to turn these duplicate rpaths into warnings (as the new default Apple linker has been doing since xcode 15), so if you update ld64 to at least build 6 (ld64=951.9=h4c6efb1_6 on mac arm)

So in short, an env should be fixed with:

mamba update libgfortran5 ld64

without needing to patch anything. You may need to clean your ffcx cache.