[issue26661] python fails to locate system libffi

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +988

___
Python tracker 

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



[issue26661] python fails to locate system libffi

2016-09-18 Thread Christian Heimes

Christian Heimes added the comment:

Thanks Robert, I have been running into the same issue for a while.

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue26661] python fails to locate system libffi

2016-09-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c4cec8f7c727 by Christian Heimes in branch '3.5':
Issue #26661: setup.py now detects system libffi with multiarch wrapper.
https://hg.python.org/cpython/rev/c4cec8f7c727

New changeset 18825546acbc by Christian Heimes in branch '3.6':
Issue #26661: setup.py now detects system libffi with multiarch wrapper.
https://hg.python.org/cpython/rev/18825546acbc

New changeset 35820a4a6967 by Christian Heimes in branch 'default':
Issue #26661: setup.py now detects system libffi with multiarch wrapper.
https://hg.python.org/cpython/rev/35820a4a6967

New changeset 2a3e4fa42464 by Christian Heimes in branch '2.7':
Issue #26661: setup.py now detects system libffi with multiarch wrapper.
https://hg.python.org/cpython/rev/2a3e4fa42464

--
nosy: +python-dev

___
Python tracker 

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



[issue26661] python fails to locate system libffi

2016-09-18 Thread Christian Heimes

Christian Heimes added the comment:

This affects Python 3.7 because our own copy of libffi was removed from 
'default'.

--
assignee:  -> christian.heimes
nosy: +christian.heimes
priority: normal -> high
versions: +Python 2.7, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue26661] python fails to locate system libffi

2016-03-29 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue26661] python fails to locate system libffi

2016-03-29 Thread Robert Kuska

New submission from Robert Kuska:

Python fails to locate system version of ffi when building. We delete bundled 
version of ffi and build process fail with following error:

error: [Errno 2] No such file or directory: 
'/builddir/build/BUILD/Python-3.5.1/Modules/_ctypes/libffi'

This is caused by setup.py@1993 checking only for '#define LIBFFI_H' within 
ffi.h.

Content of /usr/include/ffi.h:

> $ cat /usr/include/ffi.h
/* This file is here to prevent a file conflict on multiarch systems. */
#ifdef ffi_wrapper_h
#error "Do not define ffi_wrapper_h!"
#endif
#define ffi_wrapper_h

#if defined(__i386__)
#include "ffi-i386.h"
#elif defined(__powerpc64__)
#include "ffi-ppc64.h"
#elif defined(__powerpc__)
#include "ffi-ppc.h"
#elif defined(__s390x__)
#include "ffi-s390x.h"
#elif defined(__s390__)
#include "ffi-s390.h"
#elif defined(__x86_64__)
#include "ffi-x86_64.h"
#else
#error "The libffi-devel package is not usable with the architecture."
#endif

#undef ffi_wrapper_h

It is important to note that this content is Fedora specific. As a workaround 
we (Fedora) use attached patch.

Would it be plausible to accept this patch in upstream?

--
components: Build
files: 00184-ctypes-should-build-with-libffi-multilib-wrapper.patch
keywords: patch
messages: 262598
nosy: rkuska
priority: normal
severity: normal
status: open
title: python fails to locate system libffi
type: compile error
Added file: 
http://bugs.python.org/file42320/00184-ctypes-should-build-with-libffi-multilib-wrapper.patch

___
Python tracker 

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