Commit Graph

4955 Commits

Author SHA1 Message Date
Sylvestre Ledru
3a8266fb1b Update of the build dep llvm-spirv => llvm-spirv-14 2022-10-16 23:33:46 +02:00
Sylvestre Ledru
154774bb4b fix syntax 2022-10-16 23:12:06 +02:00
Sylvestre Ledru
ba52c79745 improve the log debug 2022-10-16 23:05:52 +02:00
Sylvestre Ledru
9d0cc091ec sccache create the log if needed 2022-10-16 22:48:31 +02:00
Sylvestre Ledru
268544a5aa sccache: update of the path 2022-10-16 20:18:19 +02:00
Sylvestre Ledru
d4613f2d91 update of the sccache path 2022-10-16 17:36:14 +02:00
Sylvestre Ledru
745291f0b9 only do it for bullseye 2022-10-16 16:15:50 +02:00
Sylvestre Ledru
0e6b7142cf cat sccache in case of error 2022-10-16 11:08:18 +02:00
Sylvestre Ledru
8ce637ac33 remove wa 2022-10-16 11:00:18 +02:00
Sylvestre Ledru
0b12f4f2ac fix the declaration 2022-10-16 10:49:04 +02:00
Sylvestre Ledru
3679d9c59c sccache: create an empty config file to avoid flooding the log with this 2022-10-16 01:55:23 +02:00
Sylvestre Ledru
b157b0181f more debug info 2022-10-15 23:32:55 +02:00
Sylvestre Ledru
24275bf8d9 if we used sccache, show the stats 2022-10-15 11:37:42 +02:00
Sylvestre Ledru
d33bd3b8aa set SCCACHE_GCS_RW_MODE to READ_WRITE 2022-10-15 10:43:51 +02:00
Sylvestre Ledru
3bef73c9ad provide SCCACHE_GCS_BUCKET 2022-10-15 10:30:28 +02:00
Sylvestre Ledru
3e61b0ec16 expect sccahe in /tmp/ 2022-10-15 10:05:20 +02:00
Sylvestre Ledru
2eee7fef59 try to use sccache if available 2022-10-14 23:37:42 +02:00
Sylvestre Ledru
a62bbeb425 remove artifact 2022-10-10 14:55:48 +02:00
Sylvestre Ledru
6d0f0bba36 fix a test when running from a symlinked dir 2022-10-10 13:49:21 +02:00
Sylvestre Ledru
ca9dbba24d Don't build wasm target on arm64 armel mips64el mipsel ppc64el armhf for now 2022-10-10 13:47:36 +02:00
Sylvestre Ledru
18f70bf18e fix the cmake detection with libmlir 2022-10-09 20:34:54 +02:00
Sylvestre Ledru
8681b0ebb1 improve the wasm check 2022-10-07 20:20:31 +02:00
Sylvestre Ledru
6c7377e299 remove unused stuff for mlir/cmake 2022-10-07 20:20:12 +02:00
Sylvestre Ledru
7e49b81826 suggest wasi-libc for the compiler 2022-10-07 19:37:15 +02:00
Sylvestre Ledru
ddab807aab Allow libunwind-dev to be coinstallable (Closes: #1004112) 2022-10-07 19:36:46 +02:00
Sylvestre Ledru
1c709f18fd add missing header? 2022-10-07 17:09:28 +02:00
Sylvestre Ledru
2d7818bea0 Fix conflict 2022-10-07 16:20:03 +02:00
Sylvestre Ledru
dc10170928 Fix some hardcoded paths (Closes: #1020847) 2022-10-07 16:18:46 +02:00
Sylvestre Ledru
cd3fb411f7 fix a typo 2022-10-07 16:13:56 +02:00
Sylvestre Ledru
1acd3cdd41 remove old patch 2022-10-07 16:11:21 +02:00
Sylvestre Ledru
14a1616e71 prepare upload 2022-10-07 16:10:23 +02:00
Sylvestre Ledru
990e0ee145 move compiler-rt patches 2022-10-07 16:10:13 +02:00
Sylvestre Ledru
e84ec84c01 move libcxx patches 2022-10-07 16:08:44 +02:00
Sylvestre Ledru
2084cb707a rebase + move wasm patches 2022-10-07 16:07:22 +02:00
Sylvestre Ledru
86285b0da4 add a check for Faidon's change 2022-10-07 16:02:10 +02:00
Sylvestre Ledru
f6300a1af1 Document Faidon's patches 2022-10-07 15:57:57 +02:00
Sylvestre Ledru
26d4b8da05 Fix more typo 2022-10-07 15:57:43 +02:00
Faidon Liambotis
649278148f Add support for loading wasi-libc from /usr
The WebAssembly target seems to have been designed to be always passed a
--sysroot, likely because of being tested to work only with the
WASI-SDK. This results into passing bare, non-existing paths in include
paths, such as:
   -internal-isystem /include/wasm32-wasi -internal-isystem /include
(and similar for /lib/).

In Debian, the wasi-libc package ships its files in
/usr/include/wasm32-wasi, /usr/lib/wasm32-wasi etc.

Add support in the target for including paths from /usr as well. To
avoid changing the code in more intrusive ways (to do e.g. what the
Linux target does) add a bit of an indirection where the "sysroot"
defaults to "/usr" instead of the empty string. This should probably be
adjusted a bit if it were to be upstreamed.

Closes: #1020746
2022-10-07 15:52:28 +02:00
Faidon Liambotis
076705fe8e Default to compiler-rt for WebAssembly (wasm32/64)
Our packaging overrides the upstream choice for rtlib to default always
to libgcc. Unfortunately, libgcc is not available for WebAssembly
(wasm32/wasm64 targets). This makes every build to -target
wasm32-unknown-wasi fail, unless one passes --rtlib=compiler-rt.

Patch the upstream source to default, and only accept, compiler-rt for
the WebAssembly target to make everything work out of the box. This
mirrors similar code that the upstream Darwin and Fuchsia targets have.

GCC seems fairly far from supporting WebAssembly. If/when that day
comes, this patch can be dropped.
2022-10-07 15:52:15 +02:00
Faidon Liambotis
50a54f4edc Build compiler-rt for wasm32 and wasm64
Current shortcomings/future work:

 * Unfortunately this currently takes the form of a separate, standalone
   build (with the just-built stage2 toolchain), which makes this a
   little more convoluted. The upstream compiler-rt build system does
   not have a way (that I could find) to manually add additional targets
   to the build.

 * GNU strip (binutils) does not understand the WebAssembly binary, so
   dh_strip fails. llvm-strip does, but a) does not understand all the
   arguments that dh_strip passes (e.g. -N), b) fails with "invalid
   relocation offset" on --strip-debug (but works with --strip-all).

   This currently passes -X to dh_strip to exclude them from being
   stripped entirely. Invoking llvm-strip manually with --strip-all can
   be considered in the future.

