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

Bug 852980

Summary: dev-libs/libffi-3.4.2-r1: fails to build with distcc
Product: Gentoo Linux Reporter: Oskari Pirhonen <xxc3ncoredxx>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: emerge --info '=dev-libs/libffi-3.4.2-r1::gentoo'
build.log for libffi
emerge -pqv '=dev-libs/libffi-4.3.2-r1::gentoo'

Description Oskari Pirhonen 2022-06-19 04:11:28 UTC
Created attachment 786092 [details]
emerge --info '=dev-libs/libffi-3.4.2-r1::gentoo'

Building libffi using distcc fails with the following messages:

libtool: link: x86_64-pc-linux-gnu-ranlib .libs/libffi_convenience.a
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: src/.libs/prep_cif.o: warning: relocation against `ffi_type_sint32' in read-only section `.text'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: libtool: link: ( cd ".libs" && rm -f "" && ln -s "../" "" )
src/.libs/prep_cif.o: relocation R_X86_64_PC32 against symbol `ffi_type_sint32' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad value

It builds successfully when doing:

    FEATURES='-distcc' ebuild /path/to/libffi-3.4.2-r1.ebuild compile
Comment 1 Oskari Pirhonen 2022-06-19 04:12:15 UTC
Created attachment 786095 [details]
build.log for libffi
Comment 2 Oskari Pirhonen 2022-06-19 04:13:39 UTC
Created attachment 786098 [details]
emerge -pqv '=dev-libs/libffi-4.3.2-r1::gentoo'