Commit Graph

1780 Commits

Author SHA1 Message Date
Matthias Klose
6dee861892 * Add a stage1 profile to disable curl, grpc and spirv. 2024-03-16 20:05:42 +01:00
Sylvestre Ledru
c83baea057 fix the minor declaration when building snapshot 2024-03-03 10:08:00 +01:00
Sylvestre Ledru
97865d4bcd Merge remote-tracking branch 'origin/18' into snapshot 2024-03-02 19:12:52 +01:00
Sylvestre Ledru
4d71803afd fix the activation of libc 2024-03-02 18:43:44 +01:00
Sylvestre Ledru
6d196f744d only enable libc on 3 archs 2024-03-02 18:43:09 +01:00
Sylvestre Ledru
4db9f7c593 Add a new package libllvmlibc-18-dev to ship LLVM libc (experimental for now) 2024-03-02 18:41:05 +01:00
Sylvestre Ledru
7afcc29103 Ship libc++-18-dev /usr/lib/llvm-18/lib/libc++.modules.json /usr/lib/llvm-18/include/c++/v1/std.compat.cppm
/usr/lib/llvm-18/include/c++/v1/std.cppm
2024-03-02 18:40:11 +01:00
Sylvestre Ledru
fb514a6547 add -DLIBCXX_INSTALL_MODULES=ON see https://discourse.llvm.org/t/libc-c-23-module-installation-support/77061/1 2024-03-02 18:39:40 +01:00
Gianfranco Costamagna
26c93c9ff7 Add code to hack time64 in 32bit builds, and try to disable stack protector on mips64el 2024-03-02 18:39:04 +01:00
Gianfranco Costamagna
bb17074e3c Revert: Try gold linker on mips64el 2024-03-02 18:37:06 +01:00
Sylvestre Ledru
c5dd54428d fix the version detection 2024-03-02 17:19:43 +01:00
Sylvestre Ledru
3271139eeb adjust the version minor 2024-03-01 21:58:11 +01:00
Sylvestre Ledru
67cd1db5ec fix the activation of libc 2024-03-01 16:09:06 +01:00
Sylvestre Ledru
ba5358deed Disable the install of libomp in sub arch Following 1977404d20ab29ff78a58d8c0f1f4c5e7aef6b16 2024-03-01 13:58:07 +01:00
Sylvestre Ledru
b42ff9916e only enable libc on 3 archs 2024-02-27 14:06:38 +01:00
Gianfranco Costamagna
61c73fcbe8 Merge remote-tracking branch 'origin/18' into 18 2024-02-22 14:23:43 +01:00
Gianfranco Costamagna
1a18aa1aa6 Add code to hack time64 in 32bit builds, and try to disable stack protector on mips64el 2024-02-22 14:10:45 +01:00
Gianfranco Costamagna
a656221b33 Revert: Try gold linker on mips64el 2024-02-22 09:20:50 +01:00
Sylvestre Ledru
8ab71b62cf Add a new package libllvmlibc-18-dev to ship LLVM libc (experimental for now) 2024-02-20 22:43:10 +01:00
Sylvestre Ledru
9cd963c144 Ship libc++-18-dev /usr/lib/llvm-18/lib/libc++.modules.json /usr/lib/llvm-18/include/c++/v1/std.compat.cppm
/usr/lib/llvm-18/include/c++/v1/std.cppm
2024-02-20 22:15:26 +01:00
Sylvestre Ledru
4df76dc5b4 add -DLIBCXX_INSTALL_MODULES=ON see https://discourse.llvm.org/t/libc-c-23-module-installation-support/77061/1 2024-02-18 22:34:33 +01:00
John Paul Adrian Glaubitz
88f4607443 Run chrpath for libclang on sparc and sparc64 2024-02-16 09:55:59 +01:00
Sylvestre Ledru
2a5c838b13 show DEB_BUILD_MAINT_OPTIONS too 2024-02-11 14:44:43 +01:00
Sylvestre Ledru
74834881c5 Add abi=+time64,+lfs only on 64bits system 2024-02-11 14:29:38 +01:00
Sylvestre Ledru
1bce57bd9d remove a useless tab 2024-02-09 12:38:41 +01:00
Sylvestre Ledru
ef3fcf56a1 s390x sccache: increase cache size to 20G 2024-02-09 12:38:36 +01:00
Gianfranco Costamagna
d49a6f36a7 Try gold linker on mips64el 2024-02-08 19:11:26 +01:00
Gianfranco Costamagna
677b521d81 Also add lfs to fix 32bit build failures 2024-02-08 16:38:25 +01:00
Gianfranco Costamagna
a9eb2f4051 Fix time64 regex in the right place 2024-02-07 15:04:05 +01:00
Gianfranco Costamagna
c00516863f Update changelog and comment the change in rules file 2024-02-05 08:29:58 +01:00
Gianfranco Costamagna
aa3c31fb57 Use ABI time64 to avoid a transition for a new package 2024-02-05 07:59:33 +01:00
Sylvestre Ledru
1e35ae451d fix merge 2024-01-24 14:01:13 +01:00
Sylvestre Ledru
f2597caf79 Merge remote-tracking branch 'origin/17' into 18 2024-01-24 14:00:36 +01:00
Sylvestre Ledru
9827291d40 try to enable sccache on 'my' s390x machines 2024-01-24 11:51:17 +01:00
Sylvestre Ledru
49ab7c1cb2 Also pass -DLIBCXXABI_USE_LLVM_UNWINDER:BOOL=OFF to libcxx-wasm32-wasi builds 2024-01-19 14:58:47 +01:00
Sylvestre Ledru
028803b995 remove the unconditionnaly defined -DLIBUNWIND_USE_COMPILER_RT=ON 2024-01-19 09:34:07 +01:00
Sylvestre Ledru
d5816efd66 For the usage of -DLIBCXXABI_USE_LLVM_UNWINDER=OFF when we don't build unwind https://github.com/llvm/llvm-project/issues/77846 2024-01-12 18:33:44 +01:00
Sylvestre Ledru
fcf132b2c9 disable sccache when building with coverity 2024-01-12 10:36:24 +01:00
Sylvestre Ledru
e976326360 change the order of coverity/sccache 2024-01-12 10:29:47 +01:00
Faidon Liambotis
bdfce0866c 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 1b0abffef7.
2024-01-10 09:32:21 +02:00
Sylvestre Ledru
e61452acd6 Merge branch 'clang-rt-armel' into '17'
Enable COMPILER_RT_BUILD_BUILTINS for armel

See merge request pkg-llvm-team/llvm-toolchain!126
2024-01-09 08:28:12 +00: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
Sylvestre Ledru
845e43e80f Merge remote-tracking branch 'origin/17' into snapshot 2023-12-11 10:26: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
92c2f79260 Drop sed command, useless now 2023-12-08 09:48:50 +01:00
Sylvestre Ledru
295214f8d0 cherry pick the change from 17 about the cmake 2023-12-06 17:08:31 +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
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