llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Compile bug: Error extracting vulkan sdk in vulkan.Dockerfile build

Open mjgs opened this issue 3 months ago • 2 comments

Git commit

Marks-MacBook-Air:llama.cpp mjgs$ git rev-parse HEAD aa3ee0eb0b80efca126cedf9bcb4fb5864b46ce3

Operating systems

Mac

GGML backends

Vulkan

Problem description & steps to reproduce

I'm trying to compile llama.cpp with vulkan support using docker as per docs. Looks like some sort of problem with the dockerfile when extracting the vulkan sdk files.

First Bad Commit

No response

Compile command

podman build -t llama-cpp-vulkan --target light -f .devops/vulkan.Dockerfile .

Relevant log output

Marks-MacBook-Air:llama.cpp mjgs$ podman build -t llama-cpp-vulkan --target light -f .devops/vulkan.Dockerfile .
[1/4] STEP 1/15: FROM ubuntu:24.04 AS build
Resolved "ubuntu" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/ubuntu:24.04...
Getting image source signatures
Copying blob sha256:59a5d47f84c39a2d62d1b5089e60ab67303111f17e1df01dbbcc598246282797
Copying config sha256:f4158f3f99819fe04db19db8944ba85d0c19160a142ae8ce69006236b446cd18
Writing manifest to image destination
[1/4] STEP 2/15: RUN apt update && apt install -y git build-essential cmake wget xz-utils

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease [256 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 Packages [19.0 MB]
Get:6 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 Packages [1776 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports noble/multiverse arm64 Packages [274 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports noble/restricted arm64 Packages [113 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 Packages [1901 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe arm64 Packages [1839 kB]
...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/c++.1.gz because associated file /usr/share/man/man1/g++.1.gz (of link group c++) doesn't exist
Setting up build-essential (12.10ubuntu1) ...
Setting up libheif1:arm64 (1.17.6-1ubuntu4.1) ...
Setting up libgd3:arm64 (2.3.3-9ubuntu5) ...
Setting up libc-devtools (2.39-0ubuntu8.6) ...
Setting up libheif-plugin-aomdec:arm64 (1.17.6-1ubuntu4.1) ...
Setting up libheif-plugin-libde265:arm64 (1.17.6-1ubuntu4.1) ...
Setting up libheif-plugin-aomenc:arm64 (1.17.6-1ubuntu4.1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.6) ...
Processing triggers for ca-certificates (20240203) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
--> 523f84761002
[1/4] STEP 3/15: ARG VULKAN_VERSION=1.4.321.1
--> e7cc12039661
[1/4] STEP 4/15: RUN ARCH=$(uname -m) &&     wget -qO /tmp/vulkan-sdk.tar.xz https://sdk.lunarg.com/sdk/download/${VULKAN_VERSION}/linux/vulkan-sdk-linux-${ARCH}-${VULKAN_VERSION}.tar.xz &&     mkdir -p /opt/vulkan &&     tar -xf /tmp/vulkan-sdk.tar.xz -C /tmp --strip-components=1 &&     mv /tmp/${ARCH}/* /opt/vulkan/ &&     rm -rf /tmp/*
mv: cannot stat '/tmp/aarch64/*': No such file or directory
Error: building at STEP "RUN ARCH=$(uname -m) &&     wget -qO /tmp/vulkan-sdk.tar.xz https://sdk.lunarg.com/sdk/download/${VULKAN_VERSION}/linux/vulkan-sdk-linux-${ARCH}-${VULKAN_VERSION}.tar.xz &&     mkdir -p /opt/vulkan &&     tar -xf /tmp/vulkan-sdk.tar.xz -C /tmp --strip-components=1 &&     mv /tmp/${ARCH}/* /opt/vulkan/ &&     rm -rf /tmp/*": while running runtime: exit status 1

mjgs avatar Sep 25 '25 11:09 mjgs

There’s some discussion on https://github.com/ggml-org/llama.cpp/pull/15282

yeahdongcn avatar Sep 25 '25 12:09 yeahdongcn

@yeahdongcn Thanks - that was super helpful.

mjgs avatar Oct 12 '25 04:10 mjgs

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Nov 27 '25 01:11 github-actions[bot]