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

Bug 734222

Summary: app-emulation/xen-tools fails to compile with lld
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Tomáš Mózes <hydrapolic>
Status: CONFIRMED ---    
Severity: normal CC: proxy-maint, xen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 731004    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-07-28 10:11:18 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-emulation/xen-tools fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue isstrictly related to the LLD linker, please block bug 731004.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-28 10:11:26 UTC
Created attachment 651160 [details]
build.log

build log and emerge --info
Comment 2 Tomáš Mózes 2020-07-28 11:33:46 UTC
/xen-4.13.1/tools/xcutils/../../tools/libxc/libxenguest.so 
make[3]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/xcutils'
make[2]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools'
make[2]: Entering directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools'
make -C firmware all
make[3]: Entering directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/firmware'
make CC=x86_64-pc-linux-gnu-clang PYTHON=python3.7 subdirs-all
make[4]: Entering directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/firmware'
make[5]: Entering directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/firmware'
make -C seabios-dir CC=x86_64-pc-linux-gnu-clang LD=ld.lld PYTHON=python3.7 EXTRAVERSION="-Xen" all;
make[6]: Entering directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/firmware/seabios-dir-remote'
The version of LD on this system (ld.lld) does not properly handle
alignments.  As a result, this project can not be built.

The problem may be the result of this LD bug report:
 http://sourceware.org/bugzilla/show_bug.cgi?id=12726

Please update to a working version of binutils and retry.
Makefile:111: *** "Please upgrade the build environment".  Stop.
make[6]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/firmware/seabios-dir-remote'
make[5]: *** [Makefile:129: subdir-all-seabios-dir] Error 2
make[5]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/firmware'
make[4]: *** [/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/firmware/../../tools/Rules.mk:232: subdirs-all] Error 2
make[4]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/firmware'
make[3]: *** [Makefile:36: all] Error 2
make[3]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/firmware'
make[2]: *** [/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/../tools/Rules.mk:237: subdir-all-firmware] Error 2
make[2]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools'
make[1]: *** [/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools/../tools/Rules.mk:232: subdirs-all] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1/tools'
make: *** [Makefile:63: build-tools] Error 2
 * ERROR: app-emulation/xen-tools-4.13.1-r2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/xen-tools-4.13.1-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/xen-tools-4.13.1-r2::gentoo'`.
 * The complete build log is located at '/var/log/emerge-log/build/app-emulation/xen-tools-4.13.1-r2:20200725-220839.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1'
 * S: '/var/tmp/portage/app-emulation/xen-tools-4.13.1-r2/work/xen-4.13.1'