Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734222 - app-emulation/xen-tools fails to compile with lld
Summary: app-emulation/xen-tools fails to compile with lld
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2020-07-28 10:11 UTC by Agostino Sarubbo
Modified: 2020-07-28 11:34 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,774.94 KB, text/plain)
2020-07-28 10:11 UTC, Agostino Sarubbo
Details

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