Commit Graph

1297 Commits

Author SHA1 Message Date
Sylvestre Ledru
6c7377e299 remove unused stuff for mlir/cmake 2022-10-07 20:20:12 +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
006b642aad Merge remote-tracking branch 'origin/13' into 14 2022-06-06 13:41:46 +02:00
Sylvestre Ledru
b6ea556012 Fix copy/paste 2022-06-03 13:11:41 +02:00
Sylvestre Ledru
922aee77b8 Only install grpc files libclang-X.Y-dev when grpc built 2022-06-03 10:54:53 +02:00
John Paul Adrian Glaubitz
e69ad9421a Disable compiler-rt built-ins on x32 2022-06-01 07:37:38 +02:00
John Paul Adrian Glaubitz
a142ae4302 Disable compiler-rt built-ins on x32 2022-06-01 07:35:53 +02:00
Gianfranco Costamagna
4afa87abac rules: take some patches from Ubuntu to save extra space during build 2022-05-30 22:18:15 +02:00
Gianfranco Costamagna
b8e0a22e40 Fix GRPC installation for ports architectures 2022-05-30 22:17:37 +02:00
Gianfranco Costamagna
b6ca1c63fe Fix cosmetic typo in rules file 2022-05-30 21:50:57 +02:00
John Paul Adrian Glaubitz
247b8fa3f1 Exclude lib{Monitoring,RemoteIndex}*Proto.a on m68k and sparc64 2022-05-17 09:57:22 +02:00
Sylvestre Ledru
06906f3a85 fix the curl call in cmake 2022-05-13 18:44:33 +02:00
Sylvestre Ledru
c0119c7f46 Add the option -DLLVM_ENABLE_CURL=ON See https://github.com/llvm/llvm-project/issues/55289 2022-05-10 09:03:32 +02:00
Sylvestre Ledru
99fd399a04 New upstream release Fixes the ABI issues 2022-04-27 08:35:48 +02:00
Sylvestre Ledru
703626fba6 don't apply the patch for 14 on apt.llvm.org 2022-03-31 18:08:49 +02:00
Sylvestre Ledru
4dbb8ad2aa Add an ugly workaround for Ubuntu jammy (some python files are installed in local/lib) 2022-03-11 18:28:22 +01:00
Sylvestre Ledru
caaf053d78 Also path LD_LIBRARY_PATH for install
Fails with cmake binary backport like on bionic s390x

