Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

Docs: C++ compiler and Python headers in the requirements, GCC 16 build error, Fedora and Arch notes

YanissAmz8413db22c14b
diff --git a/doc/install.md b/doc/install.md
index cb65c6a..78e173d 100644
--- a/doc/install.md
+++ b/doc/install.md
@@ -1,6 +1,6 @@
# Install and first launch (Strix Halo, ROCm)
-Requirements: Linux (Ubuntu/Debian tested), a gfx1151 machine with 128 GB, Python 3.12, `gcc`, a ROCm 7 `libhsa-runtime64.so.1` (the PyTorch copy segfaults on gfx1151 and Ubuntu's own `libhsa-runtime64-1` is ROCm 5.7, too old; `tools/strix_halo/env.sh` finds the one inside the SDK wheel below first, then /opt/rocm, or take `EXL3_HSA_LIB=<path>`), ROCm 7.0 or newer (ROCm 6.4 has no gfx1151 code), a ROCm build of PyTorch for gfx1151, and a ROCm SDK devel tree with the `hipsparse/` and `thrust/` headers (the `rocm-sdk-devel` wheel).
+Requirements: Linux (Ubuntu/Debian tested), a gfx1151 machine with 128 GB, Python 3.12 with its headers, a C++ compiler (`g++`; on Ubuntu `sudo apt install g++ python3-dev python3-venv`, on Fedora `gcc-c++ python3.12-devel`, on Arch `gcc` and `python` have everything), a ROCm 7 `libhsa-runtime64.so.1` (the PyTorch copy segfaults on gfx1151 and Ubuntu's own `libhsa-runtime64-1` is ROCm 5.7, too old; `tools/strix_halo/env.sh` finds the one inside the SDK wheel below first, then /opt/rocm, or take `EXL3_HSA_LIB=<path>`), ROCm 7.0 or newer (ROCm 6.4 has no gfx1151 code), a ROCm build of PyTorch for gfx1151, and a ROCm SDK devel tree with the `hipsparse/` and `thrust/` headers (the `rocm-sdk-devel` wheel).
```bash
git clone https://github.com/Yamz-Labs/kyojin && cd kyojin
diff --git a/doc/troubleshooting.md b/doc/troubleshooting.md
index ad553ea..5dc63da 100644
--- a/doc/troubleshooting.md
+++ b/doc/troubleshooting.md
@@ -59,6 +59,27 @@ export EXL3_ROCM_SDK=$(rocm-sdk path --root)
With your own devel tree, set `EXL3_ROCM_DEV_INCLUDE` to an include directory that has `hipsparse/` and `thrust/` instead.
+## The build stops in a system header: `expected an identifier for the attribute name` (GCC 16)
+
+```text
+/usr/include/c++/16/format:4550:30: error: expected an identifier for the attribute name [-Wtemplate-body]
+ 4550 | [[__gnu__::__noinline__]]
+```
+
+Seen on Fedora 44 and Arch Linux, at `bindings_hip.o`.
+
+Cause: GCC 16's libstdc++ uses `__noinline__` as an attribute name, and the `rocm-sdk-devel` wheel defines `__noinline__` to nothing for a non-clang host compiler (`include/hip/amd_detail/host_defines.h`). Older GCC (13 on Ubuntu 24.04) does not use that attribute, so the build passes there.
+
+Fix, until the ROCm header changes: undefine it right after that line in the venv's copy, then build again.
+
+```bash
+H=$(rocm-sdk path --root)/include/hip/amd_detail/host_defines.h
+sed -i 's/^#define __noinline__$/&\n#undef __noinline__/' "$H"
+./build.sh
+```
+
+Other distributions: Fedora 44's default `python3` is 3.14, so install `python3.12` and create the venv with `python3.12 -m venv .venv`. Arch only has Python 3.14; the build, the tests and the Qwen server were reported working with it.
+
## The build stops: PyTorch is not a ROCm build
```text