-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Fix gap_packages for Xcode 12 #30729
Comments
Dependencies: #30720 |
comment:2
I've opened gap-packages/cohomolo#27 |
Upstream: Reported upstream. No feedback yet. |
comment:3
Was the update ticket #29314 successfully tested on Xcode 12? |
comment:4
it might be I didn't test the whole of gap_packages. I thought I did. |
comment:5
I don't think #29314 upgrades |
comment:6
Replying to @jhpalmieri:
It does because it uses the same tarball as |
comment:7
As suggested in #29314, patching the failing packages using the diff to the GAP 4.11 distribution would be a way forward. |
comment:9
The failure is now also reproduced on GH Actions in |
Commit: |
comment:11
I see the same error with this branch. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:12
Replying to @jhpalmieri:
in GAP 4.10 the cohomolo's Makefile.in does not have a line
which is present in GAP 4.11 - so probably the quickest patch would be to add it in GAP 4.10. |
comment:13
Even quicker should be to do diff --git a/build/pkgs/gap_packages/spkg-install.in b/build/pkgs/gap_packages/spkg-install.in
index 10b444b5c6..cc094ad40c 100644
--- a/build/pkgs/gap_packages/spkg-install.in
+++ b/build/pkgs/gap_packages/spkg-install.in
@@ -3,6 +3,8 @@ PKG_DIR="$GAP_ROOT/pkg"
PKG_SRC_DIR="$(pwd)/src/pkg"
cd "$PKG_SRC_DIR"
+CFLAGS = "$CFLAGS -Wno-implicit-function-declaration"
+export CFLAGS
# directly install pure GAP packages
# |
comment:14
I tried this, and it doesn't work for me: same error as before. |
comment:15
Replying to @jhpalmieri:
Could we see the full error, with the corresponding compiler call? |
comment:16
the old Makefile.in there needs a patch, in fact, that's why it does not work |
comment:17
This works for me, instead: diff --git a/build/pkgs/gap_packages/spkg-install.in b/build/pkgs/gap_packages/spkg-install.in
index 10b444b5c6..56c444e11f 100644
--- a/build/pkgs/gap_packages/spkg-install.in
+++ b/build/pkgs/gap_packages/spkg-install.in
@@ -68,6 +68,8 @@ install_compiled_pkg()
for pkg in cohomolo-* crypting-* grape-* guava-* orb-*
do
echo "Building GAP package $pkg"
+ CFLAGS="$CFLAGS -Wno-implicit-function-declaration"
+ export CFLAGS
cd "$PKG_SRC_DIR/$pkg"
./configure "$GAP_ROOT"
sdh_make -j1 |
comment:18
Replying to @jhpalmieri:
yes, I'm testing essentially the same branch, will post it soon. |
Changed branch from u/mkoeppe/fix_gap_packages_for_xcode_12 to u/dimpase/fix_gap_packages_for_xcode_12 |
Author: Dima Pasechnik, Matthias Koeppe |
comment:19
OK, this should be it |
comment:21
This isn't working for me. First, one of the patches is wrong: diff --git a/build/pkgs/gap_packages/patches/cohomolo_makefile.patch b/build/pkgs/gap_packages/patches/cohomolo_makefile.patch
index 401deba09d..01f0e85587 100644
--- a/build/pkgs/gap_packages/patches/cohomolo_makefile.patch
+++ b/build/pkgs/gap_packages/patches/cohomolo_makefile.patch
@@ -1,7 +1,7 @@
-diff --git a/Makefile.in b/Makefile.in
+diff --git a/pkg/cohomolo-1.6.7/Makefile.in b/pkg/cohomolo-1.6.7/Makefile.in
index 96a6c75..ab8b8c3 100644
---- a/Makefile.in
-+++ b/Makefile.in
+--- a/pkg/cohomolo-1.6.7/Makefile.in
++++ b/pkg/cohomolo-1.6.7/Makefile.in
@@ -2,13 +2,18 @@
# all executables are put into the bin directory.
BIN = bin/@GAPARCH@ Even after fixing that, I get an error building gap_packages:
Using only the change in comment:17 worked, but I'm not getting this new branch to work. Is anyone else having better luck? |
comment:22
Please make a branch that works for you and post it here. We'll review it for other systems. |
comment:23
I can't push a branch, but these are the changes: diff --git a/build/pkgs/gap_packages/spkg-install.in b/build/pkgs/gap_packages/spkg-install.in
index 10b444b5c6..56c444e11f 100644
--- a/build/pkgs/gap_packages/spkg-install.in
+++ b/build/pkgs/gap_packages/spkg-install.in
@@ -68,6 +68,8 @@ install_compiled_pkg()
for pkg in cohomolo-* crypting-* grape-* guava-* orb-*
do
echo "Building GAP package $pkg"
+ CFLAGS="$CFLAGS -Wno-implicit-function-declaration"
+ export CFLAGS
cd "$PKG_SRC_DIR/$pkg"
./configure "$GAP_ROOT"
sdh_make -j1
diff --git a/src/sage/tests/gap_packages.py b/src/sage/tests/gap_packages.py
index 340ceb8c29..cf9a68cec2 100644
--- a/src/sage/tests/gap_packages.py
+++ b/src/sage/tests/gap_packages.py
@@ -6,6 +6,7 @@ TESTS::
sage: from sage.tests.gap_packages import all_installed_packages, test_packages
sage: pkgs = all_installed_packages(ignore_dot_gap=True)
sage: test_packages(pkgs, only_failures=True) # optional - gap_packages
+ ...
Status Package GAP Output
+--------+---------+------------+
|
comment:24
what is happening when you are trying to push? |
comment:25
I get an error like some of the ones reported earlier today:
(Same with with |
comment:26
could you try pushing now? I've learned about group permissions and did
Strange that ACL utils were not installed on the box, so I don't know how it worked before I messed it up... |
Changed branch from u/dimpase/fix_gap_packages_for_xcode_12 to u/jhpalmieri/fix_gap_packages_for_xcode_12 |
comment:28
Success! Thank you. New commits:
|
Changed author from Dima Pasechnik, Matthias Koeppe to Matthias Koeppe |
comment:29
ok, this works on Debian. |
Changed reviewer from https://github.com/mkoeppe/sage/actions/runs/296478189 to Dima Pasechnik, https://github.com/mkoeppe/sage/actions/runs/296478189 |
Changed reviewer from Dima Pasechnik, https://github.com/mkoeppe/sage/actions/runs/296478189 to Dima Pasechnik |
Changed author from Matthias Koeppe to Matthias Koeppe, John Palmieri |
Changed branch from u/jhpalmieri/fix_gap_packages_for_xcode_12 to |
Follow-up from #30720. Building
gap_packages
(version 4.10.2) using Xcode 12 fails:Depends on #30720
Upstream: Reported upstream. No feedback yet.
CC: @dimpase @jhpalmieri @soehms
Component: packages: optional
Author: Matthias Koeppe, John Palmieri
Branch/Commit:
d8f07f9
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/30729
The text was updated successfully, but these errors were encountered: