Your message dated Wed, 20 May 2015 15:31:18 +0300
with message-id <[email protected]>
and subject line Re: Bug#785806: Package qemu_1:2.3+dfsg-3 FTBFS - recompile
with -fPIC
has caused the Debian Bug report #785806,
regarding Package qemu_1:2.3+dfsg-3 FTBFS - recompile with -fPIC
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
785806: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785806
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: qemu
Version: 1:2.3+dfsg-3
Severity: serious
Tags: sid
User: [email protected]
Usertags: mips-patch
Package qemu_1:2.3+dfsg-3 FTBFS on mips, mipsel, armhf, arm64, kfreebsd-amd64
with "recompile with -fPIC" message.
https://buildd.debian.org/status/package.php?p=qemu&suite=sid
This issue occur because few object .o files are built without -fPIC
and later they are used for creating library .so file with -fPIC enabled.
Solution for this is available upstream:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d24697e1824467f3921c84a94f011f43d6466403
--- a/rules.mak
+++ b/rules.mak
@@ -102,7 +102,8 @@ endif
%.o: %.dtrace
$(call quiet-command,dtrace -o $@ -G -s $<, " GEN $(TARGET_DIR)$@")
-%$(DSOSUF): CFLAGS += -fPIC -DBUILD_DSO
+DSO_OBJ_CFLAGS := -fPIC -DBUILD_DSO
+module-common.o: CFLAGS += $(DSO_OBJ_CFLAGS)
%$(DSOSUF): LDFLAGS += $(LDFLAGS_SHARED)
%$(DSOSUF): %.mo
$(call LINK,$^)
@@ -351,6 +352,7 @@ define unnest-vars
# For non-module build, add -m to -y
$(if $(CONFIG_MODULES),
$(foreach o,$($v),
+ $(eval $($o-objs): CFLAGS += $(DSO_OBJ_CFLAGS))
$(eval $o: $($o-objs)))
$(eval $(patsubst %-m,%-y,$v) += $($v))
$(eval modules: $($v:%.mo=%$(DSOSUF))),
This issue does not occur on i386 and amd64 because -fPIE is used for build on
those archs.
Part of the configure file:
if test "$pie" = ""; then
case "$cpu-$targetos" in
i386-Linux|x86_64-Linux|x32-Linux|i386-OpenBSD|x86_64-OpenBSD)
;;
*)
pie="no"
;;
esac
fi
With this patch from upstream (attached) package does build on mipsel
successfully.
Thank you!
Regards,
Jurica
--- qemu-2.3+dfsg.orig/rules.mak
+++ qemu-2.3+dfsg/rules.mak
@@ -102,7 +102,8 @@ endif
%.o: %.dtrace
$(call quiet-command,dtrace -o $@ -G -s $<, " GEN $(TARGET_DIR)$@")
-%$(DSOSUF): CFLAGS += -fPIC -DBUILD_DSO
+DSO_OBJ_CFLAGS := -fPIC -DBUILD_DSO
+module-common.o: CFLAGS += $(DSO_OBJ_CFLAGS)
%$(DSOSUF): LDFLAGS += $(LDFLAGS_SHARED)
%$(DSOSUF): %.mo
$(call LINK,$^)
@@ -351,6 +352,7 @@ define unnest-vars
# For non-module build, add -m to -y
$(if $(CONFIG_MODULES),
$(foreach o,$($v),
+ $(eval $($o-objs): CFLAGS += $(DSO_OBJ_CFLAGS))
$(eval $o: $($o-objs)))
$(eval $(patsubst %-m,%-y,$v) += $($v))
$(eval modules: $($v:%.mo=%$(DSOSUF))),
--- End Message ---
--- Begin Message ---
Version: 1:2.3+dfsg-4
20.05.2015 15:06, Jurica Stanojkovic wrote:
[]
> Package qemu_1:2.3+dfsg-3 FTBFS on mips, mipsel, armhf, arm64, kfreebsd-amd64
> with "recompile with -fPIC" message.
> https://buildd.debian.org/status/package.php?p=qemu&suite=sid
>
> This issue occur because few object .o files are built without -fPIC
> and later they are used for creating library .so file with -fPIC enabled.
>
> Solution for this is available upstream:
> http://git.qemu.org/?p=qemu.git;a=commitdiff;h=d24697e1824467f3921c84a94f011f43d6466403
I applied this patch the other day and uploaded new qemu release with that
patch about 2 hours ago.
Thanks,
/mjt
--- End Message ---