QEMU backport necessary for building with "recent" toolchain (on openSUSE Tumbleweed)
Hello,
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) 2.36.1.20210326-3
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:
https://xenbits.xen.org/gitweb/?p=people/dariof/qemu-xen.git;a=commit;h=85575b7b661cedb8e6f6e192d36199ca9fde5841
Feel free to use it as a base, or tell me if I can help more with it in any other way with it.
Regards
Signature · 6 lines
Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <<This happens because _I_ choose it to happen!>> (Raistlin Majere)
Quoted 4 lines · Dario Faggioli
Hello,
I think we need the following commit in our QEMU:
bbd2d5a812077("build: -no-pie is no functional linker flag").
Hi Dario,
I'm hoping to update qemu-xen to a newer version of QEMU (6.0) which would have the fix, but that's need a fix of libxl,
"Fix libxl with QEMU 6.0 + remove some more deprecated usages."
So I would prefer to avoid adding more to the current branch.
The branch stable-4.15 already have the fix if you need, in the mean time.
Thanks,
Signature · 1 line
Anthony PERARD
Quoted 7 lines · Anthony PERARD
Quoted 3 lines · Dario Faggioli
I think we need the following commit in our QEMU:
bbd2d5a812077("build: -no-pie is no functional linker flag").Hi Dario,
Hi,
Quoted 5 lines
I'm hoping to update qemu-xen to a newer version of QEMU (6.0) which would have the fix, but that's need a fix of libxl,
"Fix libxl with QEMU 6.0 + remove some more deprecated usages." So I would prefer to avoid adding more to the current branch.
Sure, makes sense.
I wanted to bring it up, in case it hadn't been noticed yet. If it has been noticed and there's a plan then we're good, I guess.
Quoted 3 lines
The branch stable-4.15 already have the fix if you need, in the mean time.
Ok, thanks!
Regards
Signature · 6 lines
Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <<This happens because _I_ choose it to happen!>> (Raistlin Majere)