1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-21 09:40:28 +02:00
Commit Graph

375 Commits

Author SHA1 Message Date
Greg Hogan
364e883298 gnu: Remove #:test-target argument.
* gnu/packages/astronomy.scm (libsep),
* gnu/packages/bioinformatics.scm (megahit),
* gnu/packages/bittorrent.scm (qbittorrent),
* gnu/packages/calendar.scm (date),
* gnu/packages/check.scm (klee, trompeloeil),
* gnu/packages/compression.scm (zziplib),
* gnu/packages/cpp.scm (immer, lager, zug),
* gnu/packages/databases.scm (timescaledb),
* gnu/packages/emulators.scm (dolphin-emu),
* gnu/packages/fpga.scm (systemc),
* gnu/packages/game-development.scm (box2d),
* gnu/packages/games.scm (megaglest, openclonk, teeworld),
* gnu/packages/glib.scm (sdbus-c++),
* gnu/packages/gnucash.scm (gnucash),
* gnu/packages/graph.scm (igraph),
* gnu/packages/image.scm (exiv2),
* gnu/packages/inkscape.scm (inkscape),
* gnu/packages/instrumentation.scm (yactfr),
* gnu/packages/kde-multimedia.scm (elisa),
* gnu/packages/linux.scm (falcosecurity-libs),
* gnu/packages/llvm.scm (libcxx, libomp-15),
* gnu/packages/machine-learning.scm (ctranslate2, tvm),
* gnu/packages/maths.scm (blitz),
* gnu/packages/messaging.scm (libphonenumber),
* gnu/packages/music.scm (clementine, libdiscid, opustags, strawberry),
* gnu/packages/opencog.scm (atomspace, attention, cogserver, cogutil,
opencog),
* gnu/packages/python-xyz.scm (pybind11)
* gnu/packages/radio.scm (libfec, libcorrect),
* gnu/packages/serialization.scm (qtcsv),
* gnu/packages/shells.scm (fish),
* gnu/packages/tls.scm (aws-lc),
* gnu/packages/web.scm (wabt),
* gnu/packages/vulkan.com (spirv-llvm-translator)
[arguments]: Move #:test-target to ...
<#:phases>: ... 'check phase.

* gnu/packages/algebra.scm (xtensor),
* gnu/packages/astronomy (stellarium),
* gnu/packages/bioinformatics.scm (libsbml),
* gnu/packages/chemistry.scm (openbabel),
* gnu/packages/cpp.scm (xsimd, xtl),
* gnu/packages/documentation.scm (doxygen),
* gnu/packages/lua.scm (selene),
* gnu/packages/libftdi.scm (libftdi),
* gnu/packages/llvm.scm (cling, libomp@12, libomp@13),
* gnu/packages/hyperledger.scm (hyperledger-iroha),
* gnu/packages/markup.scm (cmark, cmark-gfm),
* gnu/packages/maths.scm (cryptominisat, double-conversion),
* gnu/packages/mp3.scm (chromaprint),
* gnu/packages/qt.scm (qtpromise)
* gnu/packages/rdf.scm (clucene),
* gnu/packages/sync.scm (lsyncd)
[arguments}: Remove #:test-target.

* gnu/packages/engineering.scm (libfive),
* gnu/packages/game-development.scm (box2d-3)
[arguments]: Remove #:test-target and disable tests.

Change-Id: I0a82091df1789980bbbac0c334b6f993c36f412a
2025-08-04 04:10:32 +00:00
Greg Hogan
ce1c47ed9d gnu: Disable tests.
* gnu/packages/algebra.scm (fftw-cmake, eigen-benchmarks),
* gnu/packages/android.scm (android-googletest),
* gnu/packages/check.scm (googletest, snitch),
* gnu/packages/cpp.scm (cpp-utilities, kokkos-kernels,
nativefiledialog-extended, toml11),
* gnu/packages/compression.scm (libcbor),
* gnu/packages/databases.scm (duckdb),
* gnu/packages/datastructures.scm (sdsl-lite),
* gnu/packages/education.scm (kqtquickcharts, ktouch),
* gnu/packages/emacs-xyz.scm (emacs-irony-mode-server),
* gnu/packages/engineering.scm (manifold, solvespace),
* gnu/packages/fcitx5.scm (fcitx5-configtool),
* gnu/packages/games.scm (jstest-gtk),
* gnu/packages/geo.scm (libspatialindex),
* gnu/packages/glib.scm (cppgir),
* gnu/packages/gnome.scm (evolution),
* gnu/packages/graphics.scm (openvdb),
* gnu/packages/kde.scm (kalgebra, kcachegrind, kcolorchooser, kdf,
kdegraphics-mobipocket, kio-zeroconf, kolourpaint, kompare, ksanecore,
kseexpr, ktimer, libkexiv2, libksane, partitionmanager),
* gnu/packages/kde-frameworks.scm (kactivities, kdnssd, kdeclarative,
kded, kglobalaccel, kgraphviewer, kidletime, kinit, kjobwidgets,
knotifications, knotifyconfig, kquickimageeditor, kstatusnotifieritem,
kwayland, libkdcraw, phonon-backend-gstreamer, phonon-backend-vlc,
plasma-activities, plasma-activities-stats),
* gnu/packages/kde-games.scm (bomber, bovo, granatier, kajongg, kapman,
kblackbox, kbounrce, kbreakout, kdiamond, kfourinline, kgoldrunner,
kigo, killbots, kiriki, kjumpingcube, klines, kmahjongg, kmines,
knights, kolf, kollision, konquest, kreversi, ksirk, kspaceduel,
ksquares, ksudoku, ktuberling, kubrick, libkmahjongg, lskat, palapeli),
* gnu/packages/kde-internet.scm (choqok, krdc),
* gnu/packages/kde-multimedia.scm (audiocd-kio, dragon),
* gnu/packages/kde-pim.scm (akonadi-import-wizard, ffmpegthumbs, haruna,
kaccounts-integration, kaccounts-providers, kaddressbook, kaffeine,
kasts, kontactinterface, libkcompactdisc),
* gnu/packages/kde-plasma.scm (bluedevil, breeze, breeze-qt5, calindori,
kactivitymanagerd, kde-gtk-config, kgamma, kmenuedit, kongress, krdp,
ksshaskpass, kwrited, layer-shell-qt, milou, mpvqt, ocean-sound-theme,
oxygen-sounds, plasma-mobile-sounds,, plasma-nano, plasma-pass,
plasma-phonebook, plasma-systemmonitor, plasma-vault, plasma-welcome,
lasma-workspace-wallpapers, polkit-kde-agent, print-manager,
qqc2-breeze-style),
* gnu/packages/kde-systemtools.scm (dolphin-plugins, krfb,
kwalletmanager, yakuake),
* gnu/packages/kde-utils.scm (atelier, fielding, isoimagewriter, kamera,
kbackup, kcharselect, kdialog, keurocalc, kfind, kirogi, kmag,
kmousetool, kmouth, kontrast, krusader, kxstitch, libatcore, smb4k,
sweeper),
* gnu/packages/llvm.scm (lldb),
* gnu/packages/maths.scm (gklib, mcrl2, mcrl2-minimal),
* gnu/packages/messaging.scm (mosquitto, znc),
* gnu/packages/music.scm (hydrogen),
* gnu/packages/pdf.scm (podofo, podofo-0.9),
* gnu/packages/potassco.scm (clingo, clingcon),
* gnu/packages/qt.scm (dotherside, kddockwidgets, qttools),
* gnu/packages/radio.scm (ggmorse, gr-iqbal, gr-osmosdr, inspectrum),
* gnu/packages/serialization.scm (jsoncpp-for-tensorflow),
* gnu/packages/sdl.scm (sdl3-gfx),
* gnu/packages/telephony.scm (baresip, baresip-libre),
* gnu/packages/textutils.scm (opencc),
* gnu/packages/video.scm (libopenshot, obs),
* gnu/packages/vim.scm (neovim),
* gnu/packages/web.scm (binaryen, civetweb, yajl)
[arguments]: Disable tests.

Change-Id: I56b50f14e4e5861dc69922cc2e8ee030e401a2d5
2025-08-04 04:10:18 +00:00
Greg Hogan
8ecb6052ab gnu: llvm: Fix tests.
* gnu/packages/llvm.scm (clang-from-llvm)[arguments]: Set #:tests? to
disabled.
(make-llvm, llvm-14)[arguments]
<#:tests?>: Disable for target-x86-32.
<#:phases>: Replace 'check phase to run tests.
(llvm-14)[native-inputs]: Add which.
(llvm-13)[arguments]<#:tests?>: Disable for target-x86-32.
(llvm-12)[arguments]<#:tests>: Disable tests.
<#:phases>: Add 'remove-failing-tests phase.
(llvm-6)[arguments]<#:phases>: ... and remove it.
* gnu/packages/patches/llvm-13-gcc-14.patch: Patch test file.
(llvm-3.9.1)[arguments]: Substitute from inherited package.

Change-Id: Ibf0e4a4b535838ff4ffd60d66bc0bee4314abde6
2025-08-04 03:21:51 +00:00
John Kehayias
d8dc8d856a gnu: rocm: Update to 6.4.2.
This commit updates all of the ROCm packages, including llvm-for-rocm, to the
latest version, 6.4.2.  An exception is roct-thunk-interface which is
deprecated upstream, but unclear what the replacement is.  It does build from
the last version, 6.2.4, which is what it is updated to here.

Several packages are now in the same repository as the ROCm LLVM fork, so they
share the same origin (repeated in (gnu packages rocm) from llvm-for-rocm
in (gnu packages llvm) as using package-source did not resolve).

* gnu/packages/llvm.scm (llvm-for-rocm): Update to 6.4.2.  Inherit from
llvm-19.
[source]: Update URL.
[arguments]: Correct spacing of configure-flags.
* gnu/packages/patches/rocclr-5.6.0-enable-gfx800.patch,
gnu/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch: Update.
* gnu/packages/patches/rocm-bandwidth-test-5.5.0-fix-includes.patch,
gnu/packages/patches/rocm-comgr-3.1.0-dependencies.patch: Remove files.
* gnu/packages/rocm.scm (%rocm-version): Update to 6.4.2.
(%rocm-llvm-origin): New variable.
(rocm-cmake)[home-page]: Update.
(rocm-device-libs)[source]: Use %rocm-llvm-origin.
[arguments]: Add build-type.  Add chdir phase.
[home-page]: Update.
(rocm-comgr)[source]: Use %rocm-llvm-origin.  Remove patch.
[arguments]: Add build-type.  Rename chdir phase to prepare-to build, setting
ROCM_PATH.
[inputs]: Move llvm-for-rocm from here ...
[native-inputs]: ... to here.  Add python.
[home-page]: Update.
(roct-thunk-interface): Update to 6.2.4.
[source, home-page]: Update URL.
(rocr-runtime)[source]: Update URL.
[arguments]: Add build-type.  Update and simplify add-rocm-device-lib-path
phase.
[inputs]: Change libelf to libelf-shared.
[home-page]: Update.
(rocclr-src): Remove variable.
(rocm-opencl-runtime)[home-page]: Update.
[source]{patches}: Add patch (that was in rocclr-src before).
[arguments]: Add build-type.  Update configure-flags.  Add no-os-release
phase.
(rocminfo)[source, home-page]: Update URL.
(rocm-bandwidth-test)[source]: Update URL.  Remove patch.
[home-page]: Update.

* gnu/local.mk (dist_patch_DATA): Remove patches.

Change-Id: I2157255a9546110ac683c12c131a330402e2fd93
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
2025-08-03 16:40:08 +02:00
Andreas Enge
299794d028 gnu: llvm: Fix build with gcc@14.
* gnu/packages/patches/llvm-10-missing-include.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register patch.
* gnu/packages/llvm.scm (llvm-10, llvm-11)[origin]: Apply patch.

Co-authored-by: tobtoht
Change-Id: Id5f7aac3c2dc1193adc47b7472534c0269a4255f
2025-07-18 20:17:53 +02:00
宋文武
d53fc8614e gnu: Add lld-as-ld-wrapper-18.
* gnu/packages/llvm.scm (lld-as-ld-wrapper-18): New variable.

