]> git.proxmox.com Git - llvm-toolchain.git/log
llvm-toolchain.git
3 months agobump version to 1:17.0.6-12~bpo12+pve1 proxmox/bookworm
Fabian Grünbichler [Tue, 28 May 2024 07:09:11 +0000 (09:09 +0200)]
bump version to 1:17.0.6-12~bpo12+pve1

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
3 months agoRevert "Rename for time64_t transition (from Steve Langasek)"
Fabian Grünbichler [Tue, 28 May 2024 07:14:25 +0000 (09:14 +0200)]
Revert "Rename for time64_t transition (from Steve Langasek)"

This reverts commit 4f12df35af689e872158a7648f97cad3dd57fa6d.

3 months agoMerge tag 'debian/1%17.0.6-12' into proxmox/bookworm
Fabian Grünbichler [Tue, 28 May 2024 07:09:01 +0000 (09:09 +0200)]
Merge tag 'debian/1%17.0.6-12' into proxmox/bookworm

llvm-toolchain-17 Debian release 1:17.0.6-12

4 months agoAdd oracular as supported release
Gianfranco Costamagna [Sat, 4 May 2024 05:31:19 +0000 (07:31 +0200)]
Add oracular as supported release

4 months ago fix syntax
Sylvestre Ledru [Sun, 28 Apr 2024 16:18:51 +0000 (18:18 +0200)]
 fix syntax

