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
Troubles with Python and ncurses on Cygwin #15317
Comments
comment:1
Had no time to investigate the diff between 5.7 and 5.8, especially around the offending lines, function calls. |
comment:2
Similar problem on different archs: http://lists.busybox.net/pipermail/buildroot/2011-April/042350.html |
comment:3
Maybe have a look at #12282 |
comment:4
Playing a little bit around, it seems that setting TERM to something non-existing (e.g. "" or "blblbblblbl") makes the segfault disappear. |
Upstream: Workaround found; Bug reported upstream. |
comment:5
Upstream bug report: http://lists.gnu.org/archive/html/bug-ncurses/2013-10/msg00014.html The problem is that when the config BROKEN_LINKER is set, then a pointer CurTerm is used but never set to something else than zero. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:6
The BROKEN_LINKER stuff should be fixed in ncurses: |
Changed upstream from Workaround found; Bug reported upstream. to Fixed upstream, but not in a stable release. |
comment:8
There were further problem with the threading code in the Cygwin dll itself. |
comment:9
As far as not linking to tinfo is concerned, I'm putting this here for reference: http://bugs.python.org/issue7384. In particular, python uses ldd for linking detection but applies it on import libraries on cygwin which just fails. |
comment:10
Here is how to find the dll corresponding to an import lib:
|
comment:11
Replying to @jpflori:
Fixed typo in the url. |
comment:12
I've opened #15617 for the ncurses update. |
comment:13
I've put a dirty but working python spkg at:
|
comment:14
I installed the new version of ncurses and created a new branch with the python spkg at |
comment:15
Replying to @tscrim:
What is in that branch exactly? The _socket thing reminds me of rebasing issues. |
comment:16
Tried that and it didn't work. I also pushed a patch to the branch. |
This comment has been minimized.
This comment has been minimized.
Author: Jean-Pierre Flori |
Changed upstream from Fixed upstream, but not in a stable release. to Workaround found; Bug reported upstream. |
Commit: |
Branch: u/jpflori/ticket/15317 |
comment:26
Replying to @tscrim:
It seems the readline module is not built:
and indeed readline is not found:
Could you post your readline log? Please let's go one step at a time, at least now installing python on Cygwin32 works, I'll try to go with the pillow and installing python on Cygwin64 issues on follow up tickets quickly. |
comment:27
Replying to @jpflori:
Also note this failure surel has nothing to do with the changes here as readline is not detected during the autotools based configuration phase, not the setup.py one which I modified. |
comment:28
Strangely on my setup, readline seems to have built fine, is detected, but the python fails because of an ICE in GCC. |
comment:29
(I mean my Cygwin64 setup, with Cygwin's GCC 4.8.2.) |
comment:30
After fixing my ICE on Cygwin64 (using #10572), I oculd build pytohn. |
comment:32
Sorry for the delays, let's get this in. |
Reviewer: Travis Scrimshaw |
comment:33
Breaks python build on mod: |
comment:34
Any chance to get the getbuildinfo.c file? |
comment:35
Sorry, the buildbot has already moved on. You'll have to build it yourself. |
comment:36
I just did so ... and the build succeeded. I merged u/jpflori/ticket/15317 with develop, exported MAKE to something sensible and ran make. |
comment:37
Hum, here is waht the pytho log says:
|
comment:38
Trying to reinstall python then fails:
|
comment:39
/usr/local/bin/hg is broken on mod:
whence all the above. In particular, once sage(.git) is built, one get:
|
comment:40
This ticket is not broken, the |
comment:41
How about
|
comment:42
Replying to @vbraun:
Why not, but let's do this somewhere else. |
comment:43
Fair enough, but this ticket can't be merged until either mod is un-broken or a workaround is implemented. Or both. |
comment:44
Maybe William can fix mod (i.e. delete the harmful /usr/local/bin/hg)? |
comment:45
(And isn't the failure triggered even without this ticket? I mean: just trying to recompile python should fail.) |
comment:46
Can you post to the sage.math users mailing list, this is for admin issues. |
Changed branch from u/jpflori/ticket/15317 to |
Python currently fails/is suboptimal on Cygwin because:
This ticket fixes the Python part.
The ncurses part is #15617
Upstream: Workaround found; Bug reported upstream.
CC: @dimpase @vbraun @jdemeyer
Component: porting: Cygwin
Keywords: cygwin spkg ncurses
Author: Jean-Pierre Flori
Branch/Commit:
c0a09c5
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/15317
The text was updated successfully, but these errors were encountered: