-
-
Notifications
You must be signed in to change notification settings - Fork 628
try to fix GAP build on some arm64 macOS systems #40116
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
Conversation
This doesn't work for me, same error as before. Is |
In case it helps, I am attaching two logs: one (with diff --git a/build/pkgs/gap/spkg-install.in b/build/pkgs/gap/spkg-install.in
index 7d207a47a4..422a210888 100644
--- a/build/pkgs/gap/spkg-install.in
+++ b/build/pkgs/gap/spkg-install.in
@@ -16,6 +16,8 @@ if [ "$SAGE_DEBUG" = yes ] ; then
export CFLAGS="-O0 -g3 -DDEBUG_MASTERPOINTERS -DDEBUG_GLOBAL_BAGS -DDEBUG_FUNCTIONS_BAGS $CFLAGS"
fi
+export LDFLAGS="-Wl,-headerpad_max_install_names $LDFLAGS"
+
sdh_configure $SAGE_CONFIGURE_GMP --prefix=$SAGE_LOCAL
sdh_make
sdh_make_install The second log shows |
it's obviously an upstream bug, the problem is to reproduce it. |
Can you try building GAP on Homebrew (so that gmp+readline comes from there), but outside of Sage, just by cloning
I can't reporoduce this on William's M1, which is Darwin 24.3.0, not 24.4.0, like yours |
It failed on the documentation but the earlier part succeeded:
The executable
|
can in be that libgap.dylib is installed somewhere in /tmp/, just not where /tmp/bin/gap is looking ? |
No, it's not there at all. Aside from a |
as reported on sagemath#40106
@jhpalmieri - can you try the new version? (without your LDFLAGS add-on, just the PR itself) details here: gap-system/gap#5989 (comment) |
This one works for me (on one machine, I won't be able to test the other one until tomorrow). |
well, this is a bug (probably the same we see in Sage)! All what's "normally" broken in GAP's "make install" into a non-standard location is that packages are not quite at the right place, so GAP starts, but errors out with Does it also happen with the branch of my GAP's PR: gap-system/gap#5992 ? |
@jhpalmieri - if you're running into the more issues on GAP, it would be great to see output of |
Works on two other machines: all three exhibited the same problem and the branch here fixes it for all of them. |
For the upstream bug report, on one or better two machines affected, could you please do build and |
GAP upstream has merged our fix, yay! Thanks for the efforts. Now the question is how to deal with it here. Use the patch from my upstream PR? |
@jhpalmieri - please test this, it should fix your issue |
Sorry for not responding earlier to your various questions. Using your upstream patch makes sense to me, and this does fix my issue. Thanks for your work on it! |
sagemathgh-40116: try to fix build on some arm64 macOS systems as reported on sagemath#40106 ~Proposed~ Merged upstream as https://github.com/gap- system/gap/pull/5992 <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes sagemath#12345". --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [ ] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40116 Reported by: Dima Pasechnik Reviewer(s): John H. Palmieri
as reported on
#40106
ProposedMerged upstream as gap-system/gap#5992📝 Checklist
⌛ Dependencies