Your message dated Sun, 24 Mar 2024 00:38:10 +0100
with message-id <[email protected]>
and subject line Re: bash: FTBFS with clang instead of gcc
has caused the Debian Bug report #787060,
regarding bash: FTBFS with clang instead of gcc
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.)
--
787060: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787060
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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. So I made a
patch for debian/rules
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
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
--- End Message ---
--- Begin Message ---
According to the current https://clang.debian.net/maintainers.php, bash
can be compiled with clang 13.0.0.
--- End Message ---