Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 536764

Summary: dev-libs/libffi-3.2.1 fails to compile on x86-macos
Product: Gentoo/Alt Reporter: Michael Weiser <michael>
Component: Mac OSXAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal CC: dia
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: OS X   
URL: https://trac.macports.org/ticket/44170
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fix libffi compile

Description Michael Weiser 2015-01-16 13:25:00 UTC
Compile fails with 32bit prefix on at least OS X  10.6 and 10.8 with the following message:

libtool: compile:  i686-apple-darwin12-gcc -DHAVE_CONFIG_H -I. -I/Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1 -I. -I/Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/include -Iinclude -I/Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/src -I. -I/Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/include -Iinclude -I/Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/src -march=prescott -O2 -pipe -c /Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/src/x86/win32.S  -fno-common -DPIC -o src/x86/.libs/win32.o
/Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/src/x86/win32.S:1325:section difference relocatable subtraction expression, ".LFE5" minus ".LFB5" using a symbol at the end of section will not produce an assembly time constant
/Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/src/x86/win32.S:1325:use a symbol with a constant value created with an assignment instead of the expression, L_const_sym = .LFE5 - .LFB5
/Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/src/x86/win32.S:1317:section difference relocatable subtraction expression, ".LEFDE5" minus ".LASFDE5" using a symbol at the end of section will not produce an assembly time constant
/Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/src/x86/win32.S:1317:use a symbol with a constant value created with an assignment instead of the expression, L_const_sym = .LEFDE5 - .LASFDE5
/Users/michael/Gentoo32/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/src/x86/win32.S:unknown:missing indirect symbols for section (__IMPORT,__jump_table)
Makefile:1340: recipe for target 'src/x86/win32.lo' failed


Reproducible: Always
Comment 1 Michael Weiser 2015-01-16 13:25:46 UTC
Created attachment 394086 [details, diff]
fix libffi compile

this patch as per MacPorts ticket and changeset fixes the compile for me
Comment 2 Fabian Groffen gentoo-dev 2015-01-18 18:47:40 UTC
*** Bug 513428 has been marked as a duplicate of this bug. ***
Comment 3 Fabian Groffen gentoo-dev 2015-01-18 19:02:01 UTC
Patch applied, thanks!