Bug#940714: stretch-pu: package llvm-toolchain-7 7.0.1-8~deb9u3
Package: release.debian.org
Severity: normal
Tags: stretch
User: release.debian.org@packages.debian.org
Usertags: pu
Hi,
I have uploaded a new revision of llvm-toolchain-7 to address the s390x and
mips64el build failures. I couldn't properly test the mips64el fix on the
porterbox as I was getting a SIGBUS before the failing point with and without
the attached change, but I'm hopeful it will work on the buildds (where we
didn't get the SIGBUS before this change) as this same flag helped fix this same
build failure on sid a while ago. I tested it on amd64 and the compiler works
fine (built rustc with it without issues).
Thanks,
Emilio
diff -Nru llvm-toolchain-7-7.0.1/debian/changelog llvm-toolchain-7-7.0.1/debian/changelog
--- llvm-toolchain-7-7.0.1/debian/changelog 2019-09-02 10:15:04.000000000 +0200
+++ llvm-toolchain-7-7.0.1/debian/changelog 2019-09-03 11:51:42.000000000 +0200
@@ -1,3 +1,11 @@
+llvm-toolchain-7 (1:7.0.1-8~deb9u3) stretch; urgency=medium
+
+ * Disable the gold linker from s390x.
+ * Bootstrap with -fno-addrsig, stretch's binutils doesn't work with it on
+ mips64el.
+
+ -- Emilio Pozuelo Monfort <pochu@debian.org> Tue, 03 Sep 2019 11:51:42 +0200
+
llvm-toolchain-7 (1:7.0.1-8~deb9u2) stretch; urgency=medium
* Disable ocaml on ppc64el and s390x.
diff -Nru llvm-toolchain-7-7.0.1/debian/rules llvm-toolchain-7-7.0.1/debian/rules
--- llvm-toolchain-7-7.0.1/debian/rules 2019-09-02 10:15:00.000000000 +0200
+++ llvm-toolchain-7-7.0.1/debian/rules 2019-09-03 11:51:42.000000000 +0200
@@ -113,7 +113,7 @@
# CMAKE_EXTRA += -DLLVM_ENABLE_LLD=ON
# endif
-BINUTILS_GOLD_ARCHS := amd64 arm64 armhf i386 ppc64 ppc64el x32 s390x hurd-i386 kfreebsd-amd64 kfreebsd-i386
+BINUTILS_GOLD_ARCHS := amd64 arm64 armhf i386 ppc64 ppc64el x32 hurd-i386 kfreebsd-amd64 kfreebsd-i386
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.23.1-1~exp3 ; echo $$?),0)
ifneq (,$(filter $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
# -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)
@@ -139,9 +139,9 @@
# Enable for bootstrap
LDFLAGS_EXTRA += -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option -Wl,--build-id
CXXFLAGS_EXTRA += -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option
-BOOTSTRAP_CXXFLAGS_EXTRA = $(CXXFLAGS_EXTRA) # Nothing for now. Keeping in case we need it
+BOOTSTRAP_CXXFLAGS_EXTRA = $(CXXFLAGS_EXTRA) -fno-addrsig
CFLAGS_EXTRA += -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option
-BOOTSTRAP_CFLAGS_EXTRA = $(CFLAGS_EXTRA) # Nothing for now. Keeping in case we need it
+BOOTSTRAP_CFLAGS_EXTRA = $(CFLAGS_EXTRA) -fno-addrsig
# Enable polly (or not)
POLLY_ENABLE=yes
Reply to: