From: Peter Michael Green Date: Tue, 2 Nov 2021 12:13:15 +0000 (+0000) Subject: Merge tag '1%11.0.1-2+rpi1' of llvm-toolchain-11 into llvm-toolchain-12 X-Git-Tag: archive/raspbian/1%12.0.1-16+rpi1~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c2bdfd659b7f48e2feedbd57bc867cfac6e9ebea;p=llvm-toolchain-12.git Merge tag '1%11.0.1-2+rpi1' of llvm-toolchain-11 into llvm-toolchain-12 --- c2bdfd659b7f48e2feedbd57bc867cfac6e9ebea diff --cc debian/changelog index ac32c824e6,b909b3ac07..125174469e --- a/debian/changelog +++ b/debian/changelog @@@ -1,569 -1,40 +1,607 @@@ -llvm-toolchain-11 (1:11.0.1-2+rpi1) bullseye-staging; urgency=medium ++llvm-toolchain-12 (1:12.0.1-16+rpi1) bullseye-staging; urgency=medium + + [changes brought forward from llvm-toolchain-3.8 1:3.8-2+rpi1 by Peter Michael Green at Sat, 14 May 2016 21:43:35 +0000] + * Cleanup .pyc files in clean target. + * Add a hack to the cmake based build to force armv6 (unfortunately the cmake + based build relies on config.guess which assumes you want to build for the + hardware you are running on). + * Add -DCOMPILER_RT_BUILD_BUILTINS=OFF to disable parts of compiler-rt that + are broken on lower arm architectures. + + [changes introduced in llvm-toolchain-3.9 1:3.9.1-1 by Peter Michael Green] + * disable testsuite (using a method that is hopefully less likely to cause diff conflicts than previously). + * Remove -march=armv7-a in compiler-rt/cmake/config-ix-base.cmake + * Clean up debian/usr in clean target. + * Clean up clang/tools/*-3.9 in clean target. + * Clean up stray *3.9.vim files + * Clean up clang/tools/scan-build/man/scan-build-3.9.1 and utils/vim/llvm-3.9-vimrc + * Clean up debian/*.install + + [changes introduced in llvm-toolchain-6.0 1:6.0-1+rpi1 by Peter michael green] + * create build-llvm/docs/ocamldoc/html/ so the install target doesn't complain + about it not existing. + * clean up more crap left behind by build process. + + [changes introduced in llvm-toolchain-6.0 1:6.0-3+rpi1 by Peter Michael Green] + * Remove debian/man in clean target. + + [changes introduced in llvm-toolchain-7 1:7-6+rpi1 by Peter Michael Green] + * Use libatomic on armhf + * Set cmake/config.guess.hack back to mode 644 in clean target to keep + git/dgit happy. + * Yet more clean target fixes. + + [changes introduced in llvm-toolchain-7 1:7.0.1-1+rpi2 by Peter Michael Green] + * Change triplet in debian/rules to use armv6k rather than armv7l + - -- Raspbian forward porter Sat, 23 Jan 2021 14:24:45 +0000 ++ -- Peter Michael Green Sat, 23 Jan 2021 14:24:45 +0000 ++ +llvm-toolchain-12 (1:12.0.1-16) unstable; urgency=medium + + [ Erik Maciejewski ] + * use make variables populated by /usr/share/dpkg/buildflags.mk and remove + _EXTRA suffix from STAGE_1_ and STAGE_2_ flag vars to improve clarity and + readability for the multi-stage setup in debian/rules + * remove some redundant cmake options (options with the same value as their + default) from, and move PYTHON_EXECUTABLE cmake option to, the cmake + configure command in debian/rules + * re-disable fixfilepath in dpkg-buildflags in favor of using the more llvm + aware implementation provided by the llvm-project by setting + LLVM_USE_RELATIVE_PATHS_IN_FILES=ON in both stages of the toolchain + build in debian/rules + + [ Sylvestre Ledru ] + * autopkgtest/integration-test-suite-test: restrict to arm64/amd64 for now + + -- Sylvestre Ledru Thu, 28 Oct 2021 16:45:49 +0200 + +llvm-toolchain-12 (1:12.0.1-15) unstable; urgency=medium + + * Disable lldb on mipsel and mips64el as it isn't supported + See https://reviews.llvm.org/D102872 + (Closes: #997011) + + [ Erik Maciejewski ] + * disable compiler-rt builtins for unsupported arch s390x in debian/rules + * set arm toolchain arch profiles explicitly to debian baselines in + debian/rules as the target host triples alone are ambiguous and compiler + defaults and debian baselines may not align + * add arch specific config for powerpc to debian/rules and set host target + triple and compiler-rt config to force correct arch profile for builtins + * set LIBCXX_USE_COMPILER_RT to OFF in debian/rules to disable builtins when + libunwind is not enabled since the unwind implementation with gnu builtins + will then be required + + -- Sylvestre Ledru Sat, 23 Oct 2021 10:33:56 +0200 + +llvm-toolchain-12 (1:12.0.1-14) unstable; urgency=medium + + * fix build flag inconsistencies (potentially causing build failures) by + utilizing dpkg-buildflags for defaults where appropriate and making sure all + flags intended for a given stage are also applied to the stage's builtins + and runtimes builds + * re-enable fixfilepath for use with dpkg-buildflags in debian/rules as it has + been supported since clang-10 + * establish a consistent STAGE_[stage]_ prefix naming scheme for stage + variables and replace STAGE1_AND_STAGE2_ prefix with STAGE_ALL_ prefix for + better future-proofing in debian/rules + * modify stage dir var names to use new prefix scheme in debian/rules + * add explicit s390x build options to debian/rules, set + LLVM_HOST_TRIPLE=s390x-linux-gnu and COMPILER_RT_DEFAULT_TARGET_ONLY=ON + so that builtins are only built for the explicit host arch (Closes: #996802) + + -- Erik Maciejewski Fri, 22 Oct 2021 03:12:48 -0700 + +llvm-toolchain-12 (1:12.0.1-13) unstable; urgency=medium + + * update rules to incorporate relevant arch specific configs from snapshot + * patch llvm runtimes cmake build to add a check and only set up and build + compiler-rt builtins if they have not been disabled in a runtimes build + * patch compiler-rt builtins cmake build to fix default arch detection for + armhf by adding the same target triple handling used for compiler-rt libs + * remove legacy var for use when libcxx was a standalone build + + -- Erik Maciejewski Wed, 20 Oct 2021 09:04:42 -0700 + +llvm-toolchain-12 (1:12.0.1-12) unstable; urgency=medium + + * re-disable building builtins on armel as they still fail (Closes: #996828) + * add patch to libcxxabi cmake build for adding builtins to lib flags fixing + an issue where builtins were not being linked into libcxxabi when + LIBCXXABI_USE_COMPILER_RT=ON (Closes: #996796) + + -- Erik Maciejewski Tue, 19 Oct 2021 01:28:50 -0700 + +llvm-toolchain-12 (1:12.0.1-11) unstable; urgency=medium + + * add missing LIBUNWIND_USE_COMPILER_RT to CLANG_BOOTSTRAP_PASSTHROUGH to link + correct compiler-rt lib in stage2 + * consolidate two conditionals for libatomic that were essentially the same, + but the one removed could conflict with BOOTSTRAP_SHARED_LINK_FLAGS + elsewhere in the rules file + * attempt to fix arm builtins by adding COMPILER_RT_DEFAULT_TARGET_ONLY=ON to + armel and armhf toolchain build options to prevent related arches that might + not be supported on the build host from being included in the build (like + armv6m soft-float on the armhf build host) + * reorganize flags and cmake options around stages for the toolchain build + * set baseline arch to armv5t, remove older 3.8 workaround for armel build + * update to debian host triple for the armhf build + + [ Jordan Justen ] + * d/rules: Add amdgcn-mesa-mesa3d to libclc build. + Closes: #993904, #995069 + + [ Sylvestre Ledru ] + * Bring back the llvm manpages (Closes: #995684) + Were generated at the wrong place + + -- Erik Maciejewski Sat, 16 Oct 2021 09:07:25 -0700 + +llvm-toolchain-12 (1:12.0.1-10) unstable; urgency=medium + + * evolve llvm build configuration in rules to leverage the two stage build + with runtimes support whereby the resulting stage2 (final) compiler is used + to build the stage2 (final) runtimes as part of a single monolithic build + * the stage2 runtimes build now includes compiler-rt, libcxx and libcxxabi as + well as libunwind and openmp where supported. Additionally, legacy + corresponding standalone build targets are removed from the rules file + * patch openmp build to include required runtimes as dependencies to build + targets so they are built first when included as part of a runtimes build + since openmp can depend on them + * patch libclc build to set rpath for prepare_builtins build utility to find + correct stage2 libs at runtime when executed as part of a build + * patch libcxx build so that if libatomic is found, only link it if libgcc is + the rtlib + * patch compiler-rt build to suppress xray and testing warns when not enabled + * patch llvm linker detection to account for vendor being prepended to lld + version string + * remove several existing patches incorporating workarounds no longer required + by the modified build configuration + + [ Sylvestre Ledru ] + * If parallel is not set in DEB_BUILD_OPTIONS, use nproc + * Add source-is-missing llvm/test/* / lldb/test/* / lld/test/* + to the source override + * Remove old override 'outdated-autotools-helper-file' + + [ John Paul Adrian Glaubitz ] + * Disable libunwind on sparc, sparc64 and x32 + + -- Erik Maciejewski Wed, 06 Oct 2021 01:25:08 -0700 + +llvm-toolchain-12 (1:12.0.1-9) unstable; urgency=medium + + * Replace make by ninja for the build process + It is now more tested than make by upstream + And it is supposed to be faster + Removed openmp/bootstrap-with-openmp-version-export-missing.diff + as it seems that the ninja move fixed it + + -- Sylvestre Ledru Sat, 18 Sep 2021 11:03:29 +0200 + +llvm-toolchain-12 (1:12.0.1-8) unstable; urgency=medium + + * Add back CMAKE_EXTRA to build LLVM gold (Closes: #993664) + + [ Gianfranco Costamagna ] + * Refresh symbols on riscv64 + + -- Sylvestre Ledru Sat, 04 Sep 2021 16:38:24 +0200 + +llvm-toolchain-12 (1:12.0.1-7) unstable; urgency=medium + + * Add debian/source/options to ignore the diff (much much faster to repack) + * cmake: use ON instead of YES for consistency + * Don't generate the llvm-mcmarkup & lldb-mi manpages (don't exist anymore) + (LP: #1940713) + + [ Gianfranco Costamagna ] + * Add a patch to fix omp build on riscv64 + * Don't build lldb on riscv64, fails to build due to missing + CreateHostNativeRegisterContextLinux implementation on this architecture. + + -- Sylvestre Ledru Tue, 31 Aug 2021 20:56:40 +0200 + +llvm-toolchain-12 (1:12.0.1-6) unstable; urgency=medium + + * Fixup build process on riscv64, the architecture building was enabled + in control file but not in rules file, neither required build-deps were + installed. (note: this should fail, but at least we will have a build log + stored. + * Add ocaml support on riscv64. + * Don't require hello package on i386 (helps Ubuntu alternate dependencies) + + -- Gianfranco Costamagna Thu, 26 Aug 2021 15:33:24 +0200 + +llvm-toolchain-12 (1:12.0.1-5) unstable; urgency=medium + + [ Jordan Justen ] + * Include SPIR-V (*.spv) outputs in libclc package + + -- Sylvestre Ledru Wed, 25 Aug 2021 10:18:14 +0200 + +llvm-toolchain-12 (1:12.0.1-4) unstable; urgency=medium + + * Make libunwind-dev depends on libunwind + * Don't build libunwind on hurd, armel, powerpc & mipsel + * Remove old svn reference in the usage dh_strip & dh_makeshlibs + + -- Sylvestre Ledru Mon, 16 Aug 2021 22:04:17 +0200 + +llvm-toolchain-12 (1:12.0.1-3) unstable; urgency=medium + + * Build libunwind only on amd64 arm64 armhf i386 + mips64el ppc64el ppc64 riscv64 sparc sparc64 + Not supported on s390x for example + * libc++ & libc++ abi: only pass -DLIBCXXABI_USE_LLVM_UNWINDER=YES + if libunwind is available on the platform + + -- Sylvestre Ledru Sun, 01 Aug 2021 11:42:20 +0200 + +llvm-toolchain-12 (1:12.0.1-2) unstable; urgency=medium + + * Generate libunwind-12 & libunwind-12-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 + + [ Kasper Kantz ] + * Add riscv64 architecture in control + enable liblldb, libomp and others which are + currently unavailable in riscv64 repository. + + [ Krzysztof Aleksander Pyrkosz ] + * Add libxml2 as a dependency as it is necessary + for llvm manifest tool (llvm-mt) + (Closes: #990537) + + [ Jordan Justen ] + * 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 + + [ Kasper Kantz ] + * Add riscv64 architecture in control + enable liblldb, libomp and others which are + currently unavailable in riscv64 repository. + + [ Krzysztof Aleksander Pyrkosz ] + * Add libxml2 as a dependency as it is necessary + for llvm manifest tool (llvm-mt) + (Closes: #990537) + + [ Jordan Justen ] + * d/rules: Adjust cmake defines to fix libclc.pc paths + + -- Sylvestre Ledru Mon, 12 Jul 2021 08:19:59 +0200 + +llvm-toolchain-12 (1:12.0.1-1) unstable; urgency=medium + + * New upstream release + + -- Sylvestre Ledru Fri, 09 Jul 2021 09:13:12 +0200 + +llvm-toolchain-12 (1:12.0.1~+rc4-1) unstable; urgency=medium + + * New testing upstream release + + -- Sylvestre Ledru Sat, 03 Jul 2021 00:17:36 +0200 + +llvm-toolchain-12 (1:12.0.1~+rc3-1) unstable; urgency=medium + + * New testing upstream release + * Fix the path to analyze-{cc,c++} for scan-build-py with + --intercept-first (scan-build-py-fix-analyze-path.diff) + + -- Sylvestre Ledru Sat, 26 Jun 2021 10:00:56 +0200 + +llvm-toolchain-12 (1:12.0.1~+rc2-1) unstable; urgency=medium + + * New testing upstream release + + -- Sylvestre Ledru Mon, 21 Jun 2021 16:06:36 +0200 + +llvm-toolchain-12 (1:12.0.1~+rc1-1) unstable; urgency=medium + + [ John Paul Adrian Glaubitz ] + * Add upstream patch D98574 to fix clang macro definitions on sparc64 + * Add upstream patch D98575 to fix 32-bit compiler-rt build on sparc64 + + [ Sylvestre Ledru ] + * backport D101773 to fix an llvm ir issue on mipsel + in mips/mips-D101773-reloc.patch + thanks to Ximin Luo + (Closes: #988965) + + -- Sylvestre Ledru Fri, 28 May 2021 23:27:27 +0200 + +llvm-toolchain-12 (1:12.0.1~+rc1-1~exp1) unstable; urgency=medium + + * New testing upstream release + + -- Sylvestre Ledru Wed, 26 May 2021 13:10:29 +0200 + +llvm-toolchain-12 (1:12.0.0-3) unstable; urgency=medium + + [ Timo Aaltonen ] + * Build libclc. (Closes: #942709) + + [ Sylvestre Ledru ] + * Upload to unstable + * Also build lld on s390x + + -- Sylvestre Ledru Sat, 01 May 2021 19:33:27 +0200 + +llvm-toolchain-12 (1:12.0.0-2) experimental; urgency=medium + + [ Matthias Klose ] + * Improve the clean rule + * Disable again LTO + * Create a new package llvm-12-linker-tools: + Contains the LLVMgold and LLVMPolly linker plugins. + + -- Sylvestre Ledru Thu, 15 Apr 2021 13:27:57 +0200 + +llvm-toolchain-12 (1:12.0.0-1) unstable; urgency=medium + + * New upstream release + + -- Sylvestre Ledru Thu, 15 Apr 2021 07:57:57 +0200 + +llvm-toolchain-12 (1:12.0.0~++rc5-2) unstable; urgency=medium + + * Add -DCMAKE_SUPPRESS_REGENERATION=ON to limit the number of calls + to cmake + Try to workaround a bug on llvm-toolchain-stretch-12-binaries + architecture=s390x,stretch + + -- Sylvestre Ledru Sat, 10 Apr 2021 14:59:07 +0200 + +llvm-toolchain-12 (1:12.0.0~++rc5-1) unstable; urgency=medium + + * New testing upstream release + * Verify that /proc is mounted. It makes some unexpected issues when + building from a chroot without /proc + + -- Sylvestre Ledru Thu, 08 Apr 2021 18:04:07 +0200 + +llvm-toolchain-12 (1:12.0.0~++rc4-1) unstable; urgency=medium + + * New testing upstream release + * Cherry-pick https://reviews.llvm.org/D99501 to allow -flto=auto + + -- Sylvestre Ledru Thu, 01 Apr 2021 08:56:19 +0200 + +llvm-toolchain-12 (1:12.0.0~++rc3-4) unstable; urgency=medium + + * dont' fail fsanitize=thread on i386, not supported + * Don't hard fail on z3 failures with "set -e" at the begin, if z3 support is not available we do fail and exit testsuite without checking the log + * Don't force gcc-11 anymore on riscv64, gcc-10 has the fixes now + + -- Gianfranco Costamagna Sat, 20 Mar 2021 17:16:26 +0100 + +llvm-toolchain-12 (1:12.0.0~++rc3-3) unstable; urgency=medium + + * Cherry-pick upstream commit e3cd3a3c91524c957e06bb0170343548f02b6842 + bring back Reporter.py needing to make scan-view work. + + -- Gianfranco Costamagna Wed, 17 Mar 2021 13:11:46 +0100 + +llvm-toolchain-12 (1:12.0.0~++rc3-2) unstable; urgency=medium + + * Fixup omptarget regex error, missing escape + + -- Gianfranco Costamagna Mon, 15 Mar 2021 21:04:46 +0100 + +llvm-toolchain-12 (1:12.0.0~++rc3-1) unstable; urgency=medium + + [ Gianfranco Costamagna ] + * Upload to sid + + [ Sylvestre Ledru ] + * Ignore source: invalid-arch-string-in-source-relation riscv64 [build-depends: g++-11 [riscv64]] + + [ Matthias Klose ] + * Also disable CMake's package validation check for omptarget target files (Closes: #983838). + + -- Gianfranco Costamagna Mon, 15 Mar 2021 11:18:42 +0100 + +llvm-toolchain-12 (1:12.0.0~++rc3-1~exp1) experimental; urgency=medium + + * New testing upstream release + + -- Sylvestre Ledru Wed, 10 Mar 2021 16:11:07 +0100 + +llvm-toolchain-12 (1:12.0.0~++rc2-1~exp2) experimental; urgency=medium + + * Refresh the openmp symbol list + In libomp.so.5: + - GOMP_taskwait_depend + - GOMP_teams_reg + - __kmpc_calloc + - __kmpc_realloc + - __kmpc_taskloop_5 + And all libomptarget.so.12 + * Only enable libomp-12-doc on supported archs + + [ Matthias Klose ] + * Build using GCC 11 on riscv64 (Closes: #983837). + + -- Sylvestre Ledru Tue, 02 Mar 2021 13:25:24 +0100 + +llvm-toolchain-12 (1:12.0.0~++rc2-1~exp1) experimental; urgency=medium + + * New rc release + + -- Sylvestre Ledru Wed, 24 Feb 2021 10:18:02 +0100 + +llvm-toolchain-12 (1:12.0.0~++20210127035054+8e464dd76bef-1~exp1) experimental; urgency=medium + + [ Sylvestre Ledru ] + * experimental New snapshot release now 12 as branched + * Workaround a static_assert on https://bugs.llvm.org/show_bug.cgi?id=48259 + "static assertion failed: Recycler allocation size is less than object size!" + * Also install usr/lib/llvm-12/bin/ld64.lld.darwinnew & usr/bin/ld64.lld.darwinnew-12 + * Also install usr/lib/llvm-12/lib/libomptarget.so.12 in libomp5-12 + + [ Gianfranco Costamagna ] + * Add upstream patch D92052 to fix a gcn offload compiler issue with gcc (Closes: #975692) + + -- Sylvestre Ledru Wed, 27 Jan 2021 15:54:15 +0100 + +llvm-toolchain-snapshot (1:12~++20201105093023+cc2a2bb5ce5-1~exp1) experimental; urgency=medium + + * experimental New snapshot release + * lld-use-link-atomic-i386.diff Try to workaround a linker error + error: undefined reference to '__atomic_load' + on sid i386 + * Bring back gold for ppc64el. Doko thinks it is fixed. + + [ John Paul Adrian Glaubitz ] + * Limit maximum parallel link jobs to 4 on sparc and sparc64 + + -- Sylvestre Ledru Thu, 05 Nov 2020 09:42:14 +0100 + +llvm-toolchain-snapshot (1:12~++20200929085817+962a247aebb-1~exp1) experimental; urgency=medium + + [ Sylvestre Ledru ] + * New snapshot release + * Install omp.h in instead of /usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION_FULL@/include/ + instead of /usr/lib/llvm-@LLVM_VERSION@/include/openmp/omp + * Install split-file in llvm-X-tools (like lit) + * Add new symbols to libclang1: + - clang_CXRewriter_create + - clang_CXRewriter_dispose + - clang_CXRewriter_insertTextBefore + - clang_CXRewriter_overwriteChangedFiles + - clang_CXRewriter_removeText + - clang_CXRewriter_replaceText + - clang_CXRewriter_writeMainFileToStdOut + - clang_Cursor_getVarDeclInitializer + - clang_Cursor_hasVarDeclExternalStorage + - clang_Cursor_hasVarDeclGlobalStorage + + [ John Paul Adrian Glaubitz ] + * Link against libatomic on mipsel to fix FTBFS in stage2 + * Link against libatomic on powerpc to fix FTBFS in stage2 + * Use dh-exec to exclude lib/libPolly*.a on powerpc and + powerpcspe from libclang-common-X.Y-dev.install.in + * Drop powerpcspe patches merged upstream: + - debian/patches/powerpcspe/D49754-powerpcspe-clang.diff + - debian/patches/powerpcspe/D54583-powerpcspe-double-parameter.diff + - debian/patches/powerpcspe/D56703-powerpcspe-register-spilling.diff + + -- Sylvestre Ledru Tue, 29 Sep 2020 21:01:53 +0200 + +llvm-toolchain-snapshot (1:12~++20200804122259+4be13b15d69-1~exp2) UNRELEASED; urgency=medium + + [ Sylvestre Ledru ] + * New snapshot release + * Install omp.h in instead of /usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION_FULL@/include/ + instead of /usr/lib/llvm-@LLVM_VERSION@/include/openmp/omp + * Install split-file in llvm-X-tools (like lit) + * Add new symbols to libclang1: + - clang_CXRewriter_create + - clang_CXRewriter_dispose + - clang_CXRewriter_insertTextBefore + - clang_CXRewriter_overwriteChangedFiles + - clang_CXRewriter_removeText + - clang_CXRewriter_replaceText + - clang_CXRewriter_writeMainFileToStdOut + - clang_Cursor_getVarDeclInitializer + - clang_Cursor_hasVarDeclExternalStorage + - clang_Cursor_hasVarDeclGlobalStorage + + [ John Paul Adrian Glaubitz ] + * Link against libatomic on mipsel to fix FTBFS in stage2 + * Link against libatomic on powerpc to fix FTBFS in stage2 + * Use dh-exec to exclude lib/libPolly*.a on powerpc and + powerpcspe from libclang-common-X.Y-dev.install.in + * Drop powerpcspe patches merged upstream: + - debian/patches/powerpcspe/D49754-powerpcspe-clang.diff + - debian/patches/powerpcspe/D54583-powerpcspe-double-parameter.diff + - debian/patches/powerpcspe/D56703-powerpcspe-register-spilling.diff + + -- Sylvestre Ledru Tue, 29 Sep 2020 20:57:09 +0200 + +llvm-toolchain-snapshot (1:12~++20200715052739+d6e79e3dd6d-1~exp1) experimental; urgency=medium + + [ Sylvestre Ledru ] + * Snapshot is now -12 + + [ Samuel Thibault ] + * debian/patches/hurd/hurd-EIEIO-undef.diff: Remove, upstreamed. + * debian/patches/hurd/hurd-cxx-paths.diff: Remove, upstreamed. + + -- Sylvestre Ledru Wed, 08 Jul 2020 15:19:14 +0200 + +llvm-toolchain-11 (1:11.1.0-3) unstable; urgency=medium + + * Add two patches from ubuntu to fix lto and gcc-11 build failures + * Use minimum version for cmake-test + * Don't require libclang-11-dev on cmake-test + * Add new llvm-11-linker-tools (from Ubuntu) + * Merge new fixes from branch=9 + * clang-11: Drop Recommends: libomp-11-dev + + -- Gianfranco Costamagna Mon, 27 Sep 2021 15:50:46 +0200 + +llvm-toolchain-11 (1:11.1.0-2) unstable; urgency=medium + + * Ajust the cmake test to unbreak autopkgtest + + -- Sylvestre Ledru Sun, 26 Sep 2021 22:02:43 +0200 + +llvm-toolchain-11 (1:11.1.0-1) unstable; urgency=medium + + [ Sylvestre Ledru ] + * Upload to unstable + * bump autopkgtest cmake version (Closes: #994501) + Thanks to Timo Röhling for the patch + + [ Gianfranco Costamagna ] + * Cherry-pick upstream commit to fix a libgl1-mesa-dri texture failure. + (Closes: #989545) + + -- Sylvestre Ledru Fri, 24 Sep 2021 12:54:55 +0200 + +llvm-toolchain-11 (1:11.1.0-1~exp2) experimental; urgency=medium + + * 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/ + + [ Krzysztof Aleksander Pyrkosz ] + * Add libxml2 as a dependency as it is necessary + for llvm manifest tool (llvm-mt) + (Closes: #990537) + - not really working for now + + -- Sylvestre Ledru Sat, 17 Jul 2021 20:13:57 +0200 + +llvm-toolchain-11 (1:11.1.0-1~exp1) experimental; urgency=medium + + * New upstream release + Should be mostly minor fixes + Was driven by https://bugs.llvm.org/show_bug.cgi?id=46526 + but as we are not impacted, I reverted the change in + debian/patches/revert-abi-change-clang.diff + * Also build lld on s390x + * Fix the path to analyze-{cc,c++} for scan-build-py with + --intercept-first (scan-build-py-fix-analyze-path.diff) + * Backport bug #47591 to fix a miscompilation in bpftrace + (Closes: #990220) + * Only enable libomp-11-doc on supported archs + + -- Sylvestre Ledru Mon, 01 Mar 2021 10:50:19 +0100 llvm-toolchain-11 (1:11.0.1-2) unstable; urgency=medium diff --cc debian/control index d12af64a09,c62229509f..9d62f1d31c --- a/debian/control +++ b/debian/control @@@ -11,25 -9,21 +11,22 @@@ Build-Depends: debhelper (>= 9.0), cmak lsb-release, patchutils, diffstat, xz-utils, python3-dev, libedit-dev, libncurses5-dev, swig, python3-six, python3-sphinx (>= 1.3.6), binutils-dev, + libxml2-dev, libjsoncpp-dev, pkg-config, lcov, procps, help2man, zlib1g-dev, - g++-multilib [amd64 i386 kfreebsd-amd64 mips mips64 mips64el mipsel powerpc ppc64 s390 s390x sparc sparc64 x32], + g++-multilib [amd64 i386 kfreebsd-amd64 mips64 mips64el mipsel powerpc ppc64 s390 s390x sparc sparc64 x32], libjs-mathjax, python3-recommonmark, doxygen, gfortran, - ocaml-nox [amd64 arm64 armhf ppc64el riscv64 s390x], - ocaml-findlib [amd64 arm64 armhf ppc64el riscv64 s390x], - libctypes-ocaml-dev [amd64 arm64 armhf ppc64el riscv64 s390x], - dh-exec, dh-ocaml [amd64 arm64 armhf ppc64el riscv64 s390x], - libpfm4-dev [linux-any], python3-setuptools, libz3-dev, - llvm-spirv [ amd64 arm64 armel armhf mips64el mipsel ppc64el s390x ] | hello [!i386], - spirv-tools [ linux-any ] | hello [ !i386] - # "| hello" is for older buster/bionic distros without spirv support - Build-Conflicts: oprofile, ocaml + ocaml-nox [amd64 arm64 armhf ppc64el s390x], + ocaml-findlib [amd64 arm64 armhf ppc64el s390x], + libctypes-ocaml-dev [amd64 arm64 armhf ppc64el s390x], + dh-exec, dh-ocaml [amd64 arm64 armhf ppc64el s390x], + libpfm4-dev [linux-any], python3-setuptools, libz3-dev + Build-Conflicts: oprofile, ocaml, libllvm-3.8-ocaml-dev, libllvm-3.9-ocaml-dev Standards-Version: 4.2.1 Homepage: https://www.llvm.org/ -Vcs-Git: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain.git -b 11 -Vcs-Browser: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/tree/11 +Vcs-Git: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain.git -b snapshot +Vcs-Browser: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/tree/snapshot # ------------- clang ------------- diff --cc debian/patches/series index b705399e28,d8451289b3..d1705df91b --- a/debian/patches/series +++ b/debian/patches/series @@@ -19,16 -17,13 +17,12 @@@ symbolizer-path.dif clang-tidy-run-bin.diff 0001-tools-clang-cmake-resolve-symlinks-in-ClangConfig.cmake.patch debug-jit-path.diff - # commented because of bug 903709 #force-gcc-header-obj.diff - do-not-fail-on-unexpected-pass.diff disable-display-PASS-UNSUPPORTED-XFAIL.diff - # llvm-config -fix-llvm-config-obj-src-root.patch 0001-llvm-cmake-resolve-symlinks-in-LLVMConfig.cmake.patch - # Lib names 0044-soname.diff lldb-soname.diff @@@ -77,12 -66,10 +65,11 @@@ libcxx/libcxxabi-arm-ehabi-fix.patc libcxx/libcxx-silent-test-libcxx.diff libcxx/libcxx-silent-failure-ppc64el.diff libcxx/libcxx-silent-failure-arm64.diff - # Change default optims -mips-fpxx-enable.diff -mips-force-nomadd4.diff +mips/mips-fpxx-enable.diff +mips/mips-force-nomadd4.patch +mips/mips-D101773-reloc.patch + 26-set-correct-float-abi.diff clang-baseline-fix-i386.patch disable-sse2-old-x86.diff @@@ -95,10 -80,12 +80,9 @@@ clangd-atomic-cmake.patc # https://reviews.llvm.org/D60380 remove-apple-clang-manpage.diff 0049-Use-Debian-provided-MathJax-everywhere.patch - # Hurd port hurd/hurd-pathmax.diff -# powerpcspe -#powerpcspe/D49754-powerpcspe-clang.diff -#powerpcspe/D54583-powerpcspe-double-parameter.diff -#powerpcspe/D56703-powerpcspe-register-spilling.diff + # kfreebsd # kfreebsd/clang_lib_Basic_Targets.diff # kfreebsd/CMakeLists.txt.diff @@@ -134,18 -117,5 +116,19 @@@ x86-fuzzer.patc python3-shebang.patch print-lldb-path.patch libcxx-armhf-ftbfs.diff -silent-integration-test-suite-i386.diff +#bring-reporter-back.patch +D99501-ignore-lto-auto.diff +scan-build-py-fix-analyze-path.diff +scan-build-py-fix-default-bin.diff + +libclc-llvm-spirv.diff +omp-riscv64.patch +llvm-fix-lld-linker-check.diff +compilerrt-fix-warn-xray-testing.diff +openmp-fix-runtimes-build.diff +libclc-fix-prepare_builtins-rpath.diff +libcxx-libatomic-only-with-gcc-rtlib.diff +libcxxabi-fix-link-builtins.diff +llvm-runtimes-builtins-build-check.diff +compilerrt-builtins-arch-fix-armhf.diff + raspbian-triplet.patch diff --cc debian/rules index 0d4a140fbe,1e6ab19385..1b0cec509a --- a/debian/rules +++ b/debian/rules @@@ -37,65 -36,30 +37,65 @@@ DH_VERSION := $(shell dpkg -s debhelpe include /usr/share/dpkg/architecture.mk -LDFLAGS_EXTRA = -CXXFLAGS_EXTRA = -CFLAGS_EXTRA = CONFIGURE_EXTRA = -CMAKE_EXTRA = -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCOMPILER_RT_BUILD_BUILTINS=OFF - -BASE_PATH := $(CURDIR) -LIBCXX_EXCEPTIONS :=ON - -ifneq (,$(filter $(DEB_HOST_ARCH),s390x)) - LIBCXX_EXCEPTIONS :=OFF -endif -ifneq (,$(filter $(DEB_HOST_ARCH),i386 armhf armel mips mipsel powerpc powerpcspe riscv64)) -CMAKE_EXTRA += -DLIBOMP_LIBFLAGS="-latomic" -DCMAKE_SHARED_LINKER_FLAGS="-latomic" -endif +# dpkg-buildflags support +# disable fixfilepath in favor of the llvm-project supplied flavor, disable lto +export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto +# these are handled on a per stage / build basis +export DEB_CFLAGS_MAINT_STRIP = -g -O2 +export DEB_CXXFLAGS_MAINT_STRIP = -g -O2 + +include /usr/share/dpkg/buildflags.mk + +# We use a stage2 build. It means that a first clang is built using gcc, +# a second clang is built with the first +# And the various compoments are built using the second clang. +# See https://llvm.org/docs/AdvancedBuilds.html + +# collect additional flags for all stages all builds +CFLAGS_EXTRA = -Wno-unused-command-line-argument +CXXFLAGS_EXTRA = -Wno-unused-command-line-argument +LDFLAGS_EXTRA = -Wl,--build-id + +# collect all flags for stage 1 toolchain build only +STAGE_1_CFLAGS = $(CFLAGS) $(CFLAGS_EXTRA) $(CPPFLAGS) +STAGE_1_CXXFLAGS = $(CXXFLAGS) $(CXXFLAGS_EXTRA) $(CPPFLAGS) +STAGE_1_LDFLAGS = $(LDFLAGS) $(LDFLAGS_EXTRA) + +# collect all flags for stage 2 toolchain and stand-alone builds +STAGE_2_CFLAGS = $(CFLAGS) $(CFLAGS_EXTRA) $(CPPFLAGS) +STAGE_2_CXXFLAGS = $(CXXFLAGS) $(CXXFLAGS_EXTRA) $(CPPFLAGS) +STAGE_2_LDFLAGS = $(LDFLAGS) $(LDFLAGS_EXTRA) + +# collect additional cmake options for toolchain build configuration +STAGE_1_CMAKE_EXTRA = +STAGE_2_CMAKE_EXTRA = - STAGE_ALL_CMAKE_EXTRA = ++STAGE_ALL_CMAKE_EXTRA = -DCOMPILER_RT_BUILD_BUILTINS=OFF +# toolchain config-only var combining all stage 1 cmake options +CMAKE_EXTRA = $(STAGE_1_CMAKE_EXTRA) $(STAGE_ALL_CMAKE_EXTRA) +# toolchain config-only var prepending BOOTSTRAP_ to all stage 2 cmake options +BOOTSTRAP_CMAKE_EXTRA = $(foreach extra,$(STAGE_2_CMAKE_EXTRA) $(STAGE_ALL_CMAKE_EXTRA), $(subst -D,-DBOOTSTRAP_,$(extra))) + +BASE_PATH := $(CURDIR) +STAGE_1_BIN_DIR := $(BASE_PATH)/$(TARGET_BUILD)/bin +STAGE_1_LIB_DIR := $(BASE_PATH)/$(TARGET_BUILD)/lib +STAGE_2_BIN_DIR := $(BASE_PATH)/$(TARGET_BUILD_STAGE2)/bin +STAGE_2_LIB_DIR := $(BASE_PATH)/$(TARGET_BUILD_STAGE2)/lib + +# toggleable defaults +COMPILER_RT_USE_BUILTINS_LIBRARY := ON +LIBCXX_EXCEPTIONS := ON +LIBCXX_USE_COMPILER_RT := ON ifneq (,$(filter $(DEB_HOST_ARCH),sparc sparc64)) -CMAKE_EXTRA += -DLLVM_PARALLEL_LINK_JOBS=4 +STAGE_1_CMAKE_EXTRA += -DLLVM_PARALLEL_LINK_JOBS=4 endif - ifneq (,$(filter $(DEB_HOST_ARCH),i386 armel mipsel powerpc powerpcspe riscv64)) -ifneq (,$(filter $(DEB_HOST_ARCH),armel mipsel powerpc riscv64)) ++ifneq (,$(filter $(DEB_HOST_ARCH),i386 armel armhf mipsel powerpc powerpcspe riscv64)) # For some reason, in the stage2 build, when clang is used to compile -# itself. The atomic detection is failing on armel and riscv64. Forcing the inclusion everywhere. +# itself. The atomic detection is failing on armel and riscv64. Forcing the inclusion +# everywhere and in all stages LDFLAGS_EXTRA += -latomic endif @@@ -126,31 -96,21 +126,31 @@@ export CXX=g++-$(GCC_VERSION opt_flags = -O2 -DNDEBUG -g1 ifneq (,$(findstring $(DEB_HOST_ARCH),armel)) - opt_flags += -marm - # 3.8 fails to build, disable the compiler_rt builtins - # See http://lists.llvm.org/pipermail/llvm-dev/2016-May/099761.html - CMAKE_EXTRA += -DCOMPILER_RT_BUILD_BUILTINS=OFF - # Check for ancient libstdc++ fails due to atomics usage - CMAKE_EXTRA_LIBCXX += -DLLVM_COMPILER_CHECKED=ON - # Prevent clang from getting a > v4t default - # See bug #868779 - CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=arm-linux-gnueabi + STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=arm-linux-gnueabi + STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON +# align arch profile with debian baseline +# https://wiki.debian.org/ArmEabiPort + CFLAGS_EXTRA += -march=armv5t + CXXFLAGS_EXTRA += -march=armv5t +# disable compiler-rt builtins (not supported for baseline armel arch: armv5t) +# See http://lists.llvm.org/pipermail/llvm-dev/2016-May/099761.html + STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_BUILD_BUILTINS=OFF + COMPILER_RT_USE_BUILTINS_LIBRARY := OFF + LIBCXX_USE_COMPILER_RT := OFF endif - ifneq (,$(findstring $(DEB_HOST_ARCH),armhf)) -# avoid an issue with openmp on armhf - CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=armv6k-unknown-linux-gnueabihf + STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=arm-linux-gnueabihf + STAGE_ALL_CMAKE_EXTRA += -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON +# align arch profile with debian baseline +# https://wiki.debian.org/ArmHardFloatPort#Minimum_CPU_.26_FPU - CFLAGS_EXTRA += -march=armv7-a -mfpu=vfpv3-d16 - CXXFLAGS_EXTRA += -march=armv7-a -mfpu=vfpv3-d16 ++ CFLAGS_EXTRA += -march=armv6 -mfpu=vfpv2 ++ CXXFLAGS_EXTRA += -march=armv6 -mfpu=vfpv2 +endif + +ifneq (,$(filter $(DEB_HOST_ARCH),i386)) +# Sometimes, i386 needs help with the triple + STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=i386-linux-gnu endif ifneq (,$(filter $(DEB_HOST_ARCH),mips64el)) @@@ -388,11 -310,15 +388,17 @@@ preconfigure @echo "DISTRO=$(DISTRO)" @echo "GCC_VERSION=$(GCC_VERSION)" @echo "PROJECTS=$(PROJECTS_LIST)" + @echo "RUNTIMES=$(RUNTIMES_LIST)" @echo "LLVM_VERSION=$(LLVM_VERSION)" @echo "LLVM_VERSION_FULL=$(LLVM_VERSION_FULL)" + @echo "LLVM_VERSION_SNAPSHOT=$(LLVM_VERSION_SNAPSHOT)" + # add executable flag to script we added as part of triplet hack + # --plugwash + chmod 755 llvm/cmake/config.guess.hack + # also make sure config.guess is executable + chmod 755 llvm/cmake/config.guess + for f in debian/*.in; do \ f2=$$(echo $$f | sed 's/\.in$$//;s/X\.Y/$(LLVM_VERSION)/'); \ echo "$$f => $$f2"; \ @@@ -998,7 -899,20 +1005,20 @@@ override_dh_auto_clean rm -f $(CURDIR)/utils/vim/llvm-$(LLVM_VERSION).vim $(CURDIR)/utils/vim/tablegen-$(LLVM_VERSION).vim rm -f $(CURDIR)/clang/tools/clang-format/clang-format-diff-$(LLVM_VERSION) rm -f $(CURDIR)/clang/tools/clang-format/clang-format-$(LLVM_VERSION).py - rm -rf libcxx/build libcxxabi/build + rm -rf libcxx/build libcxxabi/build libclc/build + rm -f `find . -name '*.pyc'` + rm -rf debian/usr + rm -rf clang/tools/*-3.9 + rm -f `find . -name '*3.9.vim'` + rm -f clang/tools/scan-build/man/scan-build-3.9.1 utils/vim/llvm-3.9-vimrc + rm -f debian/*.install + rm -f clang/tools/scan-view-7.0/share/FileRadar.scpt clang/tools/scan-view-7.0/share/bugcatcher.ico + rm -f `cat debian/morecraptoremove` + rm -rf debian/man + rm -f debian/*.links debian/c*.lintian-overrides debian/l*.lintian-overrides debian/*.META debian/*.dirs debian/*.docs debian/*.symbols debian/*.postinst debian/*.manpages debian/*.examples debian/*.binfmt debian/*.prerm + -rmdir clang/include/clang/Debian/ + -rmdir lldb/docs/doc/ + chmod 644 llvm/cmake/config.guess.hack if test -f lld/docs/ld.lld-$(LLVM_VERSION).1; then \ mv lld/docs/ld.lld-$(LLVM_VERSION).1 lld/docs/ld.lld.1; \ fi