ZLUDA icon indicating copy to clipboard operation
ZLUDA copied to clipboard

Cannot build from source

Open clin1234 opened this issue 3 months ago • 2 comments

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)

clin1234 avatar Sep 10 '25 16:09 clin1234

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:

backtrace.txt

alosslessdev avatar Sep 30 '25 22:09 alosslessdev

@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

vosen avatar Sep 30 '25 23:09 vosen