Commit graph

308 commits

Author SHA1 Message Date
Efraim Flashner
ab41f5ec1c
gnu: llvm-18: Fix building on i686-linux.
* gnu/packages/llvm.scm (llvm-18)[arguments]: When building for
i686-linux delete the 'make-dynamic-linker-cache phase.

Change-Id: Icbbbccf74ad39d4f8d0270cc213f978c487edb75
2024-06-30 09:17:31 +03:00
Efraim Flashner
48934f0c2f
gnu: llvm-17: Fix building on i686-linux.
* gnu/packages/llvm.scm (llvm-17)[arguments]: When building for
i686-linux delete the 'make-dynamic-linker-cache phase.

Change-Id: I0745d9b1bda47ad4ad10680234c9257215de1c4b
2024-06-30 09:16:50 +03:00
Efraim Flashner
fc15524d37
gnu: clang-15: Fix building on i686-linux.
* gnu/packages/llvm.scm (clang-from-llvm)[arguments]: When building for
i686-linux on clang 15 or newer delete the 'make-dynamic-linker-cache
phase.

Change-Id: I0c8c273ce8eca100a97a9a64a4524558acd7cfbd
2024-06-30 09:15:29 +03:00
Efraim Flashner
69f9a43c87
gnu: llvm-16: Fix building on i686-linux.
* gnu/packages/llvm.scm (llvm-16)[arguments]: Skip the
make-dynamic-linker-phase on i686-linux.

Change-Id: I38c134d246859d7fc6025e2ed1c3f29d845a7d82
2024-06-27 16:43:55 +03:00
Michael Ford
c99b1e2fc6
gnu: LLVM, Clang, libomp, lld: Update to 18.1.8.
* gnu/packages/llvm.scm (llvm-18, clang-18, libomp-18, lld-18): Update to
18.1.8.

Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
Change-Id: I76f93d6dce19f0e1a0b99393a5865369c49c4072
2024-06-27 21:01:49 +08:00
Michael Ford
d601e953a4
gnu: LLVM, Clang, libomp, lld: Update to 18.1.7.
* gnu/packages/llvm.scm (llvm-18, clang-18, libomp-18, lld-18): Update to
18.1.7.

Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
Change-Id: Ie1d2d00207848145c1b19e551b43f8e55465d2f0
2024-06-22 22:08:21 +08:00
Maxim Cournoyer
29a4514a34
gnu: cling: Update to 1.0.
* gnu/packages/llvm.scm (%cling-version): Delete variable.
(llvm-cling): Inherit from llvm-15 and update to version 13-20240318-01.
[source]: Update source URL.  Remove obsolete snippet.  Add patches field.
[outputs]: Delete field.
[arguments]: Likewise.
(clang-cling-runtime): Update to 13-20240318-01.  Inherit from
clang-runtime-13.  Use llvm-cling source.
[phases]: Use gexps.  Add change-directory phase.
(clang-cling): Update to 13-20240318-01.  Inherit from
clang-13.  Use llvm-cling source.
[arguments]: Use gexps.  Add change-directory phase.
(cling): Update to 1.0.
[source]: Update URL.
[phases] {patch-paths}: Adjust patching of the 'getResourceDir' variable.
* gnu/packages/patches/cling-use-shared-library.patch: Rebase patch.
* gnu/packages/patches/clang-cling-13-libc-search-path.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.

Change-Id: I5d1f2c4d36ca226116bc74c2578154f86413f9e9
2024-05-29 22:01:24 -04:00
Michael Ford
1fa1325c0b
gnu: LLVM, Clang, libomp, lld: Update to 18.1.6.
* gnu/packages/llvm.scm (llvm-18, clang-18, libomp-18, lld-18):
Update to 18.1.6.

Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
Change-Id: Ifd5ab99f4195c93e9b8d67aa26caead26c8dd5bc
2024-05-22 11:37:42 +08:00
fanquake
14176a289b
gnu: LLVM, Clang, libomp, lld: Update to 18.1.5.
* gnu/packages/llvm.scm (llvm-18, clang-18, libomp-18, lld-18):
Update to 18.1.5.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2024-05-19 12:50:23 +01:00
Zheng Junjie
06a5ff1a41
gnu: Add wllvm.
* gnu/packages/llvm.scm (wllvm): New variable.

Change-Id: Ibfb47b3a129954adf73721d25e95c64f69e985a1
Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
2024-04-24 09:43:06 +08:00
fanquake
837016fe33
gnu: LLVM, Clang, libomp, lld: Update to 18.1.4.
* gnu/packages/llvm.scm (llvm-18, clang-18, libomp-18, lld-18):
Update to 18.1.4.

Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
2024-04-23 15:22:09 +08:00
fanquake
17a6d20a42
gnu: Add lld-18.
* gnu/packages/llvm.scm (lld-18): New variable.

Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
2024-04-23 15:05:24 +08:00
Efraim Flashner
cffe067937
gnu: Add llvm-18.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: When
building clang-runtime-18 or newer use gcc-13.
(%llvm-monorepo-hashes): Add entry for llvm-18.
(%llvm-patches): Add entry for llvm-18.
(llvm-18, clang-runtime-18, clang-18, libomp-18, clang-toolchain-18):
New variables.
* gnu/packages/patches/clang-18.0-libc-search-path.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.

Change-Id: I4027065398300104c6a310187007448f5b2780c1
2024-03-26 17:44:15 +02:00
Efraim Flashner
4e26331a5e
gnu: llvm-17: Fix building on riscv64-linux.
* gnu/packages/llvm.scm (%llvm-patches): Add a patch for 17.0.6.
* gnu/packages/patches/clang-17.0-link-dsymutil-latomic.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.

Change-Id: I9dfd23d2f0fb10620c4aa73a6480151d6e6daa9a
2024-03-13 17:36:37 +02:00
Efraim Flashner
a3d2dde5b0
gnu: clang: Move compiler-cpu-architectures to llvm-meta.scm.
* gnu/packages/llvm.scm (clang-properties): Extract
compiler-cpu-architectures and move ...
* gnu/packages/llvm-meta.scm: ... to here.
* gnu/packages/zig.scm (zig-0.9, zig-0.10)[properties]: Use
clang-compiler-cpu-architectures.
* gnu/local.mk (GNU_SYSTEM_MODULES): Register new file.

Change-Id: Ie0bedbd6e2927eaa05024685cc66375ea278e4c2
2024-03-10 12:50:13 +02:00
Efraim Flashner
e8c9043183
gnu: clang-properties: Add micro-architecture support for powerpc64le.
* gnu/packages/llvm.scm (clang-properties): Add entry for powerpc64le.

Change-Id: I89f300922270a1f35aa08e73e62d90843bd902c8
2024-03-07 13:04:27 +02:00
Efraim Flashner
7fd57fdd83
gnu: clang-properties: Update x86_64 micro-architectures.
* gnu/packages/llvm.scm (clang-properties): Add entries on x86_64 for
versions 17, 16, 15, 13, 9 and remove entry for version 10.

Change-Id: I93149c30f011c6de8ff0cc2c2b6f0186540359cd
2024-03-07 13:04:27 +02:00
Greg Hogan
354de73fa4
gnu: lldb: Update to 17.0.6.
* gnu/packages/llvm.scm (lldb): Update to 17.0.6.
[inputs]: Change from LLVM-15 and CLANG-15 to LLVM-17 and CLANG-17.

Change-Id: Iad04ee722c81ecb223ea4d57d25ea57ca7df59a0
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2024-02-10 15:06:50 +00:00
Efraim Flashner
637b72e2b8
gnu: llvm-cling: Fix build.
This is a follow-up to 15ba54d0e9.

* gnu/packages/llvm.scm (llvm-cling)[arguments]: Use gexps for phases.

Change-Id: I12f048b1a6a350838572832ad33357046610b18d
2024-01-11 20:00:08 +02:00
Efraim Flashner
15ba54d0e9
gnu: llvm-12: Use gexps and simplify.
* gnu/packages/llvm.scm (llvm-12)[arguments]: Inherit from llvm-13.
Rewrite remaining new phase using gexps.  Remove trailing #t from
phases.
(llvm-9)[arguments]: Adjust accordingly.

Change-Id: I7ba4e9954b4e8766e9e072696ab55303c1642315
2024-01-11 19:21:30 +02:00
Zheng Junjie
53d9190efd
gnu: glew: Fix cross-compiling.
* gnu/packages/gl.scm (mesa)[native-inputs]: When cross-compiling, add
cmake-minimal-cross.
[arguments]: Adjust 'fix-cross-compiling to find llvm.
* gnu/packages/llvm.scm (llvm-for-mesa)
[arguments]<#:configure-flags>: When cross-compiling, set
-DBUILD_SHARED_LIBS:BOOL=TRUE and -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE,
remove -DLLVM_LINK_LLVM_DYLIB.*.
<#:phases>: When cross-compiling, remove the 'delete-static-libraries phase.