4 months agoPass LLVM_EXPERIMENTAL_TARGETS_TO_BUILD to stage 1 to (try to) build M68k (Closes...
Sylvestre Ledru [Sun, 28 Apr 2024 16:04:42 +0000 (18:04 +0200)]
Pass LLVM_EXPERIMENTAL_TARGETS_TO_BUILD to stage 1 to (try to) build M68k (Closes: #1067646)

4 months agoprepare upload
Sylvestre Ledru [Sun, 28 Apr 2024 16:00:25 +0000 (18:00 +0200)]
prepare upload

4 months ago remove 16 specific patches
Sylvestre Ledru [Sat, 27 Apr 2024 09:21:12 +0000 (11:21 +0200)]
 remove 16 specific patches

4 months agoMerge remote-tracking branch 'origin/16' into 17
Sylvestre Ledru [Sat, 27 Apr 2024 09:17:50 +0000 (11:17 +0200)]
Merge remote-tracking branch 'origin/16' into 17

4 months agoDisable --as-needed on armel
Sylvestre Ledru [Fri, 26 Apr 2024 23:12:05 +0000 (01:12 +0200)]
Disable --as-needed on armel

4 months agoShow LDFLAGS_EXTRA when building
Sylvestre Ledru [Thu, 25 Apr 2024 06:21:55 +0000 (08:21 +0200)]
Show LDFLAGS_EXTRA when building

4 months agoupload done
Sylvestre Ledru [Wed, 24 Apr 2024 14:26:54 +0000 (16:26 +0200)]
upload done

4 months agoAllow build on machines without too many CPU Thanks to Santiago Vila for the patch...
Sylvestre Ledru [Wed, 24 Apr 2024 10:21:46 +0000 (12:21 +0200)]
Allow build on machines without too many CPU Thanks to Santiago Vila for the patch (Closes: #1067714)

4 months agoprepare upload
Sylvestre Ledru [Wed, 24 Apr 2024 08:26:28 +0000 (10:26 +0200)]
prepare upload

5 months ago * Fix libomp symbols file for t64.
Matthias Klose [Sun, 14 Apr 2024 10:01:49 +0000 (12:01 +0200)]
  * Fix libomp symbols file for t64.

5 months ago * Fix libomp symbols file for t64.
Matthias Klose [Sun, 14 Apr 2024 09:56:56 +0000 (11:56 +0200)]
  * Fix libomp symbols file for t64.

5 months agocheck in missing bits for 1:16.0.6-24
Matthias Klose [Sun, 14 Apr 2024 09:54:02 +0000 (11:54 +0200)]
check in missing bits for 1:16.0.6-24

5 months agoDisable Loongson SIMD Extension (LSX) and Loongson Advanced SIMD Extension (LASX...
Sylvestre Ledru [Mon, 1 Apr 2024 08:33:56 +0000 (10:33 +0200)]
Disable Loongson SIMD Extension (LSX) and Loongson Advanced SIMD Extension (LASX) on 17 (Closes: #1068169)

5 months agoMerge branch '17' into '17'
Sylvestre Ledru [Mon, 1 Apr 2024 08:32:31 +0000 (08:32 +0000)]
Merge branch '17' into '17'

Revert D154931 on loong64

See merge request pkg-llvm-team/llvm-toolchain!135

5 months ago rename the patch for something more explicit
Sylvestre Ledru [Thu, 21 Mar 2024 07:34:32 +0000 (08:34 +0100)]
 rename the patch for something more explicit

6 months agoRevert D154931 on loong64
chenli [Tue, 19 Mar 2024 10:36:23 +0000 (18:36 +0800)]
Revert D154931 on loong64

D154931[1] needs to be reverted on LLVM17. As Loongson SIMD Extension
(LSX) and Loongson Advanced SIMD Extension(LASX) are not fully
supported on LLVM17, InlineAsm for LSX and LASX should not be
supported as well. Otherwise it leads to the following issue[2]:
'''
LLVM ERROR: Cannot select: 0x7ffea41a3650: ch = store<(store (s128) into %ir.mask
store52)> 0x7ffea41a35e0, 0x7ffea4196a30, FrameIndex:i64<6>, undef:i64
'''

LSX and LASX are fully supported on LLVM18 and are not supported on LLVM16,
thus only LLVM17 has the problem.

[1] https://reviews.llvm.org/D154931
[2] https://buildd.debian.org/status/fetch.php?pkg=qtdeclarative-opensource-src&arch=loong64&ver=5.15.10%2Bdfsg-2%2Bb1&stamp=1710571569&raw=0

6 months ago * ASan: move allocator base to avoid conflict with high-entropy ASLR
Matthias Klose [Sat, 16 Mar 2024 21:18:17 +0000 (22:18 +0100)]
  * ASan: move allocator base to avoid conflict with high-entropy ASLR
    for x86-64 Linux. Patch taken from LLVM 17.

6 months ago * Add a stage1 profile to disable curl, grpc and spirv.
Matthias Klose [Sat, 16 Mar 2024 21:16:18 +0000 (22:16 +0100)]
  * Add a stage1 profile to disable curl, grpc and spirv.
  * Build with --as-needed.

6 months agoalso add spriv-tools b-d to stage1
Matthias Klose [Sat, 16 Mar 2024 20:15:53 +0000 (21:15 +0100)]
also add spriv-tools b-d to stage1

6 months ago * Build with --as-needed.
Matthias Klose [Sat, 16 Mar 2024 19:34:07 +0000 (20:34 +0100)]
  * Build with --as-needed.

6 months ago * Add a stage1 profile to disable curl, grpc and spirv.
Matthias Klose [Sat, 16 Mar 2024 19:08:16 +0000 (20:08 +0100)]
  * Add a stage1 profile to disable curl, grpc and spirv.

6 months agoUncomment part of sanitizer patch, from <doko>
Gianfranco Costamagna [Mon, 11 Mar 2024 21:49:01 +0000 (22:49 +0100)]
Uncomment part of sanitizer patch, from <doko>

6 months agoFixup arch:all->arch:any migration
Gianfranco Costamagna [Sun, 10 Mar 2024 06:52:09 +0000 (07:52 +0100)]
Fixup arch:all->arch:any migration

6 months agoUpdate changelog
Gianfranco Costamagna [Sun, 10 Mar 2024 00:45:35 +0000 (01:45 +0100)]
Update changelog

6 months agoUpload to sid
Gianfranco Costamagna [Sun, 10 Mar 2024 00:39:41 +0000 (01:39 +0100)]
Upload to sid

6 months agoDrop extra hack
Gianfranco Costamagna [Fri, 8 Mar 2024 15:50:33 +0000 (16:50 +0100)]
Drop extra hack

6 months ago * Fix sanitizer build on 32bit time_t64 architectures.
Matthias Klose [Thu, 7 Mar 2024 15:57:48 +0000 (16:57 +0100)]
  * Fix sanitizer build on 32bit time_t64 architectures.

6 months agoRevert compiler-rt hacks
Gianfranco Costamagna [Fri, 8 Mar 2024 15:04:40 +0000 (16:04 +0100)]
Revert compiler-rt hacks

6 months agoRevert unwind detection logic changes
Gianfranco Costamagna [Fri, 8 Mar 2024 15:01:18 +0000 (16:01 +0100)]
Revert unwind detection logic changes

6 months agoFix changelog merge
Gianfranco Costamagna [Fri, 8 Mar 2024 14:56:39 +0000 (15:56 +0100)]
Fix changelog merge

6 months agoMerge remote-tracking branch 'origin/17' into 17
Gianfranco Costamagna [Fri, 8 Mar 2024 14:56:20 +0000 (15:56 +0100)]
Merge remote-tracking branch 'origin/17' into 17

6 months agoUpdate changelog
Gianfranco Costamagna [Fri, 8 Mar 2024 14:53:14 +0000 (15:53 +0100)]
Update changelog

6 months agoDrop changelog entries
Gianfranco Costamagna [Fri, 8 Mar 2024 14:52:00 +0000 (15:52 +0100)]
Drop changelog entries

6 months agoDrop compiler-rt hacks
Gianfranco Costamagna [Fri, 8 Mar 2024 14:51:37 +0000 (15:51 +0100)]
Drop compiler-rt hacks

6 months agoDrop hack
Gianfranco Costamagna [Fri, 8 Mar 2024 14:50:31 +0000 (15:50 +0100)]
Drop hack

6 months agoRevert " * Make libclang-common-18-dev architecture dependent, mark profile and...
Gianfranco Costamagna [Fri, 8 Mar 2024 14:49:52 +0000 (15:49 +0100)]
Revert "  * Make libclang-common-18-dev architecture dependent, mark profile and xray"

This reverts commit 0d717ce1236e33842f8ba4988de444060ddefa39.

6 months agofix typo in changelog
Matthias Klose [Fri, 8 Mar 2024 14:49:39 +0000 (15:49 +0100)]
fix typo in changelog

6 months agoRevert: mark profile and xray include files as optional on armel and armhf.
Matthias Klose [Fri, 8 Mar 2024 14:38:14 +0000 (15:38 +0100)]
Revert: mark profile and xray include files as optional on armel and armhf.

6 months ago * Enable compiler-rt runtime again for 32bit time_t64 architectures.
Matthias Klose [Fri, 8 Mar 2024 13:54:29 +0000 (14:54 +0100)]
  * Enable compiler-rt runtime again for 32bit time_t64 architectures.

6 months ago * Fix sanitizer build on 32bit time_t64 architectures.
Matthias Klose [Thu, 7 Mar 2024 15:57:48 +0000 (16:57 +0100)]
  * Fix sanitizer build on 32bit time_t64 architectures.

6 months agoMerge branch '17' into '17'
Gianfranco Costamagna [Thu, 7 Mar 2024 04:56:37 +0000 (04:56 +0000)]
Merge branch '17' into '17'

Disable LIBUNWIND_USE_COMPILER_RT when COMPILER_RT is disabled

See merge request pkg-llvm-team/llvm-toolchain!134

6 months agochangelog: add new entries
liushuyu [Thu, 7 Mar 2024 00:29:35 +0000 (17:29 -0700)]
changelog: add new entries

6 months agoDisable LIBUNWIND_USE_COMPILER_RT when COMPILER_RT is disabled
liushuyu [Thu, 7 Mar 2024 00:24:49 +0000 (17:24 -0700)]
Disable LIBUNWIND_USE_COMPILER_RT when COMPILER_RT is disabled

6 months agoBackport LLVM patch #75089 to fix compiler rt linkage
liushuyu [Wed, 6 Mar 2024 20:25:38 +0000 (13:25 -0700)]
Backport LLVM patch #75089 to fix compiler rt linkage

6 months agoMerge remote-tracking branch 'origin/17' into 17
Gianfranco Costamagna [Wed, 6 Mar 2024 09:30:58 +0000 (10:30 +0100)]
Merge remote-tracking branch 'origin/17' into 17

6 months agomerge changelog entries
Matthias Klose [Wed, 6 Mar 2024 08:21:49 +0000 (09:21 +0100)]
merge changelog entries

6 months ago * Make libclang-common-18-dev architecture dependent, mark profile and xray
Matthias Klose [Wed, 6 Mar 2024 08:20:28 +0000 (09:20 +0100)]
  * Make libclang-common-18-dev architecture dependent, mark profile and xray
    include files as optional on armel and armhf.

6 months agoUpload to sid
Gianfranco Costamagna [Wed, 6 Mar 2024 07:49:19 +0000 (08:49 +0100)]
Upload to sid

6 months agoUpdate changelog
Gianfranco Costamagna [Wed, 6 Mar 2024 07:42:22 +0000 (08:42 +0100)]
Update changelog

6 months agoFrom Zixing Liu:
Gianfranco Costamagna [Wed, 6 Mar 2024 07:39:21 +0000 (08:39 +0100)]
From Zixing Liu:

d/p/fix-unwind-detection-logic.patch: use an upstream patch to fix libunwind detection logic when compiler-rt is disabled.

6 months agoMerge changelogs together
Gianfranco Costamagna [Wed, 6 Mar 2024 06:28:08 +0000 (07:28 +0100)]
Merge changelogs together

6 months agoMerge branch '17' into '17'
Gianfranco Costamagna [Wed, 6 Mar 2024 06:13:26 +0000 (06:13 +0000)]
Merge branch '17' into '17'

Fix unwind detection logic when compiler-rt is disabled

See merge request pkg-llvm-team/llvm-toolchain!133

6 months agoFix unwind detection logic when compiler-rt is disabled
liushuyu [Wed, 6 Mar 2024 04:18:12 +0000 (21:18 -0700)]
Fix unwind detection logic when compiler-rt is disabled

6 months ago * Make libclang-common-17-dev architecture dependent.
Matthias Klose [Tue, 5 Mar 2024 22:43:58 +0000 (23:43 +0100)]
  * Make libclang-common-17-dev architecture dependent.

6 months agoDisable tests on mips64el
Gianfranco Costamagna [Tue, 5 Mar 2024 09:18:06 +0000 (10:18 +0100)]
Disable tests on mips64el

6 months agoDisable tests on mips64el
Gianfranco Costamagna [Tue, 5 Mar 2024 09:18:06 +0000 (10:18 +0100)]
Disable tests on mips64el

6 months agoReupload to sid
Gianfranco Costamagna [Mon, 4 Mar 2024 15:10:31 +0000 (16:10 +0100)]
Reupload to sid

6 months agoFix mxgot export on mips64el
Gianfranco Costamagna [Mon, 4 Mar 2024 08:07:59 +0000 (09:07 +0100)]
Fix mxgot export on mips64el

6 months agoUpdate changelog
Gianfranco Costamagna [Sun, 3 Mar 2024 11:06:25 +0000 (12:06 +0100)]
Update changelog

6 months agoDisable compiler-rt on 32bit architectures except i386
Gianfranco Costamagna [Sun, 3 Mar 2024 10:54:05 +0000 (11:54 +0100)]
Disable compiler-rt on 32bit architectures except i386

6 months agoFrom Steve Langasek, rename packages for time64_t transition
Gianfranco Costamagna [Sun, 3 Mar 2024 11:03:16 +0000 (12:03 +0100)]
From Steve Langasek, rename packages for time64_t transition

6 months agoUpdate changelog
Gianfranco Costamagna [Sun, 3 Mar 2024 10:55:23 +0000 (11:55 +0100)]
Update changelog

6 months agoDisable compiler-rt on 32bit architectures except i386
Gianfranco Costamagna [Sun, 3 Mar 2024 10:54:05 +0000 (11:54 +0100)]
Disable compiler-rt on 32bit architectures except i386

6 months agoRename for time64_t transition (from Steve Langasek)
Gianfranco Costamagna [Sun, 3 Mar 2024 10:48:32 +0000 (11:48 +0100)]
Rename for time64_t transition (from Steve Langasek)

6 months agoUpload to sid
John Paul Adrian Glaubitz [Sat, 24 Feb 2024 07:55:48 +0000 (08:55 +0100)]
Upload to sid

7 months agoremove a useless tab
Sylvestre Ledru [Fri, 9 Feb 2024 11:37:30 +0000 (12:37 +0100)]
remove a useless tab

7 months agos390x sccache: increase cache size to 20G
Sylvestre Ledru [Fri, 9 Feb 2024 11:37:18 +0000 (12:37 +0100)]
s390x sccache: increase cache size to 20G

7 months ago * Remove unused import of imp module in scan-view, removed in Python 3.12.
Matthias Klose [Wed, 7 Feb 2024 22:49:34 +0000 (23:49 +0100)]
  * Remove unused import of imp module in scan-view, removed in Python 3.12.

7 months agoon my s390x machines, increase the cache size to 20g
Sylvestre Ledru [Fri, 26 Jan 2024 09:14:25 +0000 (10:14 +0100)]
on my s390x machines, increase the cache size to 20g

7 months agotry to enable sccache on 'my' s390x machines
Sylvestre Ledru [Wed, 24 Jan 2024 12:30:08 +0000 (13:30 +0100)]
try to enable sccache on 'my' s390x machines

7 months agotry to enable sccache on 'my' s390x machines
Sylvestre Ledru [Wed, 24 Jan 2024 10:51:17 +0000 (11:51 +0100)]
try to enable sccache on 'my' s390x machines

8 months agoupdate of the changelog
Sylvestre Ledru [Mon, 15 Jan 2024 07:56:45 +0000 (08:56 +0100)]
update of the changelog

8 months agouploaded
Sylvestre Ledru [Mon, 15 Jan 2024 07:56:07 +0000 (08:56 +0100)]
uploaded

8 months agoMerge branch '17' into '17'
Sylvestre Ledru [Mon, 15 Jan 2024 07:52:32 +0000 (07:52 +0000)]
Merge branch '17' into '17'

Enable flang on loong64

See merge request pkg-llvm-team/llvm-toolchain!131

8 months agoEnable flang on loong64
chenli [Mon, 15 Jan 2024 06:14:05 +0000 (14:14 +0800)]
Enable flang on loong64

8 months agoMerge branch '17.0.6-4-fallout' into '17'
Sylvestre Ledru [Wed, 10 Jan 2024 08:20:14 +0000 (08:20 +0000)]
Merge branch '17.0.6-4-fallout' into '17'

Fix FTBFSes on i386 and armel resulting from the 1:17.0.6-3 -> 1:17.0.6-4 changes

See merge request pkg-llvm-team/llvm-toolchain!130

8 months agoFix i386 FTBFS resulting from COMPILER_RT_DEFAULT_TARGET_ONLY
Faidon Liambotis [Wed, 10 Jan 2024 07:47:01 +0000 (09:47 +0200)]
Fix i386 FTBFS resulting from COMPILER_RT_DEFAULT_TARGET_ONLY

> dh_install: warning: Cannot find (any matches for) "usr/lib/llvm-17/lib/clang/17/bin/hwasan_symbolize" (tried in ., debian/tmp)

hwasan_symbolize is actually an 64-bit-only feature, and was
accidentally included before. Replace the arch opt-out list, with an
opt-in one and a comment pointing to HWASAN_SUPPORTED_ARCH.

> dh_install: warning: Cannot find (any matches for) "usr/lib/llvm-17/lib/clang/17*/lib/linux/liborc_rt*" (tried in ., debian/tmp)

i386 is not in the ALL_ORC_SUPPORTED_ARCH list. Previously, the package
shipped liborc_rt-x86_64.a, but since we don't ship amd64 multilib
binaries anymore, remove the reference.

Addresses regressions introduced with commit:
  400d89390891a1e95eb15837baca64bf000a352b
  Enable COMPILER_RT_DEFAULT_TARGET_ONLY for all archs

8 months agoRevert "Enable COMPILER_RT_BUILD_BUILTINS for armel"
Faidon Liambotis [Wed, 10 Jan 2024 07:32:21 +0000 (09:32 +0200)]
Revert "Enable COMPILER_RT_BUILD_BUILTINS for armel"

FTBFSes with:

FAILED: CMakeFiles/clang_rt.builtins-arm.dir/arm/sync_fetch_and_add_4.S.o
/<<PKGBUILDDIR>>/build-llvm/./bin/clang -target arm-linux-gnueabi -DVISIBILITY_HIDDEN  -O3 -DNDEBUG -fno-lto -std=c11 -fPIC -fno-builtin -fvisibility=hidden -fomit-frame-pointer -DCOMPILER_RT_HAS_FLOAT16 -MD -MT CMakeFiles/clang_rt.builtins-arm.dir/arm/sync_fetch_and_add_4.S.o -MF CMakeFiles/clang_rt.builtins-arm.dir/arm/sync_fetch_and_add_4.S.o.d -o CMakeFiles/clang_rt.builtins-arm.dir/arm/sync_fetch_and_add_4.S.o -c /<<PKGBUILDDIR>>/compiler-rt/lib/builtins/arm/sync_fetch_and_add_4.S
In file included from /<<PKGBUILDDIR>>/compiler-rt/lib/builtins/arm/sync_fetch_and_add_4.S:14:
/<<PKGBUILDDIR>>/compiler-rt/lib/builtins/arm/sync-ops.h:22:2: error: DMB is only supported on ARMv6+
   22 | #error DMB is only supported on ARMv6+
      |  ^

This was despite an upstream commit labeled "[compiler-rt] support
armv4t". Perhaps something going on with the way we configure? Revert
for the time being, until (if) someone cares.

This reverts commit 1b0abffef7149d26f5c0cb6480bfc7016b1673ee.

8 months agodebian/qualify-clang.sh: remove the test of i386 - use libcompiler-rt:i386 instead
Sylvestre Ledru [Tue, 9 Jan 2024 12:03:28 +0000 (13:03 +0100)]
debian/qualify-clang.sh: remove the test of i386 - use libcompiler-rt:i386 instead

8 months ago fix package name
Sylvestre Ledru [Tue, 9 Jan 2024 10:54:56 +0000 (11:54 +0100)]
 fix package name

8 months ago fix changelog
Sylvestre Ledru [Tue, 9 Jan 2024 10:53:43 +0000 (11:53 +0100)]
 fix changelog

8 months agoprepare upload
Sylvestre Ledru [Tue, 9 Jan 2024 08:45:59 +0000 (09:45 +0100)]
prepare upload

8 months agoCherry pick the wasm fix from 16 (Closes: #1057838)
Sylvestre Ledru [Fri, 15 Dec 2023 17:53:06 +0000 (18:53 +0100)]
Cherry pick the wasm fix from 16 (Closes: #1057838)

8 months agoMerge branch 'common-arch-all' into '17'
Sylvestre Ledru [Tue, 9 Jan 2024 08:29:32 +0000 (08:29 +0000)]
Merge branch 'common-arch-all' into '17'

Convert libclang-common-*-dev to Arch: all/M-A: foreign

See merge request pkg-llvm-team/llvm-toolchain!129

8 months agoMerge branch 'doc-m-a-foreign' into '17'
Sylvestre Ledru [Tue, 9 Jan 2024 08:29:23 +0000 (08:29 +0000)]
Merge branch 'doc-m-a-foreign' into '17'

Mark documentation packages as Multi-Arch: foreign

See merge request pkg-llvm-team/llvm-toolchain!128

8 months agoMerge branch 'clang-rt-armel' into '17'
Sylvestre Ledru [Tue, 9 Jan 2024 08:28:12 +0000 (08:28 +0000)]
Merge branch 'clang-rt-armel' into '17'

Enable COMPILER_RT_BUILD_BUILTINS for armel

See merge request pkg-llvm-team/llvm-toolchain!126

8 months agoMerge branch 'clang-rt-default-only' into '17'
Sylvestre Ledru [Mon, 8 Jan 2024 14:01:59 +0000 (14:01 +0000)]
Merge branch 'clang-rt-default-only' into '17'

Enable COMPILER_RT_DEFAULT_TARGET_ONLY for all archs

See merge request pkg-llvm-team/llvm-toolchain!125

8 months agoMerge branch 'sparc-unreferenced' into '17'
Sylvestre Ledru [Mon, 8 Jan 2024 13:59:21 +0000 (13:59 +0000)]
Merge branch 'sparc-unreferenced' into '17'

Drop two unreferenced debian/patches

See merge request pkg-llvm-team/llvm-toolchain!127

8 months agoMerge branch 'cxxdev-abi' into '17'
Sylvestre Ledru [Mon, 8 Jan 2024 13:58:30 +0000 (13:58 +0000)]
Merge branch 'cxxdev-abi' into '17'

Add libc++-*-dev -> libc++abi-*-dev dependency

See merge request pkg-llvm-team/llvm-toolchain!124

8 months agoConvert libclang-common-*-dev to Arch: all/M-A: foreign
Faidon Liambotis [Fri, 5 Jan 2024 16:05:11 +0000 (18:05 +0200)]
Convert libclang-common-*-dev to Arch: all/M-A: foreign

libclang-common-*-dev is an Architecture: any package, possibly due to
the fact that it contained compiler-rt before it was split off to a
separate package. It is not marked as Multi-Arch: same, despite the
hinter suggesting to do so, presumably due to identical files.

Convert it to Architecture: all / Multi-Arch: foreign instead. This
requires the removal of the arch: any dependency libllvm17, which is
spurious anyway. However, for extra safety, add version specifiers to
other packages that do depend on (an unversioned) libllvm17, such as
clang.

8 months agoMark documentation packages as Multi-Arch: foreign
Faidon Liambotis [Fri, 5 Jan 2024 15:54:20 +0000 (17:54 +0200)]
Mark documentation packages as Multi-Arch: foreign

..and convert clang-*-examples from Architecture: any -> all.

Identified by the multiarch hinter:
  * clang-17-examples could be converted to Architecture: all and marked Multi-Arch: foreign
  * clang-17-doc could be marked Multi-Arch: foreign
  * libomp-17-doc could be marked Multi-Arch: foreign
  * llvm-17-doc could be marked Multi-Arch: foreign

8 months agoDrop two unreferenced debian/patches
Faidon Liambotis [Sat, 6 Jan 2024 06:59:02 +0000 (08:59 +0200)]
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.

8 months agoEnable COMPILER_RT_BUILD_BUILTINS for armel
Faidon Liambotis [Fri, 5 Jan 2024 15:41:12 +0000 (17:41 +0200)]
Enable COMPILER_RT_BUILD_BUILTINS for armel

According to upstream commit aadec60ad9b81f00cf6fcdcbff61f1144d206769,
starting with LLVM 17, armv4t is now supported.

(untested)

8 months agoEnable COMPILER_RT_DEFAULT_TARGET_ONLY for all archs
Faidon Liambotis [Fri, 5 Jan 2024 15:30:57 +0000 (17:30 +0200)]
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.

8 months agoAdd libc++-*-dev -> libc++abi-*-dev dependency
Faidon Liambotis [Fri, 5 Jan 2024 15:48:32 +0000 (17:48 +0200)]
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.