Package Details: spirv-llvm-translator-minimal-git 1:r2109.7cd8641-1

Git Clone URL: https://aur.archlinux.org/spirv-llvm-translator-minimal-git.git (read-only, click to copy)
Package Base: spirv-llvm-translator-minimal-git
Description: Tool and a library for bi-directional translation between SPIR-V and LLVM IR, trunk version
Upstream URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator
Licenses: LicenseRef-custom
Conflicts: spirv-llvm-translator
Provides: spirv-llvm-translator
Submitter: Lone_Wolf
Maintainer: Lone_Wolf
Last Packager: Lone_Wolf
Votes: 0
Popularity: 0.000000
First Submitted: 2023-05-14 15:23 (UTC)
Last Updated: 2024-09-07 14:40 (UTC)

Required by (24)

Sources (1)

Latest Comments

Lone_Wolf commented on 2025-03-08 11:39 (UTC)

The cause of the error is shown earlier in the log .

In file included from /build/spirv-llvm-translator-minimal-git/src/SPIRV-LLVM-Translator/lib/SPIRV/SPIRVReader.h:45,
                 from /build/spirv-llvm-translator-minimal-git/src/SPIRV-LLVM-Translator/lib/SPIRV/SPIRVReader.cpp:39:
/build/spirv-llvm-translator-minimal-git/src/SPIRV-LLVM-Translator/lib/SPIRV/SPIRVReader.cpp: In member function ‘bool SPIRV::SPIRVToLLVM::transAddressingModel()’:
/build/spirv-llvm-translator-minimal-git/src/SPIRV-LLVM-Translator/lib/SPIRV/SPIRVInternal.h:168:29: error: cannot convert ‘const char [23]’ to ‘llvm::Triple’

It's caused by a commit in LLVM that requires changes to spirv-llvm-translator sourcecode .

Work has started on those changes, Subscribe to https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/3046 to follow it.

For now you are best off with using a llvm trunk build from before the change .

d3vilguard commented on 2025-03-08 09:36 (UTC)

This is with spirv-headers-git-1:1.4.304.0.r11.g54a521d-1 and llvm-minimal-git-21.0.0_r529598.d6c0839c9c82-1

/build/spirv-llvm-translator-minimal-git/src/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVInstruction.h:2761:7: warning: ‘GroupOp’ may be used uninitialized [-Wmaybe-uninitialized]
 2761 |       if (GroupOp == GroupOperationClusteredReduce)
      |       ^~
/build/spirv-llvm-translator-minimal-git/src/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVInstruction.h:2759:29: note: ‘GroupOp’ was declared here
 2759 |     SPIRVGroupOperationKind GroupOp;
      |                             ^~~~~~~
make[1]: *** [CMakeFiles/Makefile2:388: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
make: Leaving directory '/build/spirv-llvm-translator-minimal-git/src/_build'
==> ERROR: A failure occurred in build().
    Aborting...

d3vilguard commented on 2025-01-20 17:27 (UTC)

Rebuilding worked.

Lone_Wolf commented on 2025-01-20 11:27 (UTC)

That error was caused by a change in llvm trunk and fixed upstream with https://github.com/KhronosGroup/SPIRV-LLVM-Translator/commit/3c4e7607696f19588e15c858c9e023c9da6467cd .

Please try rebuilding.

d3vilguard commented on 2025-01-19 13:58 (UTC)

[ 69%] Building CXX object lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/libSPIRV/SPIRVBasicBlock.cpp.o
make[2]: *** [lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/build.make:345: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/SPIRVToLLVMDbgTran.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:388: lib/SPIRV/CMakeFiles/LLVMSPIRVLib.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
make: Leaving directory '/build/spirv-llvm-translator-minimal-git/src/_build'
==> ERROR: A failure occurred in build().
    Aborting...

Lone_Wolf commented on 2024-09-06 21:15 (UTC)

Dependency reverted from spirv-headers to spirv-headers-git

Lone_Wolf commented on 2024-09-05 20:52 (UTC)

Latest commit 7dacb7cdedc9c01e0ce88f1f3766c42ab8f59b7c breaks build .

Use

source=("git+$url.git#commit=2b5f15d871aa39bcc9d2667883dd989afa32a146"
)

in the PKGBUILD to pin the build to the last working commit.

https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/2687 for details

Lone_Wolf commented on 2024-08-30 23:22 (UTC)

Dependency changed from spirv-tools-git to repo spirv-tools

lyamc commented on 2024-03-06 08:17 (UTC)

This failed to build for me until I added the CMAKE install prefix to the check().

check() {
    LD_LIBRARY_PATH="$srcdir"/_build/lib/SPIRV CMAKE_INSTALL_PREFIX=/usr make -C _build test
}