Change-Id: I63438c963f5e4b5e74649c6bd0ec4ee643635c71
2025-07-18 20:17:40 +02:00
Zheng Junjie
71d6644b18 gnu: clang-runtime-16: build with gcc-12.
Fixes: guix/guix#708

* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use gcc-12
for version 16.

Change-Id: I1034c720c92052a3283002c4d637e9527c03fe87
2025-07-18 20:17:36 +02:00
Janneke Nieuwenhuizen
22ca384a59 gnu: clang-runtime-19: Build with gcc-14.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Leave
unaltered for version >= 19.

Change-Id: I85e7aa39918b545eca43478cffa626e533183238
2025-07-18 20:17:26 +02:00
Janneke Nieuwenhuizen
2036828b80 gnu: clang-runtime-17: Build with gcc-13.
Avoid

    /tmp/guix-build-clang-runtime-17.0.6.drv-0/source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__filesystem/path.h:623:30: error: use of built-in trait '__remove_pointer(typename std::__Fuzzer::decay<_Tp>::type)' in function signature; use library traits instead
      623 |   _EnableIfPathable<_Source> append(const _Source& __src) {
          |                              ^~~~~~

by using gcc-13.

* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use gcc-13
for version 17.

Change-Id: I0f815e178ea2f936e680075b1153285cf920b26e
2025-07-18 20:17:26 +02:00
Janneke Nieuwenhuizen
7c1c446dee gnu: clang-runtime-18: Build with gcc-13.
Avoid

    In file included from /tmp/guix-build-clang-runtime-18.1.8.drv-0/source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__exception/nested_exception.h:18,
                     from /tmp/guix-build-clang-runtime-18.1.8.drv-0/source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/exception:83,
                     from /tmp/guix-build-clang-runtime-18.1.8.drv-0/source/libcxxabi/src/cxa_aux_runtime.cpp:13:
    /tmp/guix-build-clang-runtime-18.1.8.drv-0/source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__type_traits/is_convertible.h:28:77: error: there are no arguments to ‘__is_convertible’ that depend on a template parameter, so a declaration of ‘__is_convertible’ must be available [-fpermissive]
       28 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};

by using gcc-13.

* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use gcc-13
for version 18.

Change-Id: Ib01403665af7a8014e6da612bc6f31257e498d88
2025-07-18 20:17:26 +02:00
Janneke Nieuwenhuizen
c6540b08d1 gnu: clang-runtime-18: Build with gcc-12.
Avoid

    source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__filesystem/path.h:534:52: error: use of built-in trait ‘__remove_pointer(typename std::__Fuzzer::decay<_Tp>::type)’ in function signature; use library traits instead

by reverting back to gcc-12.

* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use gcc-12
for version 18.

Change-Id: Ib01403665af7a8014e6da612bc6f31257e498d88
2025-07-18 20:17:26 +02:00
Janneke Nieuwenhuizen
135875a86c gnu: clang-runtime: Remove gcc-12,13,14 from native-inputs.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use
llvm's native inputs unmodified.

Change-Id: Ib01403665af7a8014e6da612bc6f31257e498d88
2025-07-18 20:17:26 +02:00
Janneke Nieuwenhuizen
1658aeeae5 gnu: llvm-12: Fix build with gcc-14.
* gnu/packages/llvm.scm (llvm-12)[source]: Use llvm-13-gcc-14.patch.

Change-Id: I96056fde6c0817ecab45a82fb67666a4ad5147f1
2025-07-18 20:17:20 +02:00
Janneke Nieuwenhuizen
8136ff2d48 gnu: llvm-13: Fix build with gcc-14.
* gnu/packages/patches/llvm-13-gcc-14.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/llvm.scm (llvm-13): Use it.

Change-Id: I3b9d3b894b0ae6ffe375d3e22f4f4a07d81a77c5
2025-07-18 20:17:12 +02:00
fanquake
2dcad6511a gnu: LLVM, Clang, libomp, lld: Update to 20.1.8.
* gnu/packages/llvm.scm (llvm-20, clang-20, clang-runtime-20,
libomp-20, lld-20): Update to 20.1.8.

