[Bug 983749] New: libffi ABI incompatibility
http://bugzilla.opensuse.org/show_bug.cgi?id=983749 Bug ID: 983749 Summary: libffi ABI incompatibility Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: armv7 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: matwey.kornilov@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello, There is openSUSE:Leap:42.2 port for armv7l architecture. During researching why python-cffi is failed to build, I've found the following. There are two versions of libffi: 1) libffi-gcc5-5.3.1+r233831 2) libffi48-4.8.5 Both of them claim to provide libffi.so.4.0.1, i.e. they have to be ABI compatible. Issue here that libffi48-devel-4.8.5 devel package pulls libffi4-5.3.1+r233831 as requirement. It is not a big deal because they should be ABI compatible, but they are NOT. libffi48-4.8.5 is compiled with (see ffitarget.h file) #define FFI_TRAMPOLINE_SIZE 20 libffi-gcc5-5.3.1+r233831 is compiled with #define FFI_TRAMPOLINE_SIZE 12 The consequence is that the following structure has different layout in different versions (both of them are .so.4.0.1): typedef struct { char tramp[FFI_TRAMPOLINE_SIZE]; ffi_cif *cif; void (*fun)(ffi_cif*,void*,void**,void*); void *user_data; } ffi_closure -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=983749
Matwey Kornilov
http://bugzilla.opensuse.org/show_bug.cgi?id=983749
Matwey Kornilov
http://bugzilla.opensuse.org/show_bug.cgi?id=983749
http://bugzilla.opensuse.org/show_bug.cgi?id=983749#c3
--- Comment #3 from Matwey Kornilov
An option for 42.2 arm is to block libffi4-gcc5 from the media/repo after adding
Macros: product_libs_gcc_ver_libffi4 48
Ludwig, Could you please do that for :Ports? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=983749
http://bugzilla.opensuse.org/show_bug.cgi?id=983749#c4
Ludwig Nussel
http://bugzilla.opensuse.org/show_bug.cgi?id=983749
Matwey Kornilov
http://bugzilla.opensuse.org/show_bug.cgi?id=983749
http://bugzilla.opensuse.org/show_bug.cgi?id=983749#c6
--- Comment #6 from Ludwig Nussel
participants (1)
-
bugzilla_noreply@novell.com