# Can't built minimal ROOT 6.38.00 with X11 and asimage

**URL:** <https://root-forum.cern.ch/t/cant-built-minimal-root-6-38-00-with-x11-and-asimage/64532>\
**Category:** ROOT\
**Tags:** build, root\
**Created:** [December 10, 2025, 1:12pm UTC](https://root-forum.cern.ch/t/cant-built-minimal-root-6-38-00-with-x11-and-asimage/64532 "2025-12-10T13:12:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ako\_b](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@Ako\_b](https://root-forum.cern.ch/u/Ako_b)\
**Post date:** [December 10, 2025, 1:12pm UTC](https://root-forum.cern.ch/t/cant-built-minimal-root-6-38-00-with-x11-and-asimage/64532/1 "2025-12-10T13:12:12Z")

</div>

### Describe the bug

Cannot build minimal ROOT 6.38.00 with GUI on AlmaLinux 10.  
Build fails with

```bash
ninja: error: 'graf2d/asimage/Gui', needed by '/opt/root_build/graf2d/asimage/G__ASImageGui.cxx', missing and no known rule to make it

```

### Expected behavior

Successful build.

### To Reproduce

Start in fresh AlmaLinux 10 sandbox.

```bash
dnf update -y
dnf install -y epel-release \
    make ninja-build cmake gcc-c++ gcc binutils mold patch wget \
    openssl-devel \
    libX11-devel libXpm-devel libXft-devel libXext-devel \
    tbb-devel libuuid-devel readline-devel \
    xxhash-devel libzstd-devel lz4-devel xz-devel \
    libpng-devel libjpeg-devel giflib-devel libtiff-devel

cd /opt/
mkdir -p root_source root_build root
wget -qO - https://github.com/root-project/root/archive/refs/tags/v6-38-00.tar.gz |
    tar -xzf - -C root_source --strip-components=1

cmake -G"Ninja" -DCMAKE_BUILD_TYPE=Debug \
    -S root_source -B root_build -DCMAKE_INSTALL_PREFIX=/opt/root \
    -DCMAKE_CXX_STANDARD=17 \
    -DCMAKE_CXX_STANDARD_REQUIRED=ON \
    -DCMAKE_CXX_EXTENSIONS=OFF \
    -Dminimal=ON -Dfail-on-missing=ON \
    -Dbuiltin_nlohmannjson=ON \
    -Dasimage=ON -Dasimage_tiff=ON \
    -Dx11=ON
# -- Build files have been written to: /opt/root_build

cmake --build root_build --parallel $(nproc) --target install
# ninja: error: 'graf2d/asimage/Gui', needed by '/opt/root_build/graf2d/asimage/G__ASImageGui.cxx', missing and no known rule to make it

```

Note that CMake generates build files without errors, and then build fails.

### Setup

```plaintext
AlmaLinux 10.1 (Heliotrope Lion)
gcc (GCC) 14.3.1 20250617 (Red Hat 14.3.1-2)
cmake version 3.30.5
ninja 1.11.1 | GNU Make 4.4.1
ROOT v6.38.00

```

### Additional context

Building with `-G"Unix Makefiles"` proceeds at first, but eventually fails with cryptic errors. I’ve managed to get meaningful message like `No rule to make target 'graf2d/asimage/Gui'` a couple of times, but couldn’t reproduce it. I switched to Ninja and it consistently refuses to start build with clean error message.

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 10, 2025, 5:49pm UTC](https://root-forum.cern.ch/t/cant-built-minimal-root-6-38-00-with-x11-and-asimage/64532/2 "2025-12-10T17:49:21Z")

</div>

Could you try with `gminimal` instead of `minimal` ?

---

<div class="post-metadata">

**Author:** ![Ako\_b](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@Ako\_b](https://root-forum.cern.ch/u/Ako_b)\
**Post date:** [December 11, 2025, 1:47pm UTC](https://root-forum.cern.ch/t/cant-built-minimal-root-6-38-00-with-x11-and-asimage/64532/3 "2025-12-11T13:47:42Z")

</div>

Indeed, changing `-Dminimal=ON` to `-Dgminimal=ON` works. Thank you!

I think it would be more clean to explicitly fail on configure step.

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 15, 2025, 9:56pm UTC](https://root-forum.cern.ch/t/cant-built-minimal-root-6-38-00-with-x11-and-asimage/64532/4 "2025-12-15T21:56:49Z")

</div>

> [@Ako\_b](#):
>
> I think it would be more clean to explicitly fail on configure step.

> <https://github.com/root-project/root/pull/20724>
>
> Fixes https://root-forum.cern.ch/t/cant-built-minimal-root-6-38-00-with-x11-and-…asimage/64532

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 29, 2025, 9:57pm UTC](https://root-forum.cern.ch/t/cant-built-minimal-root-6-38-00-with-x11-and-asimage/64532/5 "2025-12-29T21:57:33Z")

</div>

Closed on December 29, 2025, 9:57pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