Signed-off-by: Greg Hogan <code@greghogan.com>
2025-07-09 16:25:03 +00:00
Zheng Junjie
5c53a53c70 gnu: LLVM, Clang, libomp, lld: Update to 20.1.7.
* gnu/packages/llvm.scm (llvm-20, clang-20, clang-runtime-20,
libomp-20, lld-20): Update to 20.1.7.

Change-Id: I69e8ceb004230a8e0cab0e3dd0937daff035b901
2025-06-21 13:15:14 +08:00
Zheng Junjie
1e36162f48 gnu: LLVM, Clang, libomp, lld: Update to 20.1.6.
* gnu/packages/llvm.scm (llvm-20, clang-20, clang-runtime-20,
libomp-20, lld-20): Update to 20.1.6.

Change-Id: I3df99f15dda21db68de36476d4c940c3f35ad073
2025-06-21 13:15:12 +08:00
Zheng Junjie
82d0ad2554 gnu: LLVM, Clang, libomp, lld: Update to 20.1.5.
* gnu/packages/llvm.scm (llvm-20, clang-20, clang-runtime-20,
libomp-20, lld-20): Update to 20.1.5.

Change-Id: I52765dd0341457616b2afa5197c2f7c4910a5a63
2025-05-31 14:33:37 +08:00
Greg Hogan
cc008bdad2 gnu: LLVM, Clang, libomp, lld: Update to 20.1.4.
* gnu/packages/llvm.scm (llvm-20, clang-20, clang-runtime-20,
libomp-20, lld-20): Update to 20.1.4.

Change-Id: I3d0561b2e8e76de20828d75b4ebe985abb7755f1
Signed-off-by: Zheng Junjie <z572@z572.online>
2025-05-10 01:26:38 +08:00
Greg Hogan
64ac509eb2 gnu: lldb: Update to 20.1.3.
* gnu/packages/llvm.scm (lldb): Update to 20.1.3.
[inputs]: Change from LLVM-17 and CLANG-17 to LLVM-20 and CLANG-20.

Change-Id: I95d0595315ec319d523046a582cc789de2f4d05b
Signed-off-by: Zheng Junjie <z572@z572.online>
2025-05-08 13:23:30 +08:00
Maxim Cournoyer
9459391739 gnu: libcxx: Fix cross-compilation build.
* gnu/packages/llvm.scm (libcxx) [arguments] <#:test-target>: New argument.
<#:tests?>: Add explanatory comment.
<#:implicit-inputs?>: Set to #f.
<#:phases>: Remove adjust-CPLUS_INCLUDE_PATH.
[native-inputs]: Explicitly provide standard inputs, filtering out gcc.
Remove extraneous llvm and libunwind-headers.  Replace python with
python-minimal.

Change-Id: I8cbc73ef90dce0a57bf2f8198c3176932bf24185
Reviewed-by: Greg Hogan <code@greghogan.com>
2025-05-02 09:53:54 +09:00
Greg Hogan
c3ef65cd0b gnu: LLVM, Clang, libomp, lld: Update to 20.1.3.
* gnu/packages/llvm.scm (llvm-20, clang-20, clang-runtime-20,
libomp-20, lld-20): Update to 20.1.3.

Change-Id: Ibec9257a662154ac82e3c41110a16df695ddac5b
Signed-off-by: Christopher Baines <mail@cbaines.net>
2025-04-28 08:09:37 +01:00
Ricardo Wurmus
1e73912d34 gnu: make-llvm: Remove dynamic linker cache phase also with version 15.0.
On i686-linux the 'make-dynamic-linker-cache fails also when building llvm@15.

* gnu/packages/llvm.scm (make-llvm)[arguments]: Remove
'make-dynamic-linker-cache phase on i686-linux also when version is 15.0.

Change-Id: Iedbe8ce684aae5d8dc07e3c11e696e1b425b9652
2025-04-16 11:46:18 +02:00
Zheng Junjie
09e12dfe46 gnu: LLVM, Clang, libomp, lld: Update to 20.1.2.
* gnu/packages/llvm.scm (llvm-20, clang-20, clang-runtime-20, libomp-20, lld-20): Update to 20.1.2.

