[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QEMU backport necessary for building with "recent" toolchain (on openSUSE Tumbleweed)


While trying to build Xen on openSUSE Tumbleweed, I run into this
error, when qemu-xen is being built:

ld: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
make[1]: *** [Makefile:53: multiboot.img] Error 1
make: *** [Makefile:576: pc-bios/optionrom/all] Error 2
make: Leaving directory '/build/tools/qemu-xen-build'
make[3]: *** [Makefile:212: subdir-all-qemu-xen-dir] Error 2
make[3]: Leaving directory '/build/tools'
make[2]: *** [/build/tools/../tools/Rules.mk:156: subdirs-install] Error 2
make[2]: Leaving directory '/build/tools'
make[1]: *** [Makefile:66: install] Error 2
make[1]: Leaving directory '/build/tools'
make: *** [Makefile:140: install-tools] Error 2

Build tools versions are as follows:

dario@885e566747e1:~> gcc -v
gcc version 10.3.0 (SUSE Linux) 

dario@885e566747e1:~> ld -v
GNU ld (GNU Binutils; openSUSE Tumbleweed)

I think we need the following commit in our QEMU: bbd2d5a812077
("build: -no-pie is no functional linker flag").

I have attempted a quick-&-dirty backport of it here:

Feel free to use it as a base, or tell me if I can help more with it in
any other way with it.

Dario Faggioli, Ph.D
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)

Attachment: signature.asc
Description: This is a digitally signed message part



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.