-
-
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 MPIR won't build on Cygwin #12115
Comments
comment:1
I fixed this with a jury-rigged spkg here. Patch attached, just for reference. Next error:
Interpreting this error is definitely beyond my pay grade. |
For reference only - don't build static library |
comment:2
Attachment: draft-of-diff-mpir-2.1.3.p7-p8.diff.gz The original reported issue is explained best at this post. So apparently we can't build both, so what is the best solution? Apparently the ysam problem is a race condition; see this post. This would be fixed by mpir upgrading ysam, according to this. |
Upstream: None of the above - read trac for reasoning. |
comment:3
MPIR has upgraded this in a release candidate. See this mpir-devel post and this mpir release. So what should we do about the static library issue? Will this break something if we revert that? |
Changed upstream from None of the above - read trac for reasoning. to Fixed upstream, in a later stable release. |
comment:4
I get a different problem on Windows XP on the new MPIR.
However, given that this has something to do with yasm, perhaps the new yasm would fix it? Or is this something that would be fixed by rebasing? (I don't see anything about forking, but I don't know how to interpret assembler (!) messages.) |
comment:5
Replying to @kcrisman:
this is a typical assembler error (something to do with the misconfiguration/mismatch of commands for particular hardware). |
comment:6
Any fix here will have to be based on #12139, the new p8. |
comment:8
In the mean time, MPIR has been upgraded again to version 2.4.0, latest spkg is at #12751. |
comment:9
I get a similar "bad register name" failure with Cygwin 1.17... on Windows 7 64 bits with Sage 5.1.rc1. |
comment:10
I've get similar errors with the tentative spkg of MPIR 2.5.1 of #13137 (by the way they occur in tmp_mul-1.s as with the standard 5.1.rc1 spkg). |
comment:11
Looking at #8664 gave some hints, and checking the log, I see some core2 in mtune and march. |
comment:12
Setting ABI=32 solves the problem. |
comment:13
Oh and that was with the MPIR 2.5.1 spkg, but I guess trying with the 2.4.0 would give the same result. |
comment:14
Thanks for trying things on Cygwin again! I gave up a while ago, but if you can keep build instructions up-to-date at CygwinPort and #6743, that would be wonderful. |
comment:15
Replying to @jpflori:
Could you please post the mpir-2.4.0.p5.log file? |
Attachment: mpir-2.4.0.p5.log |
Attachment: mpir-2.5.1.p1.log |
comment:16
Attachment: mpir-2.4.0.p6.log Have a look at the 2.4.0.p6 log (the p5 fails because of the static AND shared problem). |
comment:17
I understand the problem and it's trivial to fix. |
comment:18
I bumped the version number for my experiments. |
Author: Karl-Dieter Crisman, Jean-Pierre Flori |
Changed keywords from none to mpir cygwin |
Changed keywords from mpir cygwin to mpir cygwin spkg |
This comment has been minimized.
This comment has been minimized.
comment:25
This works on Cygwin on XP! |
comment:26
I would be in favor of never building the static libraries on any system, though we don't have to do that in this ticket. Positive review. |
Reviewer: Volker Braun |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Changed reviewer from Volker Braun to Volker Braun, Karl-Dieter Crisman, Jean-Pierre Flori |
Changed author from Karl-Dieter Crisman, Jean-Pierre Flori to none |
comment:32
In general, I think it is a bad idea not to merge a ticket just because another ticket is based on it. Imagine that some major problems arise with #13137, then this ticket here might get lost and forgetten. However, I don't know the specific situation here, so I'll let your decision stand. |
Dependencies: #13137 |
Author: Karl-Dieter Crisman, Jean-Pierre Flori |
Changed dependencies from #13137 to none |
comment:34
Now it seems that including #13137 will be painful I have to agree with you Jeroen and ask you if it's possible to include this easy fix in 5.6? |
Changed author from Karl-Dieter Crisman, Jean-Pierre Flori to none |
comment:37
It seems that #13137 is ready after all... |
The recent MPIR versions can only be built shared OR static on Cygwin, not both.
Moreover, MPIR configure scripts gets confused if Cygwin, which is only 32 bits, is ran on a 64 bits Windows.
Hence the following spkg sets ABI=32 (to tackle the second problem) and only builds a shared version of the library (to tackle the first one).
http://boxen.math.washington.edu/home/jpflori/mpir-2.4.0.p7.spkg
Updated spkg based on this one at #13137.
Please use the one there.
Upstream: None of the above - read trac for reasoning.
CC: @nexttime @dimpase @wbhart @jdemeyer
Component: porting: Cygwin
Keywords: mpir cygwin spkg
Reviewer: Volker Braun, Karl-Dieter Crisman, Jean-Pierre Flori
Issue created by migration from https://trac.sagemath.org/ticket/12115
The text was updated successfully, but these errors were encountered: