Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 518984

Summary: dev-lang/python-2.7.8 and dev-lang/python-3.3.5 cross-compile failure with ncurses[-unicode]
Product: Gentoo Linux Reporter: Mike Gilbert <floppym>
Component: [OLD] UnspecifiedAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: python-3.3.5-r1 build log
python-2.7.8 build log

Description Mike Gilbert gentoo-dev 2014-08-03 22:39:03 UTC
Created attachment 382184 [details]
python-3.3.5-r1 build log

In file included from /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/python-3.3.5-r1/work/
Python-3.3.5/Include/py_curses.h:50:0,
                 from /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-lang/python-3.3.5-r1/work/
Python-3.3.5/Modules/_cursesmodule.c:113:
/usr/include/ncursesw/curses.h:60:34: fatal error: ncursesw/ncurses_dll.h: No such file or directory
 #include <ncursesw/ncurses_dll.h>
                                  ^
compilation terminated.
Comment 1 Mike Gilbert gentoo-dev 2014-08-03 22:41:40 UTC
Created attachment 382186 [details]
python-2.7.8 build log
Comment 2 Mike Gilbert gentoo-dev 2014-08-03 22:58:30 UTC
I guess this happens only when the build system has sys-libs/ncurses[unicode], but the cross-compile target has sys-libs/ncurses[-unicode]. And also possibly limited on amd64 systems to those with LIBDIR_x86=lib.

There is probably some broken code that detects /usr/include/ncursesw and /usr/lib/libncursesw.so from the build system and tries to use it for the cross-compile.
Comment 3 Joakim Tjernlund 2014-09-10 15:57:02 UTC
cross building ncurses-5.9-r3 you get alot of:
"/usr/include/ncursesw" is unsafe for cross-compilation

This comes from:
  use unicode && do_configure widec --enable-widec --includedir="${EPREFIX}"/usr/include/ncursesw

in the ebuild.
I haven't figured out what to replace it with, any ideas?
Comment 4 Joakim Tjernlund 2014-09-12 09:01:53 UTC
For ncurses, see
  https://bugs.gentoo.org/show_bug.cgi?id=522586
maybe your python problem is similar
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-21 21:45:23 UTC
Mass closing of bugs reported against old versions of dev-lang/python.  If the problem still occurs with the current versions (i.e. newest in each visible slot), feel free to reopen.