Gentoo Archives: gentoo-alt

From: Al <oss.elmar@××××××××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Gentoo/Cygwin: Vicious Python
Date: Mon, 13 Sep 2010 10:47:56
Message-Id: AANLkTindvWJVuUSTMpdcE-fB6qzTLTuibXL29wzaqrPn@mail.gmail.com
1 Hello,
2
3 to save me hours of debuggins, I hope to find some hints for the bunch
4 of Python related issus. I add the full build log as attachment and at
5 the bottom of the mail some extracts of it.
6
7 To get this far I needed to comment out a line the ebuild:
8
9 src_prepare() {
10 # Ensure that internal copies of expat, libffi and zlib are not used.
11 rm -fr Modules/expat
12 # rm -fr Modules/_ctypes/libffi*
13 rm -fr Modules/zlib
14
15 Else it ends with this ( and there are no more libffi messages):
16
17 error: /home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.4-r1/work/Python-2.6.4/Modules/_ctypes/libffi:
18 No such file or directory
19
20 So it seems it can only work with the internal copy of libffi. Why?
21
22 In Cygwin there is a runtime:
23
24 /usr/bin/cygffi-4.dll
25
26 In Prefix there is:
27
28 /home/prefix/gentoo/usr/bin/cygffi-5.dll
29 /home/prefix/gentoo/usr/lib/libffi-3.0.9
30 /home/prefix/gentoo/usr/lib/libffi-3.0.9/include/ffi.h
31 /home/prefix/gentoo/usr/lib/libffi-3.0.9/include/ffitarget.h
32 /home/prefix/gentoo/usr/lib/libffi.dll.a
33 /home/prefix/gentoo/usr/lib/libffi.la
34 /home/prefix/gentoo/usr/lib/pkgconfig/libffi.pc
35
36
37 The other issus is a missing _PyFPE_counter. Is this likely
38
39 [ ] a bug in python
40 [ ] a bug in a patch
41 [ ] a library not found
42
43 Finally a also tested the old python-2.4.6. It is compiled but ends with:
44
45 * emake altinstall maninstall failed
46
47
48 Thank you for help
49
50 Al
51
52
53 ./configure --prefix=/home/prefix/gentoo/usr --build=i686-pc-cygwin1.7
54 --host=i686-pc-cygwin1.7 --mandir=/home/prefix/gentoo/usr/share/man
55 --infodir=/home/prefix/gentoo/usr/share/info
56 --datadir=/home/prefix/gentoo/usr/share
57 --sysconfdir=/home/prefix/gentoo/etc
58 --localstatedir=/home/prefix/gentoo/var/lib --with-fpectl
59 --disable-ipv6 --with-threads --enable-unicode=ucs4
60 --infodir=${prefix}/share/info --mandir=${prefix}/share/man
61 --with-libc= --with-system-ffi --enable-shared
62 [...]
63 Creating library file: libpython2.6.dll.a
64 [...]
65 gcc -L/home/prefix/gentoo/usr/lib -L/home/prefix/gentoo/lib -L. -o
66 python.exe \
67 Modules/python.o \
68 libpython2.6.dll.a -ldl -lm
69 [...]
70 INFO: Can't locate Tcl/Tk libs and/or headers
71 [...]
72 building 'math' extension
73 gcc -fno-strict-aliasing -DNDEBUG -I.
74 -I/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/./Include
75 -I. -IInclude -I./Include -I/home/prefix/gentoo/usr/include
76 -I/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Include
77 -I/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5
78 -c /home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/mathmodule.c
79 -o build/temp.cygwin-1.7.7-i686-2.6/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/mathmodule.o
80 /home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/mathmodule.c:
81 In function `math_fsum':
82 /home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/mathmodule.c:574:
83 warning: passing arg 1 of `PyFPE_dummy' discards qualifiers from
84 pointer target type
85 gcc -shared -Wl,--enable-auto-image-base -L/home/prefix/gentoo/usr/lib
86 -L/home/prefix/gentoo/lib -L. -fno-strict-aliasing -DNDEBUG -I.
87 -IInclude -I./Include -I/home/prefix/gentoo/usr/include
88 build/temp.cygwin-1.7.7-i686-2.6/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/mathmodule.o
89 -L/home/prefix/gentoo/usr/lib -L/home/prefix/gentoo/lib -L. -lm
90 -lpython2.6 -o build/lib.cygwin-1.7.7-i686-2.6/math.dll
91 build/temp.cygwin-1.7.7-i686-2.6/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/mathmodule.o:mathmodule.c:(.text+0x3d1):
92 undefined reference to `_PyFPE_counter'
93 [...]
94 build/temp.cygwin-1.7.7-i686-2.6/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/mathmodule.o:mathmodule.c:(.text+0x2195):
95 undefined reference to `_PyFPE_counter'
96 collect2: ld returned 1 exit status
97
98 building 'strop' extension
99 gcc -fno-strict-aliasing -DNDEBUG -I.
100 -I/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/./Include
101 -I. -IInclude -I./Include -I/home/prefix/gentoo/usr/include
102 -I/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Include
103 -I/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5
104 -c /home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/stropmodule.c
105 -o build/temp.cygwin-1.7.7-i686-2.6/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/stropmodule.o
106 gcc -shared -Wl,--enable-auto-image-base -L/home/prefix/gentoo/usr/lib
107 -L/home/prefix/gentoo/lib -L. -fno-strict-aliasing -DNDEBUG -I.
108 -IInclude -I./Include -I/home/prefix/gentoo/usr/include
109 build/temp.cygwin-1.7.7-i686-2.6/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/stropmodule.o
110 -L/home/prefix/gentoo/usr/lib -L/home/prefix/gentoo/lib -L.
111 -lpython2.6 -o build/lib.cygwin-1.7.7-i686-2.6/strop.dll
112 build/temp.cygwin-1.7.7-i686-2.6/home/prefix/gentoo/var/tmp/portage/dev-lang/python-2.6.5-r2/work/Python-2.6.5/Modules/stropmodule.o:stropmodule.c:(.text+0x1d2d):
113 undefined reference to `_PyFPE_counter'
114 [...]
115 collect2: ld returned 1 exit status
116 [...]
117 Failed to find the necessary bits to build these modules:
118 _bsddb _hashlib _sqlite3
119 _ssl _tkinter bsddb185
120 gdbm linuxaudiodev nis
121 ossaudiodev spwd sunaudiodev
122 To find the necessary bits, look in setup.py in detect_modules() for
123 the module's name.
124
125
126 Failed to build these modules:
127 cmath math strop
128
129 [...]
130
131 make: *** [sharedmods] Error 1
132 * ERROR: dev-lang/python-2.6.5-r2 failed:
133 * emake failed

Attachments

File name MIME type
build.log application/octet-stream

Replies

Subject Author
[gentoo-alt] Re: Gentoo/Cygwin: Vicious Python Al <oss.elmar@××××××××××.com>