Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536764 - dev-libs/libffi-3.2.1 fails to compile on x86-macos
Summary: dev-libs/libffi-3.2.1 fails to compile on x86-macos
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: x86 OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL: https://trac.macports.org/ticket/44170
Whiteboard:
Keywords:
: 513428 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-16 13:25 UTC by Michael Weiser
Modified: 2015-01-18 19:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix libffi compile (libffi-3.2.1-i686-darwin-eh_frame.patch,1.49 KB, patch)
2015-01-16 13:25 UTC, Michael Weiser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!