[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Bug#807006: qemu: FTBFS on sparc64 due to incompatible link
From: |
John Paul Adrian Glaubitz |
Subject: |
[Qemu-devel] Bug#807006: qemu: FTBFS on sparc64 due to incompatible linker parameters |
Date: |
Fri, 04 Dec 2015 01:58:14 +0100 |
Package: qemu
Version: 1:2.4+dfsg-5
Severity: normal
User: address@hidden
Usertags: sparc64
Hello!
qemu currently fails to build from source on sparc64 because it sets
both the linker parameters "-r" and "--relax":
cc -nostdlib -Wl,-r -o block/iscsi.mo block/iscsi.o
/usr/bin/ld: --relax and -r may not be used together
collect2: error: ld returned 1 exit status
make[1]: *** [block/iscsi.mo] Error 1
/«BUILDDIR»/qemu-2.4+dfsg/rules.mak:117: recipe for target 'block/iscsi.mo'
failed
This happens because gcc is called with "-Wl,-r" which does not gcc's
internal mechanism to disable "--relax" at the same time (for whatever
reason).
Thus, on sparc*, gcc should be either called with just "-Wl" but not with "-r"
or the option "-no-relax" should be passed in order to fix this problem.
ghc upstream had the same problem and fixed the issue by setting "-no-relax"
for sparc [1].
Please apply a similar fix for qemu.
Cheers,
Adrian
> [1] https://ghc.haskell.org/trac/ghc/ticket/3791
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - address@hidden
`. `' Freie Universitaet Berlin - address@hidden
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] Bug#807006: qemu: FTBFS on sparc64 due to incompatible linker parameters,
John Paul Adrian Glaubitz <=