Bug#792033: qtbase-opensource-src: Gold linker breaks build on sparc

2015-07-10 Thread dmm

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-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#792033: qtbase-opensource-src: Gold linker breaks build on sparc

2015-07-10 Thread Lisandro Damián Nicanor Pérez Meyer
On Friday 10 July 2015 08:01:42 d...@mattli.us wrote:
 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
 +

Please first file a bug against the proper package and then block this one 
with the real bug.

I don't think adding this patch is indeed a good thing to do: what would 
happen with apps/libs that build-depend on qtbase and link with gold? Are we 
going to need a patch for each of them?

If there is no other way around I'll consider adding this patch, but I think 
the real fix should be in the linker, not this package.

Kinds regards, Lisandro.

-- 
Ponga su mano en una estufa caliente por un minuto, y le parecerá como una
hora. Siéntese con una muchacha bonita por una hora, y le parecerá un minuto.
¡Eso es relatividad!.
 Albert Einstein (1879-1955)

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/


signature.asc
Description: This is a digitally signed message part.