This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Python 2.7.2 compile error
On 2/1/2012 1:38 PM, Timothy Makobu wrote:
Hi,
on this mailing list we do NOT top post and we don't feed spammer with
e-mail adress of the others.
See notes on http://cygwin.com/lists.html
After running the command (i had to run it via dash), the error now
looks like this:
$ make -j2
ldd: /lib/libreadline.a: Permission denied
no idea, look for permission on your file or try make -j1
/usr/local/src/Python-2.7.2/Modules/_io/_iomodule.c:172:11: warning:
‘PyExc_BlockingIOError’ redeclared without dllimport attribute:
previous dllimport ignored
build/temp.cygwin-1.7.9-i686-2.7/usr/local/src/Python-2.7.2/Modules/_io/bufferedio.o:
In function `_buffered_check_blocking_error':
/usr/local/src/Python-2.7.2/Modules/_io/bufferedio.c:583: undefined
reference to `__imp__PyExc_BlockingIOError'
/usr/local/src/Python-2.7.2/Modules/_io/bufferedio.c:583: undefined
reference to `__imp__PyExc_BlockingIOError'
/usr/local/src/Python-2.7.2/Modules/_io/bufferedio.c:583: undefined
reference to `__imp__PyExc_BlockingIOError'
collect2: ld returned 1 exit status
check dllimport usage on the source. Eventually look
cygwin python source for any patch specifically used.
In file included from /usr/local/src/Python-2.7.2/Modules/_cursesmodule.c:114:0:
Include/py_curses.h:50:20: fatal error: curses.h: No such file or directory
compilation terminated.
http://cygwin.com/cgi-bin2/package-cat.cgi?file=libncurses-devel%2Flibncurses-devel-5.7-18&grep=curses.h
as the file is on
/usr/include/ncurses/curses.h
check any
#include "curses.h"
and change to "ncurses/curses.h"
In file included from /usr/local/src/Python-2.7.2/Modules/_curses_panel.c:15:0:
Include/py_curses.h:50:20: fatal error: curses.h: No such file or directory
compilation terminated.
Python build finished, but the necessary bits to build these modules
were not found:
_tkinter bsddb185 linuxaudiodev
nis ossaudiodev spwd
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for
the module's name.
Failed to build these modules:
_curses _curses_panel _io
On Wed, Feb 1, 2012 at 12:18 PM, marco atzeri wrote:
On 2/1/2012 9:08 AM, Timothy Makobu wrote:
Hi all,
I have installed the entire dev section, but when I try to compile the
above, I get the error below:
2 [main] python 4368
C:\cygwin\usr\local\src\Python-2.7.2\python.exe: *** fatal error -
unable to remap
\\?\C:\cygwin\usr\local\src\Python-2.7.2\build\lib.cygwin-1.7.9-i686-2.7\grp.dll
to same address as parent: 0x450000 != 0x480000
Stack trace:
Frame Function Args
00229BD8 6102796B (00229BD8, 00000000, 00000000, 00000000)
00229EC8 6102796B (6117EC60, 00008000, 00000000, 61180977)
0022AEF8 61004F1B (611A7FAC, 6124929C, 00450000, 00480000)
End of stack trace
2 [main] python 5368 fork: child 4368 - died waiting for dll
loading, errno 11
error: Resource temporarily unavailable
Makefile:426: recipe for target `sharedmods' failed
make: *** [sharedmods] Error 1
I installed Cygwin an hour ago, and I'm on Windows7 Pro.
It is a fork issue, so you need to run rebaseall.
As it seems Python run itself during the build you
need to add the dll's just created to the rebase list
$ find /usr/local -name "*.dll"> local_list
and from dash shell
$ rebaseall -T local_list
after that I presume the make should be able to complete the job.
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple