Commit Graph

6241 Commits

Author SHA1 Message Date
Faidon Liambotis
7b0348cfde Drop two unreferenced debian/patches
sparc/sparc-D98574-clang-def.patch and
sparc/sparc-D98575-compiler-rt.patch are not in debian/patches/series so
it's safe to drop them. D98574 is now merged, D98575 is abandoned, due
to it being fixed elsewhere, so there's no chance they're going to be
revived either.
2024-01-08 15:42:31 +02:00
Faidon Liambotis
1b0abffef7 Enable COMPILER_RT_BUILD_BUILTINS for armel
According to upstream commit aadec60ad9b81f00cf6fcdcbff61f1144d206769,
starting with LLVM 17, armv4t is now supported.

(untested)
2024-01-08 15:41:38 +02:00
Faidon Liambotis
400d893908 Enable COMPILER_RT_DEFAULT_TARGET_ONLY for all archs
This commit does two things in one go:
1) Enable COMPILER_RT_DEFAULT_TARGET_ONLY for i386 and amd64:

Right now i386/amd64 are building compiler-rt for each other, in
addition to themselves.:
 - libclang-rt-17-dev:amd64 is also shipping the i386 builtins, and
   Depending on libc6-i386:amd64/lib32stdc++:amd64.
 - libclang-rt-17-dev:i386 is also shipping the x86_64 built-ins, and
   Depending on libc6-amd64:i386/lib64stdc++6:i386/lib64atomic1:i386.

Beyond the extra cruft in files and dependencies, this means that the
amd64/i386 packages are shipping conflicting files, and dpkg is refusing
to unpack one in the presence of the other (an RC bug in itself). This
is also identified by the multiarch hinter with the following message:
   libclang-rt-17-dev conflicts on 78 files starting with /usr/lib/llvm-17/lib/clang/17/lib/linux/ on amd64 <-> i386

Let users who want to build e.g. 32-bit binaries in amd64 use multi-arch
for this use case, by installing libclang-rt-17-dev:i386. The
alternative would be to support multi-lib, and ship additional packages
such as libclang-rt-17-dev-i386:amd64 (and vice-versa), but this feels
like an overkill. Multi-lib remains still a possibility with (Debian's)
clang's default, libgcc (lib32gcc/lib64gcc) as well.

2) Enable COMPILER_RT_DEFAULT_TARGET_ONLY unconditionally:

This was being passed in an opt-in basis, via STAGE_ALL_CMAKE_EXTRA for
the following architectures:
  * armel
  * armhf
  * powerpc
  * sparc
  * sparc64
  * s390x
  * mips64el
  * hurd-i386

So, with i386/amd64 also opting-in, this leaves only a few remaining
Debian architectures.

Furthermore, upon inspecting compiler-rt/cmake/base-config-ix.cmake, it
looks like the only architectures that are actually building for
additional (non-default) targets are i386, amd64, powerpc (note: not
ppc64el!), mips*, and arm. Turns out we've disabled that for all of them
now.

Therefore, pass COMPILER_RT_DEFAULT_TARGET_ONLY=ON to all architectures
unconditionally, and thus reduce an additional variation factor.
2024-01-08 15:40:12 +02:00
Faidon Liambotis
4c6dc0ef68 Add libc++-*-dev -> libc++abi-*-dev dependency
libc++abi-*-dev is necessary when using libc++-*-dev:
  $ apt install clang-17 libc++-17-dev
  $ clang++-17 -stdlib=libc++ -o hello hello.cpp
  /usr/bin/ld: cannot find -lc++abi: No such file or directory
  clang++-17: error: linker command failed with exit code 1 (use -v to see invocation)

