Commit Graph

4276 Commits

Author SHA1 Message Date
Sylvestre Ledru
1ea2400bf7 unwind should use compiler-rt 2021-08-31 20:29:56 +02:00
Sylvestre Ledru
4431d4bc18 try back the old behavior 2021-08-31 20:29:56 +02:00
Sylvestre Ledru
2903f4fa18 try to used runtimes and others refactors 2021-08-31 20:29:51 +02:00
John Paul Adrian Glaubitz
bd20ed6880 Disable libunwind-X.Y{-dev} packages on sparc and sparc64 2021-08-29 21:31:01 +02:00
Sylvestre Ledru
296a093d1f Add debian/source/options to ignore the diff (much much faster to repack) 2021-08-29 17:36:19 +02:00
Sylvestre Ledru
5679c920dd check if clang-tidy is installed 2021-08-29 15:59:35 +02:00
Sylvestre Ledru
135e393ff7 Add LIBCXXABI_ENABLE_STATIC_UNWINDER=ON LIBCXXABI_STATICALLY_LINK_UNWINDER_IN_SHARED_LIBRARY=OFF LIBCXXABI_STATICALLY_LINK_UNWINDER_IN_STATIC_LIBRARY=ON to libc++ when libunwind is built Matches what is done on brew: https://bit.ly/3kDNpC9 2021-08-29 15:59:33 +02:00
Sylvestre Ledru
0001ff9f31 cmake: use ON instead of YES for consistency 2021-08-29 15:59:04 +02:00
Sylvestre Ledru
4e968591a0 add tests (failing for now) 2021-08-29 15:12:38 +02:00
Sylvestre Ledru
4b43235a8e Merge remote-tracking branch 'origin/12' into 13 2021-08-28 09:46:51 +02:00
Sylvestre Ledru
5821a6165d Extends the lintian override as it is causing other issues:
lintian.llvm-toolchain-snapshot source.invalid-arch-string-in-source-relation riscv64 [build-depends: ocaml-nox [amd64 arm64 armhf ppc64el riscv64 s390x]]
    lintian.llvm-toolchain-snapshot source.invalid-arch-string-in-source-relation riscv64 [build-depends: ocaml-findlib [amd64 arm64 armhf ppc64el riscv64 s390x]]
    lintian.llvm-toolchain-snapshot source.invalid-arch-string-in-source-relation riscv64 [build-depends: libctypes-ocaml-dev [amd64 arm64 armhf ppc64el riscv64 s390x]]
    lintian.llvm-toolchain-snapshot source.invalid-arch-string-in-source-relation riscv64 [build-depends: dh-ocaml [amd64 arm64 armhf ppc64el riscv64 s390x]]
2021-08-28 09:46:22 +02:00
Sylvestre Ledru
993f1c537d adjust the output 2021-08-27 19:13:15 +02:00
Sylvestre Ledru
34882aee5f add back the tests removed by the merge 2021-08-27 19:13:06 +02:00
Sylvestre Ledru
a31148c013 adjust the test for 13 rc2 2021-08-27 11:53:23 +02:00
Sylvestre Ledru
1e52a03a1b New testing release 2021-08-27 11:44:55 +02:00
Gianfranco Costamagna
6f858259b4 Merge branch '12' into 13 2021-08-27 11:41:13 +02:00
Gianfranco Costamagna
998cabd4e7 Update changelog, add an omp-riscv64 patch not yet upstreamed to help omp build successfully there 2021-08-27 11:21:58 +02:00
Sylvestre Ledru
a147342020 add a test help identify regression like 51642 2021-08-27 10:52:47 +02:00
Sylvestre Ledru
f141f0b16c Remove an old test - was already added back the line above 2021-08-27 10:52:47 +02:00
Sylvestre Ledru
1ee4395092 First attempt to fix riscv64 build, by fixing build deps and correctly enabling ocaml/lld and other features.
Tweak build installability on i386 to help Ubuntu backports and impish
2021-08-27 09:42:40 +02:00
Sylvestre Ledru
fed55e81ec also sed debian/tests/integration-test-suite-test file on new release 2021-08-27 09:42:17 +02:00
Sylvestre Ledru
5c792d38d7 update of the dates 2021-08-27 09:41:49 +02:00
Sylvestre Ledru
957a67f6e8 prepare new release 2021-08-27 09:41:43 +02:00
Sylvestre Ledru
7a5f476569 debian: Include SPIR-V (*.spv) outputs in libclc package
This adds the following to the libclc-12 package:

/usr/lib/clc/spirv64-mesa3d-.spv
/usr/lib/clc/spirv-mesa3d-.spv