* The wasm32/wasm64 binaries are, by design, architecture-independent.
  With this commit, they are being built in every architecture, and
  shipped in the libclang-common-X.Y-dev package, which is arch: any,
  but ships both architecture-dependent (native/host compiler-rt) and
  architecture-independent files (include headers etc.).

  In a future iteration, the wasm32/wasm64 compiler-rt library could be
  factored out to a separate (arch: all) package. This is left
  outstanding because it should probably happen alongside a different
  split for libclang-common-X.Y-dev that will include splitting the
  native libclang-rt as well.

Closes: #1010932
2022-10-07 15:51:42 +02:00
Faidon Liambotis
6ba6091ca0 Fix NJOBS when DEB_BUILD_OPTIONS is not present
NJOBS is supposed to have the -j argument (as in the DEB_BUILD_OPTIONS
case)
2022-10-07 15:51:33 +02:00
Sylvestre Ledru
25af6d2de8 Fix a typo to silent lintian (Closes: #1018770) 2022-08-30 16:10:59 +02:00
Sylvestre Ledru
745b679791 Merge remote-tracking branch 'origin/13' into 14 2022-07-23 23:02:50 +02:00
Sylvestre Ledru
85cc421c20 Improve the changelog 2022-07-22 15:10:33 +02:00
Sylvestre Ledru
42569b7106 Merge branch 'links' into '13'
Add symlink from /usr/include/c++/v1 -> /usr/lib/llvm-N/include/c++/v1

See merge request pkg-llvm-team/llvm-toolchain!95
2022-07-22 13:08:42 +00:00
Sam McCall
75942c53c7 Add symlink from /usr/include/c++/v1 -> /usr/lib/llvm-N/include/c++/v1 2022-07-22 13:08:40 +00:00
Sylvestre Ledru
0afa93c242 * New upstream release
* Remove cv-insn-support.patch (applied upstream)
2022-06-25 09:56:48 +02:00
Sylvestre Ledru
a83ccec780 * New upstream release
* Only install grpc files libclang-X.Y-dev when grpc built
* autopkgtest: Restrict debian/qualify-clang.sh on
  amd64 arm64 i386
2022-06-25 09:48:16 +02:00
Sylvestre Ledru
2114e1f315 do not apply debian/patches//risc/riscv-insn-support.patch anymore as it doesn't apply on 14 2022-06-09 23:42:35 +02:00
Sylvestre Ledru
53b4c9a9e3 document the change systemd-binfmt 2022-06-06 13:44:19 +02:00