Source: qtbase-opensource-src Severity: grave Tags: patch Justification: renders package unusable
Dear Maintainer, The qtbase-opensource-src build is currently broken on sparc. While investigating the bug describing this breakage, #773590, I found that the actual code generated by gcc-4.9 is fine but the linker is incorrectly arranging sting literal function arguments resulting in garbage values being passed to functions. The result is that moc doesn't produce any output files and doesn't print correct diagnostic messages. It appears to be specifically the gold linker that the ./configure script selects by default that has the problem. If the bfd linker is selected instead the build completes normally and the packages generated work in my testing. I'm working on a minimal testcase to report the gold bug but until this is fixed it can be worked around by disabling gold on sparc at configure time. This patch is one way this could be done, it fixes the build on my sparc system. --- qtbase-opensource-src-5.4.2+dfsg/debian/rules +++ qtbase-opensource-src-5.4.2+dfsg/debian/rules @@ -55,6 +55,11 @@ extra_configure_opts += -opengl desktop endif +no_gold_architectures := sparc +ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(no_gold_architectures))) + extra_configure_opts += -no-use-gold-linker +endif + ifneq ($(DEB_HOST_ARCH_OS),linux) extra_configure_opts += -no-eglfs endif -- System Information: Debian Release: stretch/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: sparc (sparc64) Foreign Architectures: sparc64 Kernel: Linux 4.1.0-201506221440 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org