Change-Id: If10dec7695e62604e080230e10f2b8d7167f660b
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2024-01-09 10:19:42 +01:00
Efraim Flashner
f03029a00e
gnu: system->llvm-target-arch: Add avr target.
* gnu/packages/llvm.scm (system->llvm-target-arch): Add case for avr.

Change-Id: I5291d396ad513cfecdf8f0a6f799ea095fc8d994
2023-12-12 08:57:10 +02:00
Efraim Flashner
556aa31050
gnu: llvm-14: Fix building on powerpc-linux.
* gnu/packages/llvm.scm (llvm-14)[arguments]: When building for
powerpc-linux adjust the configure-flags to always link shared libraries
with -latomic.

Change-Id: If020528bf1717595b66e6e0826dbe7a0c1128322
2023-12-10 08:15:43 +02:00
Michael Ford
2e11caff39
gnu: LLVM, Clang, libomp, lld: Update to 17.0.6.
* gnu/packages/llvm.scm (llvm-17, clang-17, libomp-17, lld-17):
Update to 17.0.6.

Signed-off-by: Hilton Chain <hako@ultrarare.space>
Change-Id: I7757b8e55e6a7ffc8185d366ba77706abaf5a798
2023-12-10 11:09:28 +08:00
Efraim Flashner
95b577e09a
gnu: llvm: Export clang-properties.
* gnu/packages/llvm.scm (clang-properties): Export variable.

Change-Id: If5ef5219c3d29a347ae5ad97584c23bafdabf836
2023-12-03 09:54:57 +02:00
Efraim Flashner
f4735ccf9b
gnu: libclc: Update to 15.0.7.
* gnu/packages/llvm.scm (libclc): Update to 15.0.7.
[source]: Use the llvm-monorepo.
[arguments]: Remove configure-flag for python, add one for llvm-spirv.
Add a phase to skip 2 tests.  Remove trailing #t from phases.
[propagated-inputs]: Add spirv-llvm-translator, spirv-tools.
[native-inputs]: Replace clang-9 with 15, llvm-9 with 15.
[properties]: Add release-monitoring-url.

Change-Id: I06e2e7be0dc5733a2cc17429928b1761ab987906
2023-11-30 12:33:46 +02:00
fanquake
1566e00fbc
gnu: LLVM, Clang, libomp, lld: Update to 17.0.5.
* gnu/packages/llvm.scm (llvm-17, clang-17, libomp-17, lld-17):
Update to 17.0.5.

Change-Id: I6f719be6fea037e4e57643589d1e585ad039ab68
Signed-off-by: Hilton Chain <hako@ultrarare.space>
2023-11-25 22:00:33 +08:00
Hilton Chain
0527b542c9
gnu: Add lld-17.
* gnu/packages/llvm.scm (lld-17): New variable.

Change-Id: Idbb84efc1c749179dfdb874390bfc1caf4e753d3
2023-11-12 08:49:46 +02:00
Hilton Chain
80c5cf9554
gnu: Add clang-toolchain-17.
* gnu/packages/llvm.scm (clang-toolchain-17): New variable.

Change-Id: Iefec981c84249db0d1c740c156835dfea9030f47
2023-11-12 08:49:46 +02:00
Hilton Chain
5cb71306eb
gnu: Add libomp-17.
* gnu/packages/llvm.scm (libomp-17): New variable.

Change-Id: I6ad09d8feff0053dfc811a741e00445dfecb311f
2023-11-12 08:49:46 +02:00
Hilton Chain
8d5b31394b
gnu: Add clang-17.
* gnu/packages/llvm.scm (clang-from-llvm)[arguments]: Include test runner in
CMakeLists.txt when version >= 17.
(clang-17): New variable.

Change-Id: Ia3cd8013d497b72522e95f6face5975bf79f93b3
2023-11-12 08:49:46 +02:00
Hilton Chain
b7b945c32f
gnu: Add clang-runtime-17.
* gnu/packages/llvm.scm (clang-runtime-17): New variable.

Change-Id: I675475e9f4914843283966f5c622cdb214d11e34
2023-11-12 08:49:46 +02:00
Hilton Chain
6ccc8e1e16
gnu: Add llvm-17.
* gnu/packages/llvm.scm (llvm-17): New variable.
* gnu/packages/patches/clang-17.0-libc-search-path.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.

Change-Id: I8cdda0737b1137cf86887fb5b854e71977a88b6b
2023-11-12 08:49:46 +02:00
Hilton Chain
a15312aa03
gnu: Add lld-16.
* gnu/packages/llvm.scm (lld-16): New variable.

Change-Id: If34c0785531bc3603a56f18c18a8e4318cabc493
2023-11-12 08:49:45 +02:00
Hilton Chain
f7bd7a24cb
gnu: Add clang-toolchain-16.
* gnu/packages/llvm.scm (clang-toolchain-16): New variable.

Change-Id: I4bc7820b249ab93ff8b7143901c8e4220b7b8b5b
2023-11-12 08:49:45 +02:00
Hilton Chain
5fb50c6c2e
gnu: Add libomp-16.
* gnu/packages/llvm.scm (libomp-16): New variable.

Change-Id: I2a396f7c7a4c0e35a15ed315c291b4298c0ee967
2023-11-12 08:49:45 +02:00
Hilton Chain
c84119fb2a
gnu: Add clang-16.
* gnu/packages/llvm.scm (clang-16): New variable.

Change-Id: I0e62bced33d2ff5a3064917d4e95004d43dc56fb
2023-11-12 08:49:45 +02:00
Hilton Chain
abdd1949f4
gnu: Add clang-runtime-16.
* gnu/packages/llvm.scm (clang-runtime-16): New variable.

Change-Id: I8812e9e72b711505f7575cc3d62a9a009d25f641
2023-11-12 08:49:45 +02:00
Hilton Chain
9638e007a7
gnu: Add llvm-16.
* gnu/packages/llvm.scm (llvm-16): New variable.
* gnu/packages/patches/clang-16.0-libc-search-path.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.

Change-Id: I27738152ca95aeeef8d8b7150fdf14825b6b0b4d
2023-11-12 08:49:45 +02:00
Hilton Chain
15d90e7bfb
gnu: clang-runtime-from-llvm: Add phase for LLVM monorepo.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[arguments]<#:phases>: Change
directory to "compiler-rt" for LLVM monorepo.
(clang-runtime-15,clang-runtime-14): Adjust accordingly.

Change-Id: I6a77c9d106439e4794b8531e2160e2c9ce63d86e
2023-11-12 08:49:45 +02:00
Hilton Chain
f7411e283a
gnu: clang-runtime-from-llvm: Adjust inputs for version 15 or later.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Add gcc-12
when version >= 15.
[inputs]: Add libffi when version >= 15.
(clang-runtime-15)[native-inputs,inputs]: Remove fields.

Change-Id: I4b385b937edbb7a2840b998b6dd3e31a17cb556f
2023-11-12 08:49:45 +02:00
Ricardo Wurmus
7383d15641
gnu: clang-python-bindings: Embed version string.
* gnu/packages/llvm.scm (clang-python-bindings)[arguments]: Embed the version
string in the generated setup.py.

Change-Id: If8764a483dd1a3786d4b3cab1f21846a18f3b07d
2023-10-24 10:45:03 +02:00
Z572
419e359a5e
gnu: llvm: Fix riscv64 cross-compilation.
* gnu/packages/llvm.scm (system->llvm-target-arch): New procedure.
(llvm-15,llvm-14,llvm-12): Use It.
(system->llvm-target): Rewrite in terms of 'system->llvm-target-arch'.

Co-authored-by: 宋文武 <iyzsong@member.fsf.org>
2023-10-20 17:56:43 +08:00
Tobias Kortkamp
ae92d98b93
gnu: clang-runtime-15: Fix address sanitizer support
$ guix shell clang-toolchain@15 -- clang -o test -fsanitize=address test.c
ld: cannot find /gnu/store/i429h17s15g48ir9vl1bzp3cv39l5pib-clang-runtime-15.0.7/lib/linux/libclang_rt.asan_static-x86_64.a: No such file or directory
ld: cannot find /gnu/store/i429h17s15g48ir9vl1bzp3cv39l5pib-clang-runtime-15.0.7/lib/linux/libclang_rt.asan-x86_64.a: No such file or directory
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)

* gnu/packages/llvm.scm (clang-runtime-15): Fix address sanitizer
support by bringing back the static libraries.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-07-13 17:20:02 +02:00
John Kehayias
15f9870eb3
gnu: rocm: Update to 5.6.0.
Update all of the ROCm packages at the same time as they share a version
number and should be upgraded together, including llvm-for-rocm.

* gnu/packages/llvm.scm (llvm-for-rocm): Update to 5.6.0.
[source]{patches}: Remove unneeded patches (linkdl and remove-isystem-usr-include).
* gnu/packages/rocm.scm (rocm-cmake, roct-thunk-interface): Update
to 5.6.0.
(rocclr-src): Update to 5.6.0.
[source]{patches}: Add enable-gfx800 patch.
(rocm-device-libs):  Update to 5.6.0.
[inputs]: Update style.
(rocm-comgr): Update to 5.6.0.
[inputs]: Remove lld.  Update style.
(rocr-runtime): Update to 5.6.0.
[arguments]: Use gexps.  Remove configure-flags.  Add add-rocm-device-lib-path
phase.
[inputs]: Add libdrm.  Update style.
[native-inputs]: Add pkg-config.  Update style.
(rocm-opencl-runtime): Update to 5.6.0.
[source]{patches}: Remove noopencl patch.
[arguments]{configure-flags}: Add BUILD_ICD=OFF and
FILE_REORG_BACKWARD_COMPATIBILITY=OFF flags.
[inputs]: Add opencl-headers.
(rocminfo): Update to 5.6.0.
[arguments]: Use gexps.  Use search-input-file instead of assoc-ref and which.
(rocm-bandwidth-test): Update to 5.6.0.
[source]{patches}: Add fix-includes patch.
* gnu/packages/patches/rocm-comgr-3.1.0-dependencies.patch,
gnu/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch: Update patches.
* gnu/packages/patches/llvm-roc-4.0.0-remove-isystem-usr-include.patch,
gnu/packages/patches/llvm-roc-5.0.0-linkdl.patch,
gnu/packages/patches/rocm-opencl-runtime-4.3-noopencl.patch: Delete files.
* gnu/packages/patches/rocm-bandwidth-test-5.5.0-fix-includes.patch,
gnu/packages/patches/rocclr-5.6.0-enable-gfx800.patch: New files.
* gnu/local.mk (dist_patch_DATA): Update patches.
2023-07-11 12:21:00 -04:00
Cory Fields
39a3251feb
gnu: llvm: make clang-make-toolchain public
Matches gcc-make-toolchain. Allow for llvm build to be patched.

* gnu/packages/llvm.scm: make clang-make-toolchain public

Signed-off-by: Carl Dong <contact@carldong.me>
2023-07-02 13:12:02 -04:00
John Kehayias
b2a5cb346e
gnu: python-llvmlite: Update to 0.39.1.
* gnu/packages/llvm.scm (python-llvmlite): Update to 0.39.1.
[phases]: Remove patch-reference-to-llvmlite.so and skip-failing-tests phases.
2023-04-21 01:21:46 -04:00
Maxim Cournoyer
3bacd3c76a
Merge branch 'master' into core-updates.
Conflicts:
	gnu/local.mk
	gnu/packages/build-tools.scm
	gnu/packages/certs.scm
	gnu/packages/check.scm
	gnu/packages/compression.scm
	gnu/packages/cups.scm
	gnu/packages/fontutils.scm
	gnu/packages/gnuzilla.scm
	gnu/packages/guile.scm
	gnu/packages/ibus.scm
	gnu/packages/image-processing.scm
	gnu/packages/linux.scm
	gnu/packages/music.scm
	gnu/packages/nss.scm
	gnu/packages/pdf.scm
	gnu/packages/python-xyz.scm
	gnu/packages/qt.scm
	gnu/packages/ruby.scm
	gnu/packages/shells.scm
	gnu/packages/tex.scm
	gnu/packages/video.scm
	gnu/packages/vulkan.scm
	gnu/packages/web.scm
	gnu/packages/webkit.scm
	gnu/packages/wm.scm
2023-04-14 17:15:08 -04:00
Maxim Cournoyer
cb2e7efa6c
gnu: cling: Correct erroneous substitute pattern.
* gnu/packages/llvm.scm (cling) [arguments]: Properly escape '\b' in the
regexp pattern of the patch-paths phase.
2023-03-22 21:45:29 -04:00
Christopher Baines
7df09ee0ab
Merge remote-tracking branch 'savannah/master' into core-updates
Conflicts:
	gnu/local.mk
	gnu/packages/autotools.scm
	gnu/packages/cmake.scm
	gnu/packages/gnuzilla.scm
	gnu/packages/haskell.scm
	gnu/packages/pdf.scm
	gnu/packages/python-xyz.scm
	gnu/packages/samba.scm
	gnu/packages/tex.scm
	gnu/packages/tls.scm
	gnu/packages/wxwidgets.scm
2023-03-02 10:55:08 +00:00