Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852980 - dev-libs/libffi-3.4.2-r1: fails to build with distcc
Summary: dev-libs/libffi-3.4.2-r1: fails to build with distcc
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
Reported: 2022-06-19 04:11 UTC by Oskari Pirhonen
Modified: 2022-06-19 06:02 UTC (History)
0 users

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

emerge --info '=dev-libs/libffi-3.4.2-r1::gentoo' (emerge_info_libffi.txt,15.59 KB, text/plain)
2022-06-19 04:11 UTC, Oskari Pirhonen
build.log for libffi (build.log,106.68 KB, text/plain)
2022-06-19 04:12 UTC, Oskari Pirhonen
emerge -pqv '=dev-libs/libffi-4.3.2-r1::gentoo' (emerge_pqv_libffi.txt,2.89 KB, text/plain)
2022-06-19 04:13 UTC, Oskari Pirhonen

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