Note that the libc++1-* -> libc++abi-* dependency already exists.
2024-01-08 15:36:56 +02:00
Sylvestre Ledru
c659ae9a28 refresh libomp5 symbol list 2023-12-20 10:17:53 +01:00
Sylvestre Ledru
2adf1da1ef rebase of the patch 2023-12-18 23:23:58 +01:00
Sylvestre Ledru
35c0ede504 rebase of the patch 2023-12-13 21:56:20 +01:00
Matthias Klose
e20f4b1bba * libclang1-17: Remove the full version symlinks. 2023-12-11 22:56:07 +01:00
Sylvestre Ledru
6687fb0527 * New snapshot release
* Fix a libc++ conflicts (Closes: #1057899)
2023-12-11 10:35:09 +01:00
Sylvestre Ledru
845e43e80f Merge remote-tracking branch 'origin/17' into snapshot 2023-12-11 10:26:13 +01:00
Sylvestre Ledru
ff81119e58 rebase of the patch 2023-12-09 23:31:35 +01:00
Sylvestre Ledru
5a842ba5c2 prepare upload 2023-12-09 23:15:50 +01:00
Sylvestre Ledru
395e9a3e89 qualify-clang.sh: fix the filename 2023-12-09 22:58:13 +01:00
Sylvestre Ledru
e080ef40f3 fix https://github.com/llvm/llvm-project/issues/74766 2023-12-08 09:55:23 +01:00
Gianfranco Costamagna
142b0f07b4 Update changelog 2023-12-08 09:49:20 +01:00
Gianfranco Costamagna
92c2f79260 Drop sed command, useless now 2023-12-08 09:48:50 +01:00
Sylvestre Ledru
9622f7635a Also add back /usr/lib/llvm-17/lib/libclang-17.so.1 2023-12-06 17:56:50 +01:00
Sylvestre Ledru
295214f8d0 cherry pick the change from 17 about the cmake 2023-12-06 17:08:31 +01:00
Sylvestre Ledru
55b75cf44f Fix the EmitBackendOutput test in debian/qualify-clang.sh 2023-12-06 15:10:01 +01:00
Sylvestre Ledru
ee43996aae remove old break/replaces 2023-12-06 11:23:10 +01:00
Sylvestre Ledru
5643163c61 refresh debian/control 2023-12-06 11:22:19 +01:00
Sylvestre Ledru
2d79706115 Move the symlink /usr/lib/*/libc++experimental.a from libc++abi-17-dev to libc++-17-dev 2023-12-06 11:20:00 +01:00
Sylvestre Ledru
9d80d3d62e rename of the patch 2023-12-06 10:35:19 +01:00
Sylvestre Ledru
dd52f2e40c rename of the patch 2023-12-06 10:33:00 +01:00
Sylvestre Ledru
b6debd0c08 rebase of the patch 2023-12-06 10:29:45 +01:00
Sylvestre Ledru
f82e3a2f95 libc++experimental.a is in libc++-17-dev, not libc++abi-17-dev 2023-12-06 10:26:21 +01:00
Sylvestre Ledru
b3f5e896b1 qualify-clang.sh : add missing package 2023-12-06 10:26:21 +01:00
Sylvestre Ledru
60d6dd5b5d prepare upload 2023-12-06 10:23:21 +01:00
Matthias Klose
b849383755 * Apply the proposed fix for D158491, build failure on mips64el, still
unreviewed upstream. Addresses: #1056116.
2023-12-06 10:01:37 +01:00
Matthias Klose
5e253166ac * Apply the proposed fix for D158491, build failure on mips64el, still
unreviewed upstream. Addresses: #1056116.
2023-12-06 09:59:55 +01:00
Gianfranco Costamagna
d7e966255e Merge branch 'riscv64-parallel' into '17'
Do not limit the parallel links on riscv64

See merge request pkg-llvm-team/llvm-toolchain!122
2023-12-05 10:49:12 +00:00
Matthias Klose
9aa5a6b013 * Set the cpu defaults for the ARM32 architectures:
- armel: arm926ej-s. Addresses: #1056115.
    - armhf: cortex-a8.
    Thanks to Arnd Bergmann and Ard Biesheuvel for the fixes.
2023-12-05 09:43:34 +01:00
Matthias Klose
01a06b481e * Set the cpu defaults for the ARM32 architectures:
- armel: arm926ej-s. Closes: #1056115.
    - armhf: cortex-a8.
    Thanks to Arnd Bergmann and Ard Biesheuvel for the fixes.
2023-12-05 09:42:31 +01:00
Sylvestre Ledru
e03dd05554 fix changelog 2023-12-05 07:45:54 +01:00
Sylvestre Ledru
35cc1319c6 * revert debian/patches/arm32-defaults.diff for causing
https://lore.kernel.org/lkml/20231204225148.GA2094126@dev-arch.thelio-3990X/T/
2023-12-05 07:44:35 +01:00
Sylvestre Ledru
04b600fe3b Revert " * Set the cpu defaults for the ARM32 architectures:"
for causing this issue:
https://lore.kernel.org/lkml/20231204225148.GA2094126@dev-arch.thelio-3990X/T/

This reverts commit 97633b6d51.
2023-12-05 07:41:52 +01:00
Matthias Klose
695fe3013f * libclang1-17: Hard-code the last full versions for the symlinks. 2023-12-04 13:23:09 +01:00
Sylvestre Ledru
c9f95b639f fix changelog 2023-12-03 10:22:33 +01:00
Sylvestre Ledru
f30121f5a7 prepare upload 2023-12-03 10:16:28 +01:00
Matthias Klose
907baf024b * Set the cpu defaults for the ARM32 architectures:
- armel: arm9e. Closes: #1056115.
    - armhf: cortex-a7.
2023-12-02 23:27:56 +01:00
Matthias Klose
97633b6d51 * Set the cpu defaults for the ARM32 architectures:
- armel: arm9e. Closes: #1056115.
    - armhf: cortex-a7.
2023-12-02 23:20:35 +01:00
Gianfranco Costamagna
bb32f75327 Fix typo 2023-12-01 23:38:00 +01:00
Matthias Klose
34ed134da1 * Also use the free swap to determine the number of parallel processes. 2023-12-01 19:13:33 +01:00
Matthias Klose
e6bb61d217 * Also use the free swap to determine the number of parallel processes. 2023-12-01 19:11:33 +01:00
Gianfranco Costamagna
83ad62f9cf Update changelog 2023-12-01 10:50:39 +01:00
Gianfranco Costamagna
a483a6798a Try to fix Debian bug #1057151 2023-12-01 10:49:34 +01:00
Gianfranco Costamagna
81ad460681 Add missing dependency for new test 2023-11-30 22:21:20 +01:00
Gianfranco Costamagna
70032f71d7 Add new cmake-clang-test to spot issues such as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057151 2023-11-30 22:04:50 +01:00
Matthias Klose
6297fd36b2 * Restore the patch for D148945, searching /usr/lib/llvm-18/lib by default.
Addresses: #1056580.
2023-11-29 19:02:26 +01:00
Sylvestre Ledru
89439def8c llvmspirv remove the i386 restriction 2023-11-29 14:46:43 +01:00