Skip to content

Fix llama.cpp ROCm image build: run under bash (pipefail) - #13

Merged
Aaronontheweb merged 1 commit into
masterfrom
fix/amd-rocm-dockerfile-shell
Aug 14, 2026
Merged

Aaronontheweb merged 1 commit into
masterfrom
fix/amd-rocm-dockerfile-shell

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Member

The first candidate build of llama-cpp-rocm-gfx1201-avx2 failed at the apt step:

/bin/sh: 1: set: Illegal option -o pipefail

The apt RUN used set -euxo pipefail, but the SHELL ["/bin/bash","-c"] directive was declared after it, so it ran under the base image's /bin/sh (dash), which rejects -o pipefail. This moves SHELL above the first RUN so every build step — including the AVX-512 objdump guard, which also uses [[ ]] — runs under bash.

Dockerfile-only fix; no pin or recipe change. Re-dispatch the candidate build after merge.

… guards work

The first candidate build failed at the apt step: the RUN used set -euxo
pipefail but the SHELL bash directive came after it, so it ran under the
base image's /bin/sh (dash), which rejects -o pipefail. Move SHELL to before
the first RUN so every build step (including the AVX-512 objdump guard) runs
under bash.
@Aaronontheweb
Aaronontheweb merged commit 0cde9c8 into master Aug 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant