[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-20 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

I would prefer to have someone with good libffi knowledge to chime in here. 
It's easy to just revert the patch, but it may be even better to upgrade the 
included libffi lib.

But probably not to 3.2.1, since this still has the same bug it seems:

https://github.com/atgreen/libffi/blob/v3.2.1/src/x86/ffi.c#L401

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23042
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-20 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

Modules/_ctypes/libffi in branches 2.7, 3.4, default is currently a copy of 
libffi 3.1.
Is problem reproducible with libffi 3.2.1? If not, then it might be better to 
update Modules/_ctypes/libffi to libffi 3.2.1.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23042
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-19 Thread Davin Potts

Davin Potts added the comment:

Inheriting the priority from issue22634 which has been marked closed-duplicate 
(duplicate of this issue).

Previously issue22634 was given a priority of release blocker by @pitrou.  
Issue22634 described how this issue also afflicts 32-bit builds on multiple 
RHEL release versions.

--
nosy: +benjamin.peterson, berker.peksag, larry, pitrou
priority: normal - release blocker

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23042
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-19 Thread Davin Potts

Davin Potts added the comment:

Attaching a patch which enabled successful compilation of ctypes on FreeBSD 
10.1 i386-RELEASE in each of default/3.5, 3.4, and 2.7 branches.

This patch attempts to fix the incomplete logic regarding Windows target 
platforms in the ifdef's inside Modules/_ctypes/libffi/src/x86/ffi.c which at 
times tested for X86_WIN64 but not X86_WIN32 inside corresponding #else clauses 
(and vice versa).

This especially needs to be tested on a 32-bit Windows system -- I do not have 
one handy so help testing it there (and elsewhere) would be much appreciated.

--
keywords: +patch
Added file: 
http://bugs.python.org/file38561/issue_23042_fix_windows_ifdefs_py35_and_py34_and_py27.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23042
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-19 Thread Davin Potts

Changes by Davin Potts pyt...@discontinuity.net:


--
stage:  - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23042
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-19 Thread Davin Potts

Davin Potts added the comment:

Reading issue22634 suggests that perhaps this issue is not limited to FreeBSD 
-- issue22634 appears to suffer the same behavior on RHEL 6.4 and 5.5 when 
compiling to 32-bit (the -m32 compiler flag is being used there).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23042
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-18 Thread STINNER Victor

STINNER Victor added the comment:

Python 3.4 and 3.5 are also affected: I marked issue #22521 as a duplicate of 
this issue.

--
nosy: +haypo
title: Python 2.7.9 ctypes module doesn't build on FreeBSD x86 - ctypes module 
doesn't build on FreeBSD x86
versions: +Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23042
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-18 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy:  -haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23042
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-18 Thread Davin Potts

Davin Potts added the comment:

To provide supporting information, using the i386 release of FreeBSD 10.1:

* ctypes fails to build with the latest from Python 2.7 branch with the message:


build/temp.freebsd-10.1-RELEASE-i386-2.7-pydebug/usr/home/davin/pycoredev/cpython/Modules/_ctypes/libffi/src/x86/ffi.o:
 In function `ffi_prep_closure_loc':
/usr/home/davin/pycoredev/cpython/Modules/_ctypes/libffi/src/x86/ffi.c:677: 
undefined reference to `ffi_closure_FASTCALL'
/usr/home/davin/pycoredev/cpython/Modules/_ctypes/libffi/src/x86/ffi.c:683: 
undefined reference to `ffi_closure_THISCALL'
/usr/home/davin/pycoredev/cpython/Modules/_ctypes/libffi/src/x86/ffi.c:689: 
undefined reference to `ffi_closure_STDCALL'
/usr/bin/ld: build/lib.freebsd-10.1-RELEASE-i386-2.7-pydebug/_ctypes.so: 
hidden symbol `ffi_closure_FASTCALL' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
cc: error: linker command failed with exit code 1 (use -v to see invocation)

...

Failed to build these modules:
_ctypes   


* Note that the above failure message was described in issue22521 by 
@Danya.Alexeyevsky

* ctypes also fails to build with the latest from default/3.5 branch with the 
very same message


Apparently the compilation failure messages differ between FreeBSD 8.3 and 10.1 
(both i386).

--
nosy: +davin

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23042
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com