Since Debian buster & Ubuntu 18.04 don't have the llvm-spirv package,
they cannot support this feature. Therefore, as suggested by tjaalton,
we make the control Build-Depends for spirv dependencies include
"| hello".

This causes the simple "hello world" package to be installed on these
older distros, which is small and unrelated to llvm. Then, in
debian/rules, we check to see if llvm-spirv is installed.

Note that sbuild must use `--resolve-alternatives` for these older
distributions, or sbuild won't search for the "hello" alternatives in
the Build-Depends.

Signed-off-by: Jordan Justen <jljusten@debian.org>
2021-08-27 09:41:17 +02:00
Gianfranco Costamagna
635dc30b14 First attempt to fix riscv64 build, by fixing build deps and correctly enabling ocaml/lld and other features.
Tweak build installability on i386 to help Ubuntu backports and impish
2021-08-27 08:45:23 +02:00
Gianfranco Costamagna
44329f6edd also sed debian/tests/integration-test-suite-test file on new release 2021-08-27 08:44:49 +02:00
Sylvestre Ledru
39fe1d611c rebase of the patch 2021-08-26 20:55:34 +02:00
Gianfranco Costamagna
7c84a6515c Update changelog 2021-08-26 16:05:25 +02:00
Gianfranco Costamagna
c40c04a386 integration-test-suite-test: fix build by using 13 as default version 2021-08-26 16:04:51 +02:00
Sylvestre Ledru
1d8600f74e update of the dates 2021-08-25 10:18:33 +02:00
John Paul Adrian Glaubitz
d45e0ae821 Disable libunwind on sparc64 2021-08-24 20:12:01 +02:00
John Paul Adrian Glaubitz
def26fecca Disable libunwind on m68k and x32 2021-08-24 16:55:02 +02:00
Sylvestre Ledru
6f80fe4041 prepare upload of 13 2021-08-21 16:13:29 +02:00
Sylvestre Ledru
43a60217f8 improve uninstall 2021-08-21 15:51:43 +02:00
Sylvestre Ledru
4af5b56aef clang-soname-extract-version.diff: improve the upstream declaration 2021-08-21 14:04:13 +02:00
Sylvestre Ledru
c99fd9dcf3 fix script 2021-08-21 12:52:10 +02:00
Sylvestre Ledru
b89d956064 try to fix again the libclang symlink 2021-08-21 12:51:07 +02:00
Sylvestre Ledru
5f311f8c87 fix the clang symlink 2021-08-19 18:35:36 +02:00
Sylvestre Ledru
754b1312d2 add the upstream hash 2021-08-19 18:35:27 +02:00
Jordan Justen
ff5ad94c9d
debian: Include SPIR-V (*.spv) outputs in libclc package
This adds the following to the libclc-12 package:

/usr/lib/clc/spirv64-mesa3d-.spv
/usr/lib/clc/spirv-mesa3d-.spv

Since Debian buster & Ubuntu 18.04 don't have the llvm-spirv package,
they cannot support this feature. Therefore, as suggested by tjaalton,
we make the control Build-Depends for spirv dependencies include
"| hello".

This causes the simple "hello world" package to be installed on these
older distros, which is small and unrelated to llvm. Then, in
debian/rules, we check to see if llvm-spirv is installed.

Note that sbuild must use `--resolve-alternatives` for these older
distributions, or sbuild won't search for the "hello" alternatives in
the Build-Depends.

Signed-off-by: Jordan Justen <jljusten@debian.org>
2021-08-19 00:33:09 -07:00
Sylvestre Ledru
a5c59c995f Merge remote-tracking branch 'origin/12' into 13 2021-08-18 13:23:10 +02:00
Sylvestre Ledru
c5b9334be2 Revert "libclc: Include libclc spir-v outputs (used by Mesa opencl)"
This reverts commit f572d3695e.
2021-08-18 12:47:45 +02:00
Sylvestre Ledru
9c412a5e95 uploaded 2021-08-17 13:48:40 +02:00
Sylvestre Ledru
1b732c2af9 Merge remote-tracking branch 'origin/12' into 13 2021-08-17 13:45:49 +02:00
Sylvestre Ledru
8729fbb999 also remove test.cpp 2021-08-17 12:28:16 +02:00
Sylvestre Ledru
2a5020dbfb change the version for the libclc upload 2021-08-17 12:14:59 +02:00
Sylvestre Ledru
f4597c6a4d improve the testsuite 2021-08-17 12:14:06 +02:00
Sylvestre Ledru
393d97f7f9 Remove old svn reference in the usage dh_strip & dh_makeshlibs 2021-08-17 10:18:48 +02:00
Sylvestre Ledru
738f2e6613 remove old svn reference in the usage dh_strip & dh_makeshlibs 2021-08-17 10:18:05 +02:00
Sylvestre Ledru
8a3b67e747 run_test: add debug info 2021-08-17 10:18:05 +02:00
Sylvestre Ledru
6498d613d1 add a new test to import the libclang 2021-08-16 21:56:55 +02:00
Sylvestre Ledru
7682e85772 fix conflict in a script 2021-08-16 21:56:33 +02:00
Sylvestre Ledru
9a0b8c2663 Add a new variable called SONAME_CLANG as clang soname has started with llvm-toolchain-13. it is normal that 13 is what is seen in 14 or later version as it is bumped only with abi changes 2021-08-16 15:49:00 +02:00
Jordan Justen
f572d3695e
libclc: Include libclc spir-v outputs (used by Mesa opencl)
This adds the following to the libclc-12 package:

