macOS: installation failed for x86_64 due to relinking issue in brew
Recently, installing the unstable snapshots on macOS yields an error:
Error: Failed changing install name in /Applications/Dynare/6-2023-07-07-1144/.brew/Cellar/gcc/13.1.0/libexec/gcc/x86_64-apple-darwin22/13/cc1
from @@HOMEBREW_PREFIX@@/opt/gmp/lib/libgmp.10.dylib
to /Applications/Dynare/6-2023-07-07-1144/.brew/opt/gmp/lib/libgmp.10.dylib
Error: Updated load commands do not fit in the header of /Applications/Dynare/6-2023-07-07-1144/.brew/Cellar/gcc/13.1.0/libexec/gcc/x86_64-apple-darwin22/13/cc1. /Applications/Dynare/6-2023-07-07-1144/.brew/Cellar/gcc/13.1.0/libexec/gcc/x86_64-apple-darwin22/13/cc1 needs to be relinked, possibly with -headerpad or -headerpad_max_install_names
The installer ends with error. Here is the install.log.
Now the new built scripts for Apple Silicon in !2143 (closed) have the same issue for x86_64, but not for arm64. There everything installs without error. I have looked and updated the rb files, but without success. By the way, I don't think we need the rb files anymore (e.g. the arm64 packages install fine without).
Anyways, if someone knows a solution, please let me know. Otherwise I would actually like to discuss whether to drop the GCC option in the macos installer in a separate issue.