Package: qemu
Version: 1:2.4+dfsg-5
Severity: normal
User: debian-sp...@lists.debian.org
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 - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to