Package Details: rocm-llvm 5.2.3-2

Git Clone URL: (read-only, click to copy)
Package Base: rocm-llvm
Description: Radeon Open Compute - LLVM toolchain (llvm, clang, lld)
Upstream URL:
Licenses: custom:Apache 2.0 with LLVM Exception
Submitter: tpkessler
Maintainer: tpkessler
Last Packager: tpkessler
Votes: 12
Popularity: 1.79
First Submitted: 2021-11-12 14:35 (UTC)
Last Updated: 2022-09-17 15:13 (UTC)

Pinned Comments

acxz commented on 2020-03-09 06:41 (UTC)

Development is on Github: Please open issues and PRs there instead of commenting.

Latest Comments

1 2 Next › Last »

nastyagrifon commented on 2022-08-12 13:36 (UTC) (edited on 2022-08-12 13:40 (UTC) by nastyagrifon)

Cmake fails with

[4025/5146] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CGBuiltin.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
-> error making: rocm-llvm

Happens only on version 5.2.1-3. Version 5.2.1-1 installed just fine. I know that issues and PRs are to be opened on Github, this is just a heads-up

qqqqxx commented on 2022-04-02 02:19 (UTC)

In 5.1.0, I found that this package is conflict with "extra/llvm-ocaml". And if not set cmake flag with "-DLLVM_ENABLE_OCAMLDOC=OFF", install may not success.

darkfish commented on 2022-03-11 00:08 (UTC)

Those encountering RAM issues, it is due to linker issue (LD being used with Clang) and possibly also if you have debug flags enabled (-g in my case; adding !debug to options helped me reduce mem usage). Like @mdupoint mentioned, using LLD solved it. In my case, my entire 128GB and 50GB of swap was getting used. Segmentation fault could be due to memory exhaustion, or as I found in my case, missing LLVM.

LLVM should be added to MAKEDEPENDS.

mdupont commented on 2021-11-11 19:30 (UTC) (edited on 2021-11-11 19:31 (UTC) by mdupont)

Never mind, setting LLVM_USE_LINKER=lld worked like a charm.

mdupont commented on 2021-11-10 21:55 (UTC)


How do I go about installing this if I only have 16 GB of RAM available to me on my laptop? It seems to always reach maximum RAM usage and then sigkill terminates the compilation. Any help would be appreciated!

hedgepigdaniel commented on 2021-09-18 11:39 (UTC)

What about adding -DLLVM_PARALLEL_LINK_JOBS=1 or some reasonable number based on the available RAM?

Seems like each linking job needs 8-16GB of RAM - so if you have a 16 thread CPU and use the default settings... you're going to need alot of RAM!.

eathtespagheti commented on 2021-02-15 15:45 (UTC)

Compiling fails because of segmentation fault

In file included from llvm-project-rocm-4.0.1/llvm/include/llvm/IR/TrackingMDRef.h:16,
                 from llvm-project-rocm-4.0.1/llvm/include/llvm/IR/ValueMap.h:32,
                 from llvm-project-rocm-4.0.1/llvm/include/llvm/CodeGen/PseudoSourceValue.h:17,
                 from llvm-project-rocm-4.0.1/llvm/include/llvm/CodeGen/MachineMemOperand.h:20,
                 from llvm-project-rocm-4.0.1/llvm/include/llvm/CodeGen/MachineInstr.h:23,
                 from llvm-project-rocm-4.0.1/llvm/include/llvm/CodeGen/MachineBasicBlock.h:20,
                 from llvm-project-rocm-4.0.1/llvm/include/llvm/CodeGen/MachineFunction.h:28,
                 from llvm-project-rocm-4.0.1/llvm/include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h:17,
                 from llvm-project-rocm-4.0.1/llvm/include/llvm/CodeGen/GlobalISel/CSEInfo.h:17,
                 from llvm-project-rocm-4.0.1/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h:16,
                 from llvm-project-rocm-4.0.1/llvm/include/llvm/CodeGen/GlobalISel/Combiner.h:17,
                 from llvm-project-rocm-4.0.1/llvm/lib/CodeGen/GlobalISel/Combiner.cpp:13:
llvm-project-rocm-4.0.1/llvm/include/llvm/IR/Metadata.h: In member function ‘const char* llvm::MDString::end() const’:
llvm-project-rocm-4.0.1/llvm/include/llvm/IR/Metadata.h:629:43: internal compiler error: Segmentation fault
  629 |   iterator end() const { return getString().end(); }

lahwaacz commented on 2020-11-02 15:33 (UTC)

Please add git and rsync to checkdepends - the package does not compile otherwise.

But the tests fail anyway...

rsa commented on 2020-06-21 19:08 (UTC) (edited on 2020-06-21 19:08 (UTC) by rsa)


rigred commented on 2020-06-21 12:42 (UTC)

How is this already at 3.5.1 when the github tree is still at 3.5.0?