Package: bash
Version: 4.3-12
Severity: minor

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

Content-Type: multipart/mixed; boundary="===============8756920058145874366=="
MIME-Version: 1.0
From: Joseph Lee <jesa7...@gmail.com>
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Subject: bash: FTBFS with clang instead of gcc
Message-ID: <20150528071544.8425.84924.reportbug@roc-jesa>
X-Mailer: reportbug 6.6.3
Date: Thu, 28 May 2015 07:15:45 +0000

This is a multi-part MIME message sent by reportbug.


--===============8756920058145874366==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: bash
Version: 4.3-12
Severity: minor

Dear Maintainer,

Hello,

Using the rebuilding infrastructure, your package failed to build with
clang instead of because of linker error.

Error is like this:
http://clang.debian.net/status.php?version=3.6.0&key=LINK_ERROR

Full build log is available here:
http://clang.debian.net/logs/2015-03-25/bash_4.3-12_unstable_clang.log

I found that using ld.gold as linker can fix this problem. 

Thanks,
Joseph

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.4-2-ARCH (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

--===============8756920058145874366==
Content-Type: text/x-diff; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="bash_clang.patch"

diff -Nru bash-4.3/debian/rules bash-4.3/debian/rules
--- bash-4.3/debian/rules       2015-01-28 16:55:12.000000000 +0000
+++ bash-4.3/debian/rules       2015-05-20 03:24:37.000000000 +0000
@@ -43,7 +43,9 @@
 CFLAGS := $(shell $(dpkg_buildflags) --get CFLAGS)
 CPPFLAGS := $(shell $(dpkg_buildflags) --get CPPFLAGS)
 LDFLAGS := $(shell $(dpkg_buildflags) --get LDFLAGS)
-
+ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang version"), 1)
+   LDFLAGS += -fuse-ld=gold
+endif

 SHELL  = /bin/bash
 YACC   = bison -y
 

--===============8756920058145874366==--

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.4-2-ARCH (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages bash depends on:
ii  base-files   9.2
ii  dash         0.5.7-4+b1
ii  debianutils  4.5
ii  libc6        2.19-18
ii  libncurses5  5.9+20150516-2
ii  libtinfo5    5.9+20150516-2

Versions of packages bash recommends:
pn  bash-completion  <none>

Versions of packages bash suggests:
pn  bash-doc  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to