make[3]: Entering directory '/var/tmp/portage/dev-qt/qtwebengine-5.12.3/work/qtwebengine-5.12.3_build/src/core' perl /usr/lib64/qt5/mkspecs/features/data/unix/findclasslist.pl < QtWebEngineCore.version.in > QtWebEngineCore.version rm -f libQt5WebEngineCore.so.5.12.3 libQt5WebEngineCore.so libQt5WebEngineCore.so.5 libQt5WebEngineCore.so.5.12 x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--gc-sections -Wl,--sort-common -Wl,-z,now -Wl,--no-undefined -Wl,--version-script,QtWebEngineCore.version -Wl,--gc-sections -Wl,-O1 -Wl,-z,now -Wl,-z,defs -Wl,--enable-new-dtags -shared -Wl,-soname,libQt5WebEngineCore.so.5 -o libQt5WebEngineCore.so.5.12.3 -lQt5Quick -lQt5Qml -lQt5Gui -lQt5Network -lQt5Core -lpthread -lQt5Gui -lQt5Core -lpthread -lQt5WebChannel -lQt5Qml -lQt5Network -lQt5Core -lpthread -lQt5Qml -lQt5Network -lQt5Core -lpthread -lQt5Network -lQt5Core -lpthread -lQt5Core -lpthread -lpthread ... /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-qt/qtwebengine-5.12.3/work/qtwebengine-5.12.3_build/src/core/release/obj/services/resource_coordinator/public/cpp/resource_coordinator_cpp/os_metrics_linux.o: relocation R_X86_64_PC32 against undefined symbol `__ehdr_start' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: nonrepresentable section on output collect2: error: ld returned 1 exit status make[3]: *** [Makefile.core_module:78: ../../lib/libQt5WebEngineCore.so.5.12.3] Error 1 make[3]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.12.3/work/qtwebengine-5.12.3_build/src/core' make[2]: *** [Makefile:124: sub-core_module-pro-make_first] Error 2 make[2]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.12.3/work/qtwebengine-5.12.3_build/src/core' make[1]: *** [Makefile:81: sub-core-make_first] Error 2 make[1]: Leaving directory '/var/tmp/portage/dev-qt/qtwebengine-5.12.3/work/qtwebengine-5.12.3_build/src' make: *** [Makefile:49: sub-src-make_first] Error 2 * ERROR: dev-qt/qtwebengine-5.12.3::gentoo failed (compile phase): * emake failed
Since building dev-qt/qtwebengine takes so long time, I suggest that ebuild early check for working linker. Probably something like: if ! $(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} -shared -fPIC -o "${T}/test.so" -x c++ - <<< "extern char __ehdr_start; int main() {char x = __ehdr_start;}"; then eerror "Broken linker detected" eerror "Upgrade of sys-devel/binutils required" die "Broken linker detected" fi
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/qt.git/commit/?id=7f9ac40b58c3552941b5ce9860fef70fb3d3a5fb commit 7f9ac40b58c3552941b5ce9860fef70fb3d3a5fb Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-04-20 20:00:59 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-04-20 20:10:17 +0000 dev-qt/qtwebengine: Block broken sys-devel/binutils-2.32-r0 Bug: https://bugs.gentoo.org/683794 Package-Manager: Portage-2.3.64, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-qt/qtwebengine/qtwebengine-5.12.3.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
sys-devel/binutils-2.31.1-r4 is not affected, but regression was backported to sys-devel/binutils-2.31.1-r5. !!=sys-devel/binutils-2.31.1-r5 blocker should be added.
*** Bug 684212 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a5727aa51c8d2ad854de6ce4972eab98b6d7a14 commit 1a5727aa51c8d2ad854de6ce4972eab98b6d7a14 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-04-24 20:12:34 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-04-24 20:14:38 +0000 dev-qt/qtwebengine: Block broken sys-devel/binutils-2.31.1-r5 Thanks-to: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> Closes: https://bugs.gentoo.org/683794 Package-Manager: Portage-2.3.64, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-qt/qtwebengine/qtwebengine-5.12.3.ebuild | 1 + 1 file changed, 1 insertion(+)