Change-Id: Ia7fa3bc681a57c13b863ec66a206236a6f0a43b3
Signed-off-by: Zheng Junjie <z572@z572.online>
2025-04-15 16:24:47 +08:00
Zheng Junjie
c66df8fab3 gnu: llvm-20: Update to 20.1.1.
* gnu/packages/llvm.scm (llvm-20, clang-runtime-20, clang-20, libomp-20):
(clang-toolchain-20, lld-20): Update to 20.1.1.

Change-Id: I3ea496420a78595c0f79d69e0b239aa5dc5fb3f0
2025-03-22 14:29:07 +08:00
Zheng Junjie
930c48bd2b gnu: Add lld-20.
* gnu/packages/llvm.scm (lld-20): New variable.

Change-Id: I98ac3519f83979b5d31e8d286916f5e43e0d329e
2025-03-11 23:35:30 +08:00
Zheng Junjie
e028858660 gnu: Add llvm-20.
* gnu/packages/llvm.scm (%llvm-monorepo-hashes): Add entry for llvm-20.
(%llvm-patches): Add entry for llvm-20.
(llvm-20, clang-runtime-20, clang-20, libomp-20, clang-toolchain-20):
New variables.

Change-Id: Ia49a4829f73f17dd78933838470ca70241927102
2025-03-07 19:17:28 +08:00
Zheng Junjie
9fccb66bb4 gnu: llvm: Support loongarch64.
* gnu/packages/llvm.scm (system->llvm-target-arch): Add loongarch64 case.

Change-Id: I5378063130df4194048638d352b93674a30d47a9
2025-02-13 13:49:06 +08:00
Hikari
2877c75dc5 gnu: libcxx: Update to 19.1.4.
* gnu/packages/llvm.scm (libcxx): Update to 19.1.4.
[native-inputs]: Replace clang with clang-19.  Add libuwind-headers.
[arguments]<#:configure-flags>: Add libunwind to LLVM_ENABLE_RUNTIMES.

Change-Id: I8235077727b6f54edddc60d9bf1c4c9de93b32fe
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2025-02-13 11:25:47 +08:00
Zheng Junjie
8d4e3ab874 gnu: LLVM, Clang, libomp, lld: Update to 19.1.7.
* gnu/packages/llvm.scm (llvm-19, clang-19, libomp-19, lld-19): Update to 19.1.7.

Change-Id: I9adc9762a19da487c9a70bb9cf089ff08de4da84
2025-02-06 22:57:57 +08:00
Ricardo Wurmus
1ac57fd579 gnu: python-llvmlite: Update to 0.44.0.
* gnu/packages/llvm.scm (python-llvmlite): Update to 0.44.0.
[arguments]: Use G-expression.
[inputs]: Update to latest upstream patches for LLVM; use llvm-15.

Change-Id: I294d67f368b9c0b1196514fadc3cecf5dd51fe3e
2025-01-29 15:52:36 +01:00
Efraim Flashner
5481a96417 gnu: llvm-19: Rewrite using make-llvm.
* gnu/packages/llvm.scm (llvm-19): Rewrite using make-llvm.

Change-Id: If22a7388f38c139cd35225b8afe8f812ff158673
2025-01-26 17:15:52 +02:00
Efraim Flashner
a88db75e2c gnu: llvm-17: Rewrite using make-llvm.
* gnu/packages/llvm.scm (make-llvm)[arguments]: Adjust configure-flags
for llvm version 17 and higher.
(llvm-17): Rewrite using make-llvm.

Change-Id: I3d3437333409c1882e41d1fcf8cda8e1cadd1786
2025-01-26 17:15:52 +02:00
Efraim Flashner
ba1d16b1b2 gnu: llvm-16: Rewrite using make-llvm.
* gnu/packages/llvm.scm (make-llvm)[arguments]: Adjust configure-flags
and phases for llvm version 16 and higher.
(llvm-16): Rewrite using make-llvm.

Change-Id: Ia79cd90d1219fc6210090a724595b3df04a097d7
2025-01-26 17:15:52 +02:00
Efraim Flashner
deb3562384 gnu: Add make-llvm procedure.
* gnu/packages/llvm.scm (make-llvm): New procedure.
(llvm-15): Rewrite using make-llvm.

Change-Id: I8f7d7bd5cf8bbe86af8f4a75bf8aec09074c07dc
2025-01-26 17:15:52 +02:00
Efraim Flashner
b821b3bedc gnu: llvm-19: Fix cross-building.
* gnu/packages/llvm.scm (llvm-19)[arguments]: When cross-building use an
updated set of configure-flags.

Change-Id: If29af878c3941aa994850e55c00cd818aab61f49
2025-01-26 17:15:52 +02:00
Efraim Flashner
2d1fda2ca9 gnu: llvm-17: Fix cross-building.
* gnu/packages/llvm.scm (llvm-17)[arguments]: When cross-building use an
updated set of configure-flags.

Change-Id: Icbb51b26de24818532c2f0f8e4cf4c4ff0664092
2025-01-26 17:15:52 +02:00
Efraim Flashner
8ff7139d6e gnu: llvm-16: Fix cross-building.
* gnu/packages/llvm.scm (llvm-16)[arguments]: When cross-building use an
updated set of configure-flags.

Change-Id: I1a09c3cb0a7a1104ab0704234a48487f1f5e82a7
2025-01-26 17:15:52 +02:00
Efraim Flashner
259a5085fb gnu: llvm-18: Fix cross-building.
* gnu/packages/llvm.scm (llvm-18)[arguments]: When cross-building use an
updated set of configure-flags.

Change-Id: Ibe6a7798288c3899857c1ae2c94984b5a74fbbee
2025-01-26 17:15:48 +02:00
Ricardo Wurmus
4e98ed826a gnu: wllvm: Add missing inputs.
* gnu/packages/llvm.scm (wllvm)[native-inputs]: Add python-setuptools and
python-wheel.

Change-Id: I080f132763607f7bc5f4609c993bd2a067cd9be4
2025-01-20 21:37:59 +01:00
Ricardo Wurmus
1318aa10aa gnu: python-llvmlite: Update to 0.42.0.
* gnu/packages/llvm.scm (python-llvmlite): Update to 0.42.0; inherit from
llvm-14.
[build-system]: Use pyproject-build-system.
[native-inputs]: Add python-setuptools and python-wheel.
[inputs]: Update patches.

Change-Id: I4c1c5741a31af49912fc42ebe2d6784c326e7d41
2024-12-15 19:54:08 +01:00
Zheng Junjie
9ec2ee8840 gnu: LLVM, Clang, libomp, lld: Update to 19.1.4.
* gnu/packages/llvm.scm (llvm-19, clang-19, libomp-19, lld-19): Update to 19.1.4.

Change-Id: I59ab5d74ebaac2ba1cc311ceb8534fde1b1d179c
2024-11-24 09:00:37 +08:00
dan
2d1fa4edd3 gnu: Add lld-19.
* gnu/packages/llvm.scm (lld-19): New variable.

Change-Id: I8d24e762fc7837f5d3ade91801c3ffc0a5cb84a9
Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
2024-11-24 09:00:37 +08:00
dan
c6beb882d8 gnu: Add llvm-19.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: When
building clang-runtime-19 or newer use gcc-14.
(clang-from-llvm)[#:configure-flags]: When building clang-19 or newer, pass in
USE_DEPRECATED_GCC_INSTALL_PREFIX.
(%llvm-monorepo-hashes): Add entry for llvm-19.
(llvm-19, clang-runtime-19, clang-19, libomp-19, clang-toolchain-19): New
variables.

Change-Id: I55630c3ecd2e6caa4237f28ac9f41726ed09eec4
Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
2024-11-24 09:00:26 +08:00
Nicolas Graves
351f1a0504 gnu: clang-runtime: Fix build for versions 10 and 11.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[inputs]: Add
libxcrypt for versions 10 and 11.
2024-11-20 19:00:02 +08:00
John Kehayias
edf097aad5 gnu: llvm-for-mesa: Build all targets.
This change is needed for updating mesa to 24.2.1.  Otherwise, mesa fails to
build.  For example, linking intel_clc fails with errors of libclang-cpp.so
having undefined references to various LLVM targets.

It is possible that just some LLVM targets could be built or a modified
version of the clang input for mesa (now required) could be used to try to
reduce the closure size as before.

* gnu/packages/llvm.scm (llvm-for-mesa)[arguments]: Don't set the
LLVM_TARGETS_TO_BUILD configure flag.  Also, don't remove it from the
inherited configure-flags.  Fix indentation.

Change-Id: I4a2b7239e6ea77b0d3bce10bdf945691faa84994
2024-11-05 11:56:28 -05:00
John Kehayias
6ebb5ecafc gnu: llvm-for-mesa: Update to llvm-18.
* gnu/packages/llvm.scm (llvm-for-mesa): Update to llvm-18.
* gnu/packages/gl.scm (mesa)[inputs]: Always use llvm-for-mesa (remove llvm-18
for aarch64 to use llvm-for-mesa).
(mesa-opencl)[native-inputs]: Remove clang-15.  Add clang-18.

Change-Id: I767d40d62a827864d3d109c44f82a43302875eb8
2024-11-05 11:56:26 -05:00
Maxim Cournoyer
ab424da401 gnu: cling: Reduce closure by 236 MiB.
This is accomplished by building LLVM only for the host target.

* gnu/packages/llvm.scm (llvm-cling) [configure-flags]: Add
'-DLLVM_TARGETS_TO_BUILD=host;NVPTX'.

Cover-letter:
Update cling to 1.1 and wrap with GCC include paths
This series does two things:

1. Update the cling package and its related inputs
2. Fix cling crashing when wrong or missing GCC includes were not provided.

Cling is built to use the specific GCC version it knows from at build time;
the headers available should match that version.  Wrapping cling with the
gcc-toolchain ones ensures it works correctly out of the box, without the user
having to know to manually match the right GCC (such as in 'guix shell cling
gcc-toolchain@11').
END

Change-Id: Ib24d3b692070e6de9ad4aa558918786d9e25379d
2024-10-07 01:20:22 +09:00
Maxim Cournoyer
866fc620b3 gnu: cling: Update to 1.1.
* gnu/packages/llvm.scm (llvm-cling-base): New variable
(llvm-cling): Use it.  Update to version 16-20240621-02.
[source]: Delete patches.
(clang-cling-runtime): Base on clang-runtime-16.
[phases]: Delete change-directory phase.
(clang-cling): Base on clang-16.
[phases]: Delete change-directory and delete-static-libraries phases (the
later would cause CMake to fail due to baking the static targets in).
(cling): Update to 1.1.
[source]: Delete patches.
[arguments] <#:tests?>: Reference upstream discussion in comment.
[phases] <patch-paths>: Adjust file name of clang lib directory.
<set-CLANG>: New phase.
[native-inputs]: Add clang-cling, used by the test suite.
* gnu/packages/patches/clang-cling-13-libc-search-path.patch
* gnu/packages/patches/clang-cling-13-remove-crypt-interceptors.patch
* gnu/packages/patches/clang-cling-runtime-13-glibc-2.36-compat.patch
* gnu/packages/patches/cling-use-shared-library.patch: Delete files.
* gnu/local.mk (dist_patch_DATA): De-register deleted files.

Change-Id: Ia8b58188ad9de2795a52289bd46ed15a8e722bfa
2024-10-07 01:20:22 +09:00
Maxim Cournoyer
41c8506330 gnu: cling: Wrap with GCC include paths.
(cling) [phases] <patch-paths>: Do not patch CLING_CXX_RLTV anymore; this is
now handled more correctly by wrapping the 'cling' executable.  Adjust file
name of clang lib directory.  <wrap-with-include-paths, fix-wrapper>: New
phases.
[inputs]: Add gcc-toolchain*, a delayed version of gcc-toolchain, used in the
wrap phase.

Fixes: https://issues.guix.gnu.org/57116
Change-Id: I29f9eee8f4a0e91eadc2eeff2a70d58db3ed0a26
2024-10-07 01:20:22 +09:00