Landry Breuil added the comment:
Seems something in between fixed it, because it works with 3.4.1. Can test 3.3
if needed.
mikey:/usr/obj/tmpfs/ports/Python-3.4.1/Python-3.4.1/ $LD_LIBRARY_PATH=.
./Modules/_testembed
--- Pass 0 ---
interp 0xac003e00, thread state 0xb4380f80: id(modules
Landry Breuil lan...@openbsd.org added the comment:
floatobject.c is compiled with
cc -pthread -c -fno-strict-aliasing -O2 -pipe -Wall
-DTHREAD_STACK_SIZE=0x2 -fPIC -O2 -pipe -Wall -I. -IInclude -I./Include
-fPIC -DPy_BUILD_CORE -o Objects/floatobject.o Objects/floatobject.c
Changes by Landry Breuil lan...@openbsd.org:
Added file: http://bugs.python.org/file22854/pyconfig.h
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12589
Changes by Landry Breuil lan...@openbsd.org:
Added file: http://bugs.python.org/file22855/math.h
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12589
Landry Breuil lan...@openbsd.org added the comment:
Interestingly, after an update of the system i can't build python 3.2.1 anymore
:
/usr/include/util.h:102: error: conflicting types for 'openpty'
Include/pyport.h:634: error: previous declaration of 'openpty' was here
/usr/include/util.h:105
Changes by Landry Breuil lan...@openbsd.org:
Added file: http://bugs.python.org/file22857/build-macppc.log
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12589
Landry Breuil lan...@openbsd.org added the comment:
$grep -r '#define Py_IS_INF' .
PC/pyconfig.h:#define Py_IS_INFINITY(X) (!_finite(X) !_isnan(X))
isinf(float('inf'))
Breakpoint 2, __isinf (d=1.0604798301039825e-314) at
/usr/src/lib/libc/gen/isinf.c:30
30 in /usr/src/lib/libc/gen
Landry Breuil lan...@openbsd.org added the comment:
Py_IS_INFINITY is defined as
#ifndef Py_IS_INFINITY
# if defined HAVE_DECL_ISINF HAVE_DECL_ISINF == 1
#define Py_IS_INFINITY(X) isinf(X)
# else
#define Py_IS_INFINITY(X) ((X
Landry Breuil lan...@openbsd.org added the comment:
import struct
struct.pack(d, float(inf))
b'\x7f\xf0\x00\x00\x00\x00\x00\x00'
struct.pack(f, float(inf))
b'\x7f\x80\x00\x00'
And yes, HAVE_DECL_ISINF is defined to 1 in pyconfig.h
--
___
Python
Landry Breuil lan...@openbsd.org added the comment:
Python 3.2.1 (default, Jul 18 2011, 10:56:33)
[GCC 4.2.1 20070719 ] on openbsd4
Type help, copyright, credits or license for more information.
import ctypes
import ctypes.util
libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c
Landry Breuil lan...@openbsd.org added the comment:
$python3.2
Python 3.2.1 (default, Jul 18 2011, 10:56:33)
[GCC 4.2.1 20070719 ] on openbsd4
int(float('inf'))
0
$sysctl hw
hw.machine=macppc
Landry Breuil lan...@openbsd.org added the comment:
(gdb) r
Starting program: /usr/obj/ports/Python-3.2.1/Python-3.2.1/Modules/_testembed
--- Pass 0 ---
interp 0x90ae7300, thread state 0x87b48a00: id(modules) = 2363177552
interp 0x90ae7a40, thread state 0x87b48a80: id(modules) = 2243881408
Landry Breuil lan...@openbsd.org added the comment:
You get the same issue :
[23:08] mikey:/usr/obj/ports/Python-3.2.1/Python-3.2.1/ $cp Modules/_testembed
.
[23:08] mikey:/usr/obj/ports/Python-3.2.1/Python-3.2.1/ $LD_LIBRARY_PATH=. gdb
_testembed
GNU gdb 6.3
Copyright
13 matches
Mail list logo