[0/4] cd "/build/llvm-toolchain-snapshot-15~++20220214091440+07153f7e072d/build-llvm/runtimes/runtimes-bins" && /tmp/cmake/bin/cmake --build .
/tmp/cmake/bin/cmake: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
2022-02-14 21:20:22 +01:00
Sylvestre Ledru
eb7f01a636 Merge remote-tracking branch 'origin/13' into 14 2022-02-13 14:16:36 +01:00
Sylvestre Ledru
fc598bed7c Also install usr/lib/llvm-@LLVM_VERSION@/lib/libRemoteIndexProto.a usr/lib/llvm-@LLVM_VERSION@/lib/libRemoteIndexServiceProto.a usr/lib/llvm-@LLVM_VERSION@/lib/libMonitoringServiceProto.a in libclang-X.Y-dev (Closes: #1005666) 2022-02-13 14:08:28 +01:00
Sylvestre Ledru
fcf733ecfc Merge remote-tracking branch 'origin/12' into 13 2022-02-13 14:06:12 +01:00
Sylvestre Ledru
5599d44854 Also install usr/lib/llvm-@LLVM_VERSION@/lib/libRemoteIndexProto.a usr/lib/llvm-@LLVM_VERSION@/lib/libRemoteIndexServiceProto.a in libclang-X.Y-dev 2022-02-13 14:05:06 +01:00
Sylvestre Ledru
f02f02a0e9 Merge remote-tracking branch 'origin/13' into 14 2022-02-05 14:28:36 +01:00
Sylvestre Ledru
0819620085 remove one of the clangd lib 2022-02-05 12:46:35 +01:00
Sylvestre Ledru
18e75ffc90 * Build clangd with GRPC support
Thanks to Sam McCall for the patch
* Unbreak llvm-toolchain-12 on buster.
  -fuse-ld=gold wasn't passed to compiler-rt. it was using bfd.
  And binutils shipping in buster has a bug preventing this to work:
  https://github.com/llvm/llvm-project/issues/42339
* Rename ocaml-nox => ocaml-base (Closes: #1002608)
* Remove Build-Conflicts: ocaml
* Rebuild to workaround the coinstallability issue (Closes: #996858)
2022-02-05 11:11:11 +01:00
Sylvestre Ledru
b990b953f0 mlir: use the cmake option to avoid installing object files MLIR_INSTALL_AGGREGATE_OBJECTS Closes upstream #53134 2022-02-05 11:08:21 +01:00
Sylvestre Ledru
2d3a64db79 stretch: disable the lldb python binding for real 2022-02-02 21:29:54 +01:00
Sylvestre Ledru
87ee3c332f remove unused clangd lib 2022-01-29 14:47:09 +01:00
Sam McCall
227598dbc7 Build clangd remote index (grpc & protobuf dependency) 2022-01-29 10:16:10 +01:00
Sylvestre Ledru
f1e99fac32 Revert "stretch: try to set the ld_library_path"
This reverts commit 0322ecc9db.
2022-01-25 00:43:11 +01:00
Sylvestre Ledru
0322ecc9db stretch: try to set the ld_library_path 2022-01-25 00:33:13 +01:00
Sylvestre Ledru
34fe63ca7e stretch: try to set the ld_library_path 2022-01-25 00:21:47 +01:00
Sylvestre Ledru
d408831791 remove workaround 2022-01-24 19:43:17 +01:00
Sylvestre Ledru
0b46f82e7c stretch: simplify and move the check 2022-01-24 19:09:53 +01:00
Sylvestre Ledru
fe8da3d0d9 stretch: disable the lldb python binding 2022-01-24 18:54:02 +01:00
Sylvestre Ledru
436ebce633 add some workaround for stretch 2022-01-23 22:52:21 +01:00
Sylvestre Ledru
7dc5798d56 Merge remote-tracking branch 'origin/13' into snapshot 2022-01-21 18:28:49 +01:00
Sylvestre Ledru
4c62eb73b6 Enable CLANG_DEFAULT_PIE_ON_LINUX 2022-01-19 23:47:55 +01:00
Samuel Thibault
3d0e431f14 Explicitly link against -latomic on all ports, not only the Linux ones
(cherry picked from commit 43d03058ff)
2022-01-18 21:32:47 +01:00
Samuel Thibault
38be44b0dc Fix armel build
On armel, DEB_HOST_ARCH_CPU is the generic arm actually, so we need to
use DEB_HOST_ARCH to precisely filter archs.

Fixes 43d03058ff
2022-01-14 10:18:12 +01:00
Sylvestre Ledru
3ff1ff385d Merge branch '13' into 'hurd-rt-no64'
# Conflicts:
#   debian/changelog
2022-01-13 20:15:46 +00:00
Pino Toscano
b02fa8358f Stop hardcoding -DCMAKE_SYSTEM_NAME=Linux as cmake parameter
as it breaks stage2 builds on non-Linux architectures.
2022-01-12 23:27:48 +01:00
Pino Toscano
653f1a56ea debian/rules: Disable 64bit runtime build on hurd-i38 2022-01-12 23:22:46 +01:00
Sylvestre Ledru
eda4bcc85d fix the patch 2022-01-12 22:09:12 +01:00
Sylvestre Ledru
d7a17e8cae fix the scan-build patch 2022-01-12 22:00:17 +01:00
Sylvestre Ledru
fd0d9b3934 improve the patch mgmt 2022-01-12 14:56:34 +01:00
Sylvestre Ledru
c06e88525b Ugly workaround to enable scan-build on runtimes debian/patches/use-scan-build-runtimes.diff 2022-01-12 13:46:36 +01:00
Sylvestre Ledru
08507c8e72 Merge branch 'fix-which-for-13' into '13'
Use 'command -v' instead of deprecated 'which'

See merge request pkg-llvm-team/llvm-toolchain!76
2022-01-12 09:08:00 +00:00
Samuel Thibault
43d03058ff Explicitly link against -latomic on all ports, not only the Linux ones 2022-01-11 23:58:40 +01:00
Sylvestre Ledru
e1e7bfa8a1 remove the typo -DLVVM_ENABLE_ZLIB=OFF as it seems that it working with the default value 2022-01-11 23:46:31 +01:00