Bug#1008657: clang-14: Integrate post v14.0.0 upstream patches
Sedat Dilek
sedat.dilek at gmail.com
Wed Mar 30 10:16:13 BST 2022
Package: clang-14
Version: 1:14.0.0-1
Severity: normal
X-Debbugs-Cc: sedat.dilek at gmail.com
Hi Sylvestre,
User ldionne requests in [1] to integrate some important libc++ fixes:
> We shipped LLVM 14 with an unfortunate regression in std::span which makes adoption of LLVM 14 somewhat difficult in large code bases.
> Long story short, some valid code won’t compile anymore, and while workarounds exist, it’s a bit painful and it really shouldn’t be necessary since the code is 100% fine from a user’s perspective.
> This is my fault, I let that slip into the release, did not realize it was going to have the impact it has, and my fixes missed the final RC by a couple of days
> Had I known the impact, I would have made this a release blocker.
It's about these 2 commits:
$ cd /path/to/llvm-project/git
$ git log --oneline tags/llvmorg-14.0.0..release/14.x
3f43d803382d (HEAD -> release/14.x, origin/release/14.x) [libc++] Re-enable workaround for pre-ranges CTAD in std::span
add3ab7f4c8a [libc++] Add workaround to avoid breaking users of <span> when <ranges> are disabled
The changelog in [2] says nothing about an integration of these 2 commits.
Unfortunately, an updated LLVM/Clang version 14 from <apt.llvm.org> is according to a lower Debian version only possible with some tricks.
[ major and debian versions ]
MVER="14" ; DVER="1:14.0.0~++20220329040533+3f43d803382d-1~exp1~20220329160543.107"
[ llvm packages ]
llvm_pkgs="clang-$MVER libclang-common-$MVER-dev libclang-cpp$MVER libclang1-$MVER libllvm$MVER lld-$MVER llvm-$MVER llvm-$MVER-linker-tools llvm-$MVER-runtime llvm-$MVER-tools"
echo $MVER $DVER $llvm_pkgs
[ simulate ]
for p in $llvm_pkgs ; do echo [ $p ] ; apt-get install $p=$DVER -t llvm-toolchain-$MVER --allow-downgrades --no-install-recommends -s ; done
[ install ]
for p in $llvm_pkgs ; do echo [ $p ] ; apt-get install $p=$DVER -t llvm-toolchain-$MVER --allow-downgrades --no-install-recommends -y ; done
Can you provide a new llvm-toolchain-14 packages in Debian/unstable with these upstream patches?
Thanks.
Regards,
- Sedat -
[1] https://discourse.llvm.org/t/llvm-14-0-1-schedule-and-release-updates/61227
[2] https://metadata.ftp-master.debian.org/changelogs//main/l/llvm-toolchain-14/llvm-toolchain-14_14.0.0-1_changelog
-- System Information:
Debian Release: bookworm/sid
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'testing'), (500, 'stable'), (99, 'buildd-unstable'), (99, 'buildd-experimental'), (99, 'experimental'), (99, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.17.0-3-amd64-clang14-lto (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages clang-14 depends on:
ii binutils 2.38-3
ii libc6 2.33-7
ii libc6-dev 2.33-7
ii libclang-common-14-dev 1:14.0.0-1
ii libclang-cpp14 1:14.0.0-1
ii libclang1-14 1:14.0.0-1
ii libgcc-11-dev 11.2.0-19
ii libgcc-s1 12-20220319-1
ii libllvm14 1:14.0.0-1
ii libobjc-11-dev 11.2.0-19
ii libstdc++-11-dev 11.2.0-19
ii libstdc++6 12-20220319-1
ii llvm-14-linker-tools 1:14.0.0-1
Versions of packages clang-14 recommends:
pn llvm-14-dev <none>
ii python3 3.10.4-1
Versions of packages clang-14 suggests:
pn clang-14-doc <none>
-- no debconf information
More information about the Pkg-llvm-team
mailing list