summaryrefslogtreecommitdiff
path: root/gnu/packages/llvm.scm
AgeCommit message (Collapse)Author
2026-04-04gnu: llvm-rocm: Include native target in build.Roman Scherer
* gnu/packages/llvm.scm (make-llvm-rocm)[arguments]: Use system->llvm-target instead of hardcoded "X86" for LLVM_TARGETS_TO_BUILD, so that the native backend is always available. This fixes test failures on non-x86 hosts where llc cannot resolve the default triple. Change-Id: I2e94583452730c15fe5e24a39420289cdff70202 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #7472
2026-03-28gnu: clang-python-bindings: Fix build on python@3.12.Nicolas Graves
* gnu/packages/llvm.scm (clang-python-bindings)[native-inputs]: Add python-setuptools. Change-Id: I86c3820bfe25e75a26f74409d3ee7c98d4b55c37 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-03-20gnu: Reference the inherited inputs values.Ludovic Courtès
This commit was made by running this command: sed -e's/modify-inputs (package-\([a-z-]*\)inputs [a-zA-Z0-9-]\+)/modify-inputs \1inputs/g' -i gnu/packages/*.scm … and then reverting individual hunks where the change would trigger unbound variable warnings or other issues (such as ‘native-inputs’ is bound in the body of the ‘inputs’ field, but it refers to the ‘native-inputs’ thunk defined just above). Change-Id: I6d94819f2809313fa1fbefc61897502ee7d66fab
2026-03-20gnu: Reference the inherited ‘arguments’ value.Ludovic Courtès
This commit was made by running this command: sed -e's/substitute-keyword-arguments (package-arguments [a-zA-Z0-9-]\+)/substitute-keyword-arguments arguments/g' -i gnu/packages/*.scm … and then: 1. reverting changes from ‘gnu/packages/rust.scm’ and ‘gnu/packages/java.scm’ since they would incur derivation changes and/or breakage; 2. reverting the change for ‘gcc-final’ in ‘gnu/packages/commencement.scm’; 3. reverting the change for ‘onnx-optimizer’, ‘openquest’, and ‘certbot’, which use ‘substitute-keyword-arguments’ for arguments that are not inherited (and thus ‘arguments’ would be unbound); 4. reverting the change for ‘insight-toolkit-legacy’ and ‘wine64-staging’ which make bogus assumptions about inherited arguments. Change-Id: I122a7cf517b6b63cae38944b5d33ade4b1f5a89c
2026-03-08gnu: llvm-18: Skip the tests on armhf-linux.Efraim Flashner
* gnu/packages/llvm.scm (llvm-18)[arguments]: Skip the tests when building for armhf-linux. Change-Id: Ia6f94e4ba911a2c56cc279b9136db4383daed698
2026-02-27gnu: Deprecate swig and swig-next in vafor of swig-4.0 and swig-4.4.Sharlatan Hellseher
This is a following up change after discussion in <https://codeberg.org/guix/guix/pulls/3701#issuecomment-11048648>. * gnu/packages/swig.scm (swig-4.0, swig-4.4): New variables. (swig, swig-next): Deprecate swig and swig-next in vafor of swig-4.0 and swig-4.4. * gnu/packages/accessibility.scm (libbraille) * gnu/packages/apparmor.scm (libapparmor) * gnu/packages/bioinformatics.scm (htseq, imp, libsbml) * gnu/packages/bootloaders.scm (dtc, u-boot) * gnu/packages/disk.scm (volume-key) * gnu/packages/dns.scm (ldns, unbound) * gnu/packages/electronics.scm (opensta, trilinos-serial-xyce, uhdm) * gnu/packages/embedded.scm (python-libmpsse) * gnu/packages/engineering.scm (freecad, kicad, meep, mpb) * gnu/packages/fabric-management.scm (ibutils) * gnu/packages/game-development.scm (python-pybox2d) * gnu/packages/games.scm (kiki) * gnu/packages/geo.scm (saga) * gnu/packages/gnome.scm (libratbag) * gnu/packages/gnucash.scm (gnucash) * gnu/packages/gnupg.scm (python-gpg) * gnu/packages/graphviz.scm (graphviz) * gnu/packages/guile-xyz.scm (guile-xapian) * gnu/packages/image.scm (mypaint) * gnu/packages/instrumentation.scm (babeltrace, lttng-tools) * gnu/packages/kodi.scm (kodi) * gnu/packages/libftdi.scm (libftdi) * gnu/packages/linux.scm (libnl) * gnu/packages/llvm.scm (lldb) * gnu/packages/machine-learning.scm (openmm, tensorflow-lite) * gnu/packages/maths.scm (nlopt) * gnu/packages/ncurses.scm (stfl) * gnu/packages/oneapi.scm (python-onetbb) * gnu/packages/pretty-print.scm (highlight) * gnu/packages/python-crypto.scm (python-m2crypto) * gnu/packages/python-graphics.scm (python-pivy) * gnu/packages/radio.scm (hamlib, soapysdr) * gnu/packages/security-token.scm (python-pyscard, python-yubikey-manager) * gnu/packages/selinux.scm (libselinux, libsemanage, python-setools) * gnu/packages/speech.scm (pocketsphinx) * gnu/packages/statistics.scm (python-openturns, r-spams) * gnu/packages/tbb.scm (python-tbb) * gnu/packages/version-control.scm (subversion) * gnu/packages/video.scm (libopenshot, mlt, obs) [native-inputs]: Remove swig; add swig-4.0. * gnu/packages/geo.scm (gdal) * gnu/packages/graph.scm (python-faiss) [inputs]: Remove swig; add swig-4.0. * gnu/packages/games.scm (fifengine): Update to 0.4.2. [inputs]: Remove swig; add swig-4.0. [native-inputs]: Likewise. * gnu/packages/image-processing.scm (insight-toolkit, simpleitk) * gnu/packages/pdf.scm (mupdf, python-pymupdf) [native-inputs]: Remove swig-next; add swig-4.4. Change-Id: I544bef0a0b1a81004596fad9f116610ef5cb52ae
2026-02-10gnu: Add rocmlir.David Elsing
* gnu/packages/llvm.scm (rocmlir): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-02-10gnu: Add rocm-toolchain.David Elsing
Adapted from the Guix-HPC channel (https://gitlab.inria.fr/guix-hpc/guix-hpc). * gnu/packages/llvm.scm (rocm-toolchain): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-02-10gnu: Add offload-rocm.David Elsing
* gnu/packages/llvm.scm (offload-rocm): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-02-10gnu: Add clang-rocm-toolchain.David Elsing
* gnu/packages/llvm.scm (clang-rocm-toolchain): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-02-10gnu: Add libomp-rocm.David Elsing
* gnu/packages/llvm.scm (libomp-rocm): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-02-10gnu: make-clang-rocm: Enable amdclang wrapper.David Elsing
* gnu/packages/llvm.scm (make-clang-rocm)[arguments]: Remove CLANG_ENABLE_AMDCLANG configure flag. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-02-10gnu: make-llvm-rocm: Do not use --disable-new-dtags by default.David Elsing
* gnu/packages/patches/clang-rocm-default-new-dtags.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/llvm.scm (make-llvm-rocm)[source]: Add the patch. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-02-10gnu: Add lld-wrapper-rocm.David Elsing
* gnu/packages/llvm.scm (lld-wrapper-rocm): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-02-10gnu: Update ROCm to 7.1.1David Elsing
* gnu/packages/llvm.scm (%rocm-llvm-version): Bump to 7.1.1. (make-llvm-rocm): Update hash. * gnu/package/rocm.scm (%rocm-version): Bump to 7.1.1. (%rocm-systems-origin): Update hash. (rocm-bandwidth-test): Update hash. (%e-smi-version-for-rocm): Bump to 4.2. (e-smi-for-ami-smi): Update hash. (amd-smi): Update to 26.2.0. [native-inputs]: Add pkg-config. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-02-07gnu: wllvm: Update to 1.3.1-0.948cdb8.Nicolas Graves
* gnu/packages/llvm.scm (wllvm): Update to 1.3.1-0.948cdb8. [arguments]<#:test-flags>: Ignore failing test. [native-inputs]: Add clang and procps. Change-Id: I61ace17965efa739235b2cb8c5946cd64d12a987 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2026-01-25gnu: clang-rocm: Add ‘compiler-amd-gpu-targets’ property.Ludovic Courtès
* gnu/packages/llvm.scm (%clang-rocm-supported-gpu-targets): New variable. (make-clang-rocm): Add ‘compiler-amd-gpu-targets’ property. Change-Id: I5ec21935db0deeb09483a65e63b7fda786d28d8f Signed-off-by: Ludovic Courtès <ludo@gnu.org> Signed-off-by: Rutherther <rutherther@ditigal.xyz>
2026-01-25gnu: Bump rocm to version 7.1.0Jean-Baptiste Note
* gnu/packages/llvm.scm (%rocm-llvm-version): New variable. (make-llvm-rocm): New procedure. (llvm-rocm): New variable. (make-clang-runtime-rocm): New procedure. (clang-runtime-rocm): New variable. (make-clang-rocm): New procedure. (clang-rocm): New variable. (rocm-device-libs): New variable. (rocm-comgr): New variable. (rocm-hipcc): New variable. (make-lld-rocm): New procedure. (lld-rocm): New variable. * gnu/packages/rocm.scm: Add perl to imports. (%rocm-version): Update to 7.1.0. (%rocm-systems-url, %rocm-systems-origin): New variables. (rocr-runtime): Use %rocm-systems-origin and update build. (rocm-opencl-runtime): Use %rocm-systems-origin and update build. (rocm-hip-runtime): New variable. (rocminfo): Use %rocm-systems-origin and update build. (%default-amdgpu-targets, %default-amdgpu-targets-property): New variables. (%amdgpu-targets): New syntax. (rocm-bandwidth-test): Update and add comprehensive build support. * gnu/local.mk: Add rocm-bandwidth-test patches. * gnu/packages/patches/rocm-bandwidth-test-fix-external-packages-search.patch, gnu/packages/patches/rocm-bandwidth-test-fix-hsa-include-file-lookup.patch, gnu/packages/patches/rocm-bandwidth-test-take-default-gpus-from-environment.patch: New files. * gnu/packages/patches/rocclr-5.6.0-enable-gfx800.patch, gnu/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch: Update patch paths. Change-Id: I43f162b9f8ab898e25d8ecbe4ea30be84a29eb0d Signed-off-by: Ludovic Courtès <ludo@gnu.org> Signed-off-by: Rutherther <rutherther@ditigal.xyz>
2026-01-25gnu: python-llvmlite: Update to 0.45.0.Sharlatan Hellseher
* gnu/packages/llvm.scm (python-llvmlite): Update to 0.45.0. [inputs]: Remove patches for llvm-15; add llvm-20. [native-inputs]: Add cmake-minimal. Change-Id: Icb1f55a64de6e580645e286dc6f7f10dfe985c01 Signed-off-by: Rutherther <rutherther@ditigal.xyz>
2026-01-22Merge branch 'version-1.5.0'Rutherther
Change-Id: Id73c0c74600a3da3373b3a37236b505af65bfe31
2026-01-14gnu: llvm-18: Skip tests on powerpc64le-linux.Efraim Flashner
* gnu/packages/llvm.scm (llvm-18)[arguments]: Adjust the tests flag to skip the tests on powerpc64le-linux. Change-Id: I2a1c25642b00b29f53be619b72eea27c005f2db8
2026-01-12gnu: python-clang: Fix tests, switch to pyproject-build-system.pinoaffe
* gnu/packages/llvm.scm (python-clang): Fix tests, switch to pyproject-build-system. Change-Id: I5c99e066e31eae12bb3c50471d8c0767790d6a16 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2026-01-01gnu: clang-python-bindings: Switch to pyproject.Sharlatan Hellseher
* gnu/packages/llvm.scm (clang-python-bindings): [build-system]: Switch to pyproject-build-system. [arguments] <phases>: Remove 'create-setup-py. Change-Id: Ib309578926fd3e87cdd68a97b27df0b4d721d3ee
2026-01-01gnu: LLVM, Clang, libomp, lld: Update to 21.1.8.Greg Hogan
* gnu/packages/llvm.scm (llvm-21, clang-21, clang-runtime-21, libomp-21, lld-21, lldb): Update to 21.1.8. Change-Id: I6f686d59d5ee95dc3ad28008a22a7b5bded824ac Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
2025-12-14gnu: swift-llvm: Enable assertions.Danny Milosavljevic
* gnu/packages/llvm.scm (swift-llvm)[arguments]{configure-flags}: Enable assertions. Closes: guix/guix#4015 Change-Id: I836898c21f4952e61886f237cba06d095b92402c
2025-12-05gnu: mlir: Install mlir-tblgenPhilippe Virouleau
Change-Id: I83d4566e0b861f14d023c1991fbae95c7c552d88 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-12-05gnu: Add MLIR 15.Philippe Virouleau
* gnu/packages/llvm.scm (mlir-15): New variable. Change-Id: Idf0d2e406b7705a8d7de0dbda66d358c64c00d66 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Modified-by: Ludovic Courtès <ludo@gnu.org>
2025-12-03Update Giacomo's email address.Giacomo Leidi
The change was automated via: git grep -l goodoldpaul@autistici.org | xargs sed -i 's/goodoldpaul@autistici.org/therewasa@fishinthecalculator.me/g' * .mailmap: New entry. Change-Id: I1629388334695d221647afe6a14faf61af5fe0d6 Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
2025-11-10gnu: LLVM, Clang, libomp, lld: Update to 21.1.5.Greg Hogan
* gnu/packages/llvm.scm (llvm-21, clang-21, clang-runtime-21, libomp-21, lld-21, lldb): Update to 21.1.5. Change-Id: Ice7b94f93d3fce4d8796acb56e8984eb324274c2
2025-11-02gnu: Update swift-llvm.Danny Milosavljevic
* gnu/packages/llvm.scm (swift-llvm-6.2): New variable. Change-Id: If136fc8d510926b79440753b8940e14649541d8e
2025-11-02gnu: Add swift-llvm.Danny Milosavljevic
* gnu/packages/llvm.scm (swift-llvm): New variable. * gnu/local.mk (dist_patch_DATA): Add swift-llvm-5.7.3-linux.patch. * gnu/packages/patches/swift-llvm-5.7.3-linux.patch: New file. Change-Id: Ifc456c68c8e1fc551b8a75ecfcda91813b8cacdc
2025-11-02gnu: clang-17: Fix build with gcc-14 on ARM.dan
* gnu/packages/patches/clang-17.0-fix-build-with-gcc-14-on-arm.patch: New file. * gnu/local.mk: Register it. * gnu/packages/llvm.scm (clang-from-llvm): Treat patches as additional patches when no hash provided. (clang-17): Apply the patch. Change-Id: I2c6580958c6d646703143872bbc59fd390e9cc95 Signed-off-by: Hilton Chain <hako@ultrarare.space>
2025-10-13gnu: Add include-what-you-use.Liam Hupfer
* gnu/packages/llvm.scm (include-what-you-use): New variable. Change-Id: Ie843e69eaf4fad6191363d16d46321f623c07670 Signed-off-by: Steve George <steve@futurile.net>
2025-10-05gnu: llvm-for-rocm: Update synopsis and description.Cayetano Santos
* gnu/packages/llvm.scm (llvm-for-rocm)[description]: Replace llvm-14 with llvm-19. [synopsis]: Replace llvm-14 with llvm-19. Closes: #3004 Change-Id: Ie0c0357a622826fc8b583c596db489dba2e9732e Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
2025-10-04gnu: lldb: Update to 21.1.1.Zheng Junjie
* gnu/packages/llvm.scm (lldb): Update to 21.1.1. [inputs]: Remove clang-20 and llvm-20; add clang-21 and llvm-21. Change-Id: I1fe1ce9760b937fd4732b9b98f5e9942bad64208
2025-10-04gnu: Add LLVM 21.Zheng Junjie
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: When building clang-runtime-21 or newer use gcc-15. (%llvm-monorepo-hashes): Add entry for llvm-21. (llvm-21, clang-runtime-21, clang-21, libomp-21, clang-toolchain-21, lld-21): New variables. Change-Id: I0bb32127c913fa567e1c4e2b5b1f0307d60f5e14
2025-09-25gnu: python-llvmlite: Fix tests.Sharlatan Hellseher
* gnu/packages/llvm.scm (python-llvmlite)[native-inputs]: Remove python-wheel; add python-pytest. Change-Id: Idd1b4757432a3194f7e01ad5106330d2a4f7b895
2025-09-24gnu: wllvm: Refer to binutils and file by path.Sören Tempel
Without these dependencies, wllvm cannot compile any code. * gnu/packages/llvm.scm (wllvm)[inputs]: Add binutils and file. [arguments]: Add 'fix-paths phase. Change-Id: I5727e55b889f8cebb1a8b20c5f1fce545b252e77 Signed-off-by: Andreas Enge <andreas@enge.fr>
2025-09-21gnu: Add mlir-19.Zheng Junjie
* gnu/packages/llvm.scm (mlir-19): New variable. Change-Id: I9808f173aa437ea98e61b37a22406a3679db60ff
2025-09-19gnu: Remove llvm-6.Andreas Enge
* gnu/packages/llvm.scm (llvm-6): Delete variable. Change-Id: I53839e5d7bfe560458628fb2c4c42bd6c2d0566d
2025-09-19gnu: Remove llvm-3.8.Andreas Enge
* gnu/packages/llvm.scm (llvm-3.8): Delete variable. * gnu/packages/patches/llvm-3.x.1-fix-build-with-gcc.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Unregister file. Fixes: guix/guix#2101 Change-Id: I71cee0723420fb7f928c0d1c747a3bf4424fa344
2025-09-19gnu: Remove llvm-3.5.Andreas Enge
* gnu/packages/llvm.scm (llvm-3.5): Delete variable. * gnu/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch: Delete file. * gnu/packages/llvm.scm (dist_patch_DATA): Unregister file. Fixes: guix/guix#2100 Change-Id: I60dffaa5eb7f662994daefa84cd49dac5243c4c4
2025-09-19gnu: Remove llvm-3.7.Andreas Enge
* gnu/packages/llvm.scm (llvm-3.7): Delete variable. Fixes: guix/guix#2099 Change-Id: I912b8ae8f33a63bad2becbdc1fbd5cf42e93f913
2025-09-19gnu: llvm-3.5: Remove inheritance from llvm-3.7.Andreas Enge
* gnu/packages/llvm.scm (llvm-3.5)[inherit]: Replace llvm-3.7 by llvm-6. [outputs, arguments]: Copy-paste from llvm-3.7. Change-Id: Ic1743867ad5eec6fd6d3a806ddc3ba9e3539ab11
2025-09-19gnu: Remove clang-3.7.Andreas Enge
* gnu/packages/llvm.scm (clang-3.7): Delete variable. * gnu/packages/patches/clang-3.5-libc-search-path.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Unregister file. Change-Id: Iacf6b9a8f7a70526ffadfdbd1a587d81fae1967f
2025-09-19gnu: Remove clang-runtime-3.7.Andreas Enge
* gnu/packages/llvm.scm (clang-runtime-3.7): Delete variable. * gnu/packages/patches/clang-3.5-libsanitizer-ustat-fix.patch, gnu/packages/patches/clang-runtime-3.7-fix-build-with-python3.patch, gnu/packages/patches/clang-runtime-3.8-libsanitizer-mode-field.patch, gnu/packages/patches/clang-runtime-asan-build-fixes.patch: Remove files. * gnu/local.mk (dist_patch_DATA): Unregister files. Change-Id: I848b09d29585217b0cc3d2f9ac1867e8ee5e853c
2025-09-18gnu: llvm-13: Skip tests on riscv64-linux.Efraim Flashner
* gnu/packages/llvm.scm (llvm-13)[arguments]: Skip the tests when building for riscv64-linux. Change-Id: If7e391e1ce51d93766c89bee1db590b9ab5f12ea
2025-09-18Reapply "Update Maxim's email address."Maxim Cournoyer
This reverts commit a7db92d9b389cbe565395523882c34c6eff2c21a, this time with the more careful command, to avoid a world rebuild: grep -rl --exclude-dir=build --exclude-dir=patches --exclude=ld-wrapper.in \ --exclude=sitecustomize.py --exclude=guix-emacs.el maxim.cournoyer@gmail.com | xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g' Change-Id: I0871f5cf9ace79e34e78e24154d0da6ea95a3a91
2025-09-18Revert "Update Maxim's email address."Maxim Cournoyer
This reverts commit d0d87a744d724b7e7d5ac013c586039652087bb3. Oops! This caused a world rebuild. Change-Id: I25fff644b2b61d0ee93d69b457b04c72b5b74d15
2025-09-18Update Maxim's email address.Maxim Cournoyer
The change was automated via: git grep -l maxim.cournoyer@gmail.com | xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g' * .mailmap: New entry. Change-Id: Iaa88b1e51c94159c49138fb43910badb990eb169