/usr/lib/clc/spirv64-mesa3d-.spv
/usr/lib/clc/spirv-mesa3d-.spv

Signed-off-by: Jordan Justen <jljusten@debian.org>
2021-08-16 01:01:39 -07:00
Sylvestre Ledru
fe53b80fb8 Add symbol clang_CompileCommand_getNumMappedSources to libclang 2021-08-11 13:10:34 +02:00
Sylvestre Ledru
5d8ec6a318 Merge remote-tracking branch 'origin/12' into 13 2021-08-09 13:08:36 +02:00
Sylvestre Ledru
c59ca700a1 Don't build libunwind on hurd, armel, powerpc & mipsel 2021-08-09 13:08:36 +02:00
Sylvestre Ledru
c0181fe78d Fix a test -stdlib=libc++ -unwindlib=libunwind -rtlib=compiler-rt -static-libstdc++ -static-libgcc test.cpp -lpthread -ldl -o test 2021-08-09 13:08:04 +02:00
Sylvestre Ledru
7a22a0e1ff Don't build libunwind on hurd, armel, powerpc & mipsel 2021-08-08 11:07:52 +02:00
Sylvestre Ledru
f950e2d7ca unwind: fix the version 2021-08-08 11:02:42 +02:00
Sylvestre Ledru
8898d4f746 Merge remote-tracking branch 'origin/12' into 13 2021-08-08 11:02:11 +02:00
Sylvestre Ledru
4ea50e0e0f Don't build libunwind on armel & mipsel 2021-08-08 11:01:49 +02:00
Sylvestre Ledru
42af26b2d7 Make libunwind-dev depends on libunwind 2021-08-08 10:59:13 +02:00
Sylvestre Ledru
49b3cf76f1 fix scanbuild py 2021-08-04 15:29:01 +02:00
Sylvestre Ledru
0c10ea95e7 fix the version 2021-08-03 09:32:30 +02:00
Sylvestre Ledru
38d3fddeb9 Merge remote-tracking branch 'origin/12' into 13 2021-08-02 11:00:53 +02:00
Sylvestre Ledru
a5528e133e libc++ & libc++ abi: only pass -DLIBCXXABI_USE_LLVM_UNWINDER=YES if libunwind is available on the platform 2021-08-02 10:59:45 +02:00
Sylvestre Ledru
45acb9d788 Merge remote-tracking branch 'origin/12' into 13 2021-08-01 20:40:33 +02:00
Sylvestre Ledru
cb191ac1b3 fix the build of libunwind 2021-08-01 20:40:14 +02:00
Sylvestre Ledru
e49370b38a Merge remote-tracking branch 'origin/12' into 13 2021-08-01 18:09:24 +02:00
Sylvestre Ledru
62bcced93d fix the version when using the ugly testing script 2021-08-01 18:09:08 +02:00
Sylvestre Ledru
3e1c4e5fd9 Merge remote-tracking branch 'origin/12' into 13 2021-08-01 11:43:45 +02:00
Sylvestre Ledru
c039e0465f Build libunwind only on amd64 arm64 armhf i386 mips64el ppc64el ppc64 riscv64 sparc sparc64 Not supported on s390x for example 2021-08-01 11:43:19 +02:00
Sylvestre Ledru
f20d336773 fix changelog 2021-07-31 21:06:27 +02:00
Sylvestre Ledru
972d4e79a4 * Adjust libclang:
- upstream decided to make it stable starting from 13, with the soname
  - for now, I am not planning to rename libclang1-13 to libclang13 as it will
    cause too much churn for a small gain as we will keep libllvm (while
    losing the capability to have different versions in parallel installed)
