Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rootfs] Update RootFS and GCC version for aarch64-apple-darwin #228

Merged

Conversation

giordano
Copy link
Member

@giordano giordano commented Mar 5, 2022

@giordano giordano force-pushed the mg/upgrade-gcc-aarch64-apple-darwin branch from 2cab4f4 to 7782bf1 Compare March 6, 2022 02:13
@giordano
Copy link
Member Author

giordano commented Mar 6, 2022

IMPORTANT

The new build of GCC has a couple of ABI incompatibilities compared to the previous one:

  1. as reported by System library build of Julia master fails on ARM macOS JuliaLang/julia#44435, libgcc_s is now called libgcc_s.1.1.dylib instead of libgcc_s.2.dylib. This should have little impact overall, most libraries shouldn't link directly to libgcc_s
  2. more importantly, this build contains libquadmath for aarch64-apple-darwin. This means most/all Fortran libraries built with this new compiler will link to it, but libquadmath is currently not part of CompilerSupportLibraries_jll for this platform, so they'll all fail to load. In any case we'll update CompilerSupportLibraries_jll in Julia to include the new compiler libraries and we'll backport also the change to the release-1.7 (less important since Julia is mostly broken here anyway) and release-1.8 branches , but we'll probably see into the wild some errors like
    ERROR: LoadError: InitError: could not load library "/path/to/libray.dylib"
    dlopen(/path/to/libray.dylib, 1): Library not loaded: @rpath/libquadmath.0.dylib
      Referenced from: /path/to/libray.dylib
      Reason: image not found
    

Now the good news: after placing the new libquadmath.0.dylib among other compiler libraries I was able to successfully run the tests of SHTOOLS.jl and BipolarSphericalHarmonics.jl with a new build of SHTOOLS_jll.jl compiled with the new toolchain, and also the LinearAlgebra test suite with a new build of OpenBLAS 0.3.20.

Originally posted by @giordano in JuliaPackaging/Yggdrasil#4551 (comment)

@giordano giordano merged commit 59b1f52 into JuliaPackaging:master Mar 6, 2022
@giordano giordano deleted the mg/upgrade-gcc-aarch64-apple-darwin branch March 6, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant