ZLUDA
ZLUDA copied to clipboard
Cannot build from source
https://pastebin.com/wz8xuhFP
cc@pretty:~$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/gcc-latest/libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/opt/gcc-latest --enable-languages=c,c++ --enable-libstdcxx-debug --enable-libstdcxx-backtrace --disable-bootstrap --disable-multilib --disable-libvtv --disable-libssp --disable-libffi --with-system-zlib --without-isl --with-arch_64=x86-64-v2 --with-bugurl=https://gcc.gnu.org/bugzilla
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20250907 (experimental) (GCC)
I get this error at the end:
/home/asdf/ZLUDA/ext/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1271:13: error: ‘class llvm::SmallVector<llvm::SmallVector<llvm::CodeGenIntrinsic::ArgAttribute, 0> >’ has no member named ‘Size’
1271 | this->Size = 0;
| ~~~~~~^~~~
make[3]: *** [utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/build.make:93: utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/CodeGenIntrinsics.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:6222: utils/TableGen/CMakeFiles/obj.LLVMTableGenCommon.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:16145: tools/llvm-config/CMakeFiles/llvm-config.dir/rule] Error 2
make: *** [Makefile:3972: llvm-config] Error 2
thread 'main' panicked at /home/asdf/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cmake-0.1.51/src/lib.rs:1100:5:
command did not execute successfully, got: exit status: 2
build script failed, must exit now
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
thread 'main' panicked at xtask/src/main.rs:218:5:
assertion failed: command.status().unwrap().success()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[asdf@asdf-82ju ZLUDA]$
When i run with RUST_BACKTRACE=full:
@alosslessdev some of the issues are because you don't have ROCm installed, some come from a new GCC. We use an older version of LLVM that does not build on a new GCC. Former issue you must fix yourself, latter is on our todo list