2021-07-31 12:33:52 +02:00
Sylvestre Ledru
b32eed2767 remove the revert as it has been fixed upstream 2021-07-31 09:19:47 +02:00
Sylvestre Ledru
df0335094d * Generate libunwind-13 & libunwind-13-dev packages
* Add the following option to the libc++ build:
  -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON
  -DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON
  -DLIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY=OFF
   to address upstream bug 46321
* Make libc++abi use libunwind
* d/rules: Adjust cmake defines to fix libclc.pc paths
* Add the following option to the libc++ build:
  -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON
  -DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON
  -DLIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY=OFF
   to address upstream bug 46321
* Build libunwind
* Add riscv64 architecture in control
  enable liblldb, libomp and others which are
  currently unavailable in riscv64 repository.
* Add libxml2 as a dependency as it is necessary
  for llvm manifest tool (llvm-mt)
  (Closes: #990537)
* d/rules: Adjust cmake defines to fix libclc.pc paths
2021-07-30 22:09:10 +02:00
Sylvestre Ledru
13740e79ae Fix changelog 2021-07-30 14:49:34 +02:00
Sylvestre Ledru
8f6718bcb1 Make libc++abi use libunwind 2021-07-30 14:49:11 +02:00
Sylvestre Ledru
6b84ba401e Build libunwind 2021-07-30 14:49:04 +02:00
Sylvestre Ledru
d7b9f6065e also test the execution 2021-07-30 14:48:16 +02:00
Sylvestre Ledru
4424a0f166 fix changelog 2021-07-30 14:30:40 +02:00
Sylvestre Ledru
3c58d712e5 Merge branch '12' of salsa.debian.org:pkg-llvm-team/llvm-toolchain into 12 2021-07-30 14:29:20 +02:00
Sylvestre Ledru
c72a6c0e50 Generate libunwind-12 & libunwind-12-dev packages 2021-07-30 14:27:04 +02:00
Sylvestre Ledru
1ee42313c8 also suggest the removal of libclc 2021-07-30 09:17:41 +02:00
Sylvestre Ledru
570118155e Branching of snapshot into 13 2021-07-28 18:42:19 +02:00
Sylvestre Ledru
8358f9498b Add the following option to the libc++ build: -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON -DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON -DLIBCXX_STATICALLY_LINK_ABI_IN_SHARED_LIBRARY=OFF to address upstream bug 46321 2021-07-27 17:58:15 +02:00
Jordan Justen
e001f3ee5b
d/rules: Adjust cmake defines to fix libclc.pc paths
Before this change, /usr/lib/pkgconfig/libclc.pc contained these
invalid paths:

includedir=/usr/local//usr/include
libexecdir=/usr/local//usr/lib/clc

Signed-off-by: Jordan Justen <jljusten@debian.org>
2021-07-19 01:21:45 -07:00
Sylvestre Ledru
b852e4851c rebase of the patches 2021-07-17 23:13:38 +02:00
Sylvestre Ledru
66b537ad0b add a new file to update when preparing a new release 2021-07-17 23:00:13 +02:00
Sylvestre Ledru
e7aa593842 adjust the scan-build-py path 2021-07-17 20:18:58 +02:00
Sylvestre Ledru
e0994366bb Merge remote-tracking branch 'origin/12' into snapshot 2021-07-17 20:18:42 +02:00
Sylvestre Ledru
50d9eaeca8 adjust the scan-build-py path 2021-07-17 20:16:39 +02:00
Sylvestre Ledru
8bc9153875 Merge remote-tracking branch 'origin/11' into 12 2021-07-17 20:16:19 +02:00
Sylvestre Ledru
bee0e9fdfb also mention a change from -11 2021-07-17 20:15:55 +02:00
Sylvestre Ledru
828b18e02f Fix changelog 2021-07-17 20:15:52 +02:00
Sylvestre Ledru
7968be8f04 * Fix the default binary path for scan-build-py to clang-11 (instead of
clang) - see scan-build-py-fix-default-bin.diff
  tested by
  https://github.com/opencollab/llvm-toolchain-integration-test-suite/
  - not really working for now
2021-07-17 20:14:53 +02:00
Sylvestre Ledru
ed64f98bf8 fix dep 2021-07-16 08:58:50 +02:00
Sylvestre Ledru
e88c61a6c9 fix dep 2021-07-16 00:03:39 +02:00
Sylvestre Ledru
e1e4abe8fc Revert "Workaround a compilation issue with libclc https://bugs.llvm.org/show_bug.cgi?id=51063"
This reverts commit 0d5176e591.
2021-07-15 19:51:32 +02:00