-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
New Gap spkg (>=4.5) does not build with shared only GMP/MPIR #13954
Comments
comment:1
The configure script tests for libgmp.a if --with-gmp=... is passed. |
comment:2
Would this explain my current problem that GAP doesn't build on XP? Configure fails with
|
comment:3
Yes that's it. |
comment:4
Ok, I got GAP to build but the script gap_cygwin is completely broken as well. |
comment:5
Ok we basically have to remove all Cygwin specific things from spkg-install. |
comment:6
Great, provide something and I can still try it today! Nice that the folks at #13211 managed to do this
but then somehow not update it to 4.5.7!? |
comment:7
By the way, WHY do we need to start GAP to start Sage? I know that sage-location or some similar script does this upon the first start... but it does seem a bit much. |
comment:8
Anyway even the SAGE_ROOT part is wrong. Try a dirty spkg at http://boxen.math.washington.edu/home/jpflori/gap-4.5.7.p2.spkg |
comment:9
Looks good to me. Not sure what you mean by needing to start GAP for Sage. Sage startup doesn't start a GAP session. The GAP workspace cache needs to be rebuilt once, though. |
comment:10
diff --git a/spkg-install b/spkg-install
--- a/spkg-install
+++ b/spkg-install
@@ -86,34 +86,6 @@
exit 1
fi
-# On Cygwin installations the GAP build creates a file 'gap.exe',
-# and then tries to strip the file 'gap'.
-# This broke the build on old Cygwin installations.
-# On newer Cygwins, 'gap' is automatically "translated" to 'gap.exe'.
-if [[ "$UNAME" = CYGWIN ]]; then
- echo "Creating a dummy 'gap.exe' in 'bin/i686-pc-cygwin-gcc'..."
- cd "$SPKG_ROOT/src"
- mkdir -p bin/i686-pc-cygwin-gcc &&
- cd bin/i686-pc-cygwin-gcc &&
- touch gap.exe
- if [[ $? -ne 0 ]]; then
- # Something really went wrong.
- echo >&2 "Error creating a dummy gap.exe file."
- exit 1
- fi
- # Check if 'gap' is automatically "translated" to 'gap.exe'.
- # If not, create a symbolic link from 'gap' to 'gap.exe'.
- if [[ ! -f gap ]]; then
- echo "Creating a symbolic link from 'gap' to 'gap.exe'..."
- ln -s gap.exe gap
- if [[ $? -ne 0 ]]; then
- # Something really went wrong.
- echo >&2 "Error creating the symbolic link."
- exit 1
- fi
- fi
-fi
-
echo "Building GAP..."
cd "$SPKG_ROOT/src"
$MAKE -j1
@@ -144,11 +116,7 @@
echo "Copying GAP startup script..."
rm -f "$SAGE_LOCAL/bin/gap"
cd "$SPKG_ROOT"
-if [[ "$UNAME" = CYGWIN ]]; then
- cp patches/gap_cygwin "$SAGE_LOCAL/bin/gap"
-else
- cp src/bin/gap.sh "$SAGE_LOCAL/bin/gap"
-fi
+cp src/bin/gap.sh "$SAGE_LOCAL/bin/gap"
if [[ $? -ne 0 ]]; then
echo >&2 "Error copying customized GAP startup script."
exit 1 Yeah, if it works, then we are set. It just finished building for me... Commit and make the spkg, this is ready to go.
Well, there is a GAP command that is run (and fails here, |
comment:11
Ok, here you go, the spkg is updated and diff posted here. |
Author: Jean-Pierre Flori |
comment:13
Thanks. Do we need to provide a dylib check for Mac, or is that not relevant (apparently not, since we never encountered trouble looking for the .a file)? I really need to read configure files more - the solution was just sitting there waiting to be found. Too bad you can't take a class on configure files... Anyway, although the change in the config shouldn't make a difference on other platforms, it would be nice to test this on Mac and Linux. JP, I assume you developed on Linux. |
comment:14
Also, another data point is #13588, which just (finally!) got positive review. I have no idea if that will make things tougher for us here, but I think that, given all the many months of work that went into that ticket, we should probably rebase this to that ticket. |
comment:15
Of course, it somehow got out of my head. I'll take this chance to provide a slightly cleaner patch, maybe using -lgmp to let the linker chose, not sure though, because if we really check for the existence of a shared gmp.* we can as well pass its full path to the linker. |
comment:16
doesn't work for me. I get
|
comment:17
Replying to @dimpase:
however, I took the diff above and applied it in the gap spkg directory as follows:
the resulting spkg installed just fine on cygwin. |
This comment has been minimized.
This comment has been minimized.
comment:18
Ive uploaded a new spkg based on #13963. After a quick look it does not seem that libgap which uses better checks for GMP will need any action from here, but I've not actually tried to build it yet. |
Attachment: gap-4.5.7.p3.diff.gz Spkg diff, for review only. |
Reviewer: Dmitrii Pasechnik |
Merged: sage-5.7.beta2 |
And we only build a shared one on Cygwin because we cannot build both static and shared (although this limitation is not clearly still needed).
Try spkg at
http://boxen.math.washington.edu/home/jpflori/gap-4.5.7.p3.spkg
CC: @kcrisman @dimpase
Component: packages: standard
Keywords: spkg gap cygwin
Author: Jean-Pierre Flori
Reviewer: Dmitrii Pasechnik
Merged: sage-5.7.beta2
Issue created by migration from https://trac.sagemath.org/ticket/13954
The text was updated successfully, but these errors were encountered: