Package: phantomjs
Version: 1.6.0-5
Severity: serious
Tags: patch
Justification: fails to build from source

Building on i386 produces this failure:
    g++ -Wl,-rpath-link,/tmp/buildd/phantomjs-1.6.0/src/qt/lib -fuse-ld=gold 
-fuse-ld=gold -Wl,--gc-sections -Wl,--no-undefined -fuse-ld=gold 
-Wl,--no-undefined -Wl,-O1 -shared -Wl,-soname,libQtWebKit.so.4 -o 
libQtWebKit.so.4.9.2 ...
    [many pages of files omitted]
    g++: error: unrecognized command line option '-fuse-ld=gold'
    g++: error: unrecognized command line option '-fuse-ld=gold'
    g++: error: unrecognized command line option '-fuse-ld=gold'
    make[4]: *** [../../../../../../lib/libQtWebKit.so.4.9.2] Error 1
so libQtWebKit does not get built.

A workaround is to disable the use of ld.gold, as in the attached patch.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (400, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages phantomjs depends on:
ii  libc6           2.13-35
ii  libfontconfig1  2.9.0-7
ii  libfreetype6    2.4.9-1
ii  libgcc1         1:4.7.2-4
ii  libjpeg8        8d-1
ii  libpng12-0      1.2.49-1
ii  libstdc++6      4.7.2-4
ii  zlib1g          1:1.2.7.dfsg-13

phantomjs recommends no packages.

phantomjs suggests no packages.

-- no debconf information
>From 03dd5a6ca3fca08fd35e37dfe93e7aca27728b00 Mon Sep 17 00:00:00 2001
From: Eric Cooper <e...@cmu.edu>
Date: Mon, 19 Nov 2012 15:16:58 -0500
Subject: [PATCH] Don't use ld.gold when building webkit


Signed-off-by: Eric Cooper <e...@cmu.edu>
---
 src/qt/src/3rdparty/webkit/Source/common.pri |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/qt/src/3rdparty/webkit/Source/common.pri b/src/qt/src/3rdparty/webkit/Source/common.pri
index 0f62e14..093647a 100644
--- a/src/qt/src/3rdparty/webkit/Source/common.pri
+++ b/src/qt/src/3rdparty/webkit/Source/common.pri
@@ -3,13 +3,6 @@
 contains(JAVASCRIPTCORE_JIT,yes): DEFINES+=ENABLE_JIT=1
 contains(JAVASCRIPTCORE_JIT,no): DEFINES+=ENABLE_JIT=0
 
-linux-g++ {
-isEmpty($$(SBOX_DPKG_INST_ARCH)):exists(/usr/bin/ld.gold) {
-    message(Using gold linker)
-    QMAKE_LFLAGS+=-fuse-ld=gold
-}
-}
-
 # We use this flag on production branches
 # See https://bugs.webkit.org/show_bug.cgi?id=60824
 CONFIG += production
-- 
1.7.10.4

Reply via email to