* Don't use gold on ppc64el. It fails to build in that case

(Closes: #972317)
This commit is contained in:
Sylvestre Ledru 2020-10-31 14:14:06 +01:00
commit 042c29b822
4 changed files with 58 additions and 3 deletions

View File

@ -20,7 +20,7 @@ and symlinks are managed by the other package llvm-defaults
* For armv7-a, NEON extensions are disabled. * For armv7-a, NEON extensions are disabled.
* For mips, FPXX is enabled. * For mips, FPXX is enabled, MADD4 instructions are disabled.
* For riscv64, the hard-float ABI is used instead of the float one, and * For riscv64, the hard-float ABI is used instead of the float one, and
the target CPU is set to RV64GC instead of RV64I. the target CPU is set to RV64GC instead of RV64I.

51
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-10 (1:10.0.1-8) unstable; urgency=medium
* Don't use gold on ppc64el. It fails to build in that case
(Closes: #972317)
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 31 Oct 2020 14:13:25 +0100
llvm-toolchain-10 (1:10.0.1-7) unstable; urgency=medium llvm-toolchain-10 (1:10.0.1-7) unstable; urgency=medium
[ Samuel Thibault ] [ Samuel Thibault ]
@ -436,10 +443,52 @@ llvm-toolchain-snapshot (1:10~svn366440-1~exp1) experimental; urgency=medium
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 18 Jul 2019 18:58:32 +0200 -- Sylvestre Ledru <sylvestre@debian.org> Thu, 18 Jul 2019 18:58:32 +0200
llvm-toolchain-9 (1:9.0.1-12) UNRELEASED; urgency=medium llvm-toolchain-9 (1:9.0.1-15) unstable; urgency=low
* Replace use of deprecated $ADTTMP with $AUTOPKGTEST_TMP.
* Ensure fixfilepath feature is disabled. The fixfilepath
feature sets a -ffile-prefix-map flag, which is only
supported in clang-10. (Closes: #972751).
Thanks to Vagrant Cascadian for the patch
* Don't use gold on ppc64el. It fails to build in that case
(Closes: #972317)
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 31 Oct 2020 14:09:15 +0100
llvm-toolchain-9 (1:9.0.1-14) unstable; urgency=medium
* debian/patches/b288d90b39f4b905c02092a9bfcfd6d78f99b191.patch:
* debian/patches/3185c30c54d0af5bffbff3bcfd721668d086ff10.patch:
- cherry-pick upstream fixes for ppc64el build failure (Closes: #968174)
* Previous version closed bug: 964988 (Closes: #964988)
-- Gianfranco Costamagna <locutusofborg@debian.org> Sat, 15 Aug 2020 21:53:41 +0200
llvm-toolchain-9 (1:9.0.1-13) unstable; urgency=medium
[ Aurelien Jarno ]
* Add mips-force-nomadd4.diff to default to +nomadd4 on MIPS. (Closes:
#964988)
[ Ximin Luo ]
* Add 373184.patch to fix soundness issue affecting rustc. (Closes: #959877)
* Add f8e146f3430de3a6cd904f3f3f7aa1bfaefee14c.patch to fix big-endian
miscompilation affecting rustc.
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 07 Jul 2020 18:18:00 +0200
llvm-toolchain-9 (1:9.0.1-12) unstable; urgency=medium
* Cherry-pick upstream patch D74453 to fix atomic compare-and-swap on * Cherry-pick upstream patch D74453 to fix atomic compare-and-swap on
riscv64. riscv64.
riscv64.
[ William Grant ]
* debian/patches/riscv64-multilib-empty.patch: Adjust riscv64 GCC detector
to also check for existence of crtbegin.o in the default multilib dir,
like most other ports. Fixes FTBFS on riscv64, since on Ubuntu
/usr/lib/gcc/riscv64-linux-gnu/10 exists but is empty (gcc-10-base is
installed, but libgcc-10-dev is not).
-- Jessica Clarke <jrtc27@debian.org> Wed, 01 Apr 2020 16:23:55 +0100 -- Jessica Clarke <jrtc27@debian.org> Wed, 01 Apr 2020 16:23:55 +0100

View File

@ -83,6 +83,7 @@ libcxx/libcxx-silent-failure-arm64.diff
# Change default optims # Change default optims
mips-fpxx-enable.diff mips-fpxx-enable.diff
mips-force-nomadd4.diff
26-set-correct-float-abi.diff 26-set-correct-float-abi.diff
clang-baseline-fix-i386.patch clang-baseline-fix-i386.patch
disable-sse2-old-x86.diff disable-sse2-old-x86.diff
@ -148,3 +149,4 @@ clang_vendor_pass_stage2.diff
remove-trailing-space-version.diff remove-trailing-space-version.diff
mips-force-nomadd4.patch mips-force-nomadd4.patch
PowerPC-PPCBoolRetToInt-Dont-translate-Constants-operands.diff PowerPC-PPCBoolRetToInt-Dont-translate-Constants-operands.diff

6
debian/rules vendored
View File

@ -59,6 +59,10 @@ ifneq (,$(filter $(DEB_HOST_ARCH),armel riscv64))
LDFLAGS_EXTRA += -latomic LDFLAGS_EXTRA += -latomic
endif endif
# Ensure fixfilepath feature is disabled. The fixfilepath feature
# sets a -ffile-prefix-map flag, which is only supported in clang-10.
export DEB_BUILD_MAINT_OPTIONS=reproducible=-fixfilepath
# Cxx flags for building libcxx and libcxxabi # Cxx flags for building libcxx and libcxxabi
LIBCXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) LIBCXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
@ -129,7 +133,7 @@ endif
# CMAKE_EXTRA += -DLLVM_ENABLE_LLD=ON # CMAKE_EXTRA += -DLLVM_ENABLE_LLD=ON
# endif # 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 x32 s390x 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) 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))) ifneq (,$(filter $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
# -fused-ld=gold enables the gold linker (but is not supported by all archs / distro) # -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)