Fix Vulkan docker build failure on Ubuntu 26.04 #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make sure to read the contributing guidelines before submitting a PR
Vulkan docker build fails on Ubuntu 26.04 because numpy has no pre-built wheel and pip falls back to source compilation, which requires a C compiler not present in the "full" stage.
Error from failed builds:
Fix: Add
build-essentialto the "full" stage apt-get install to provide gcc for source compilation of Python packages.Original prompt
This section details on the original issue you should resolve
<issue_title>Misc. bug: Vulkan docker build fails on github actions</issue_title>
<issue_description>### Name and Version
Version 7134
Operating systems
Linux
Which llama.cpp modules do you know to be affected?
Other (Please specify in the next section)
Command line
Problem description & steps to reproduce
Hello again! Last week I opened an issue concerning an issue with the vulkan docker build. The issue was resolved with this commit, thank you btw :). The fix was to update the ubuntu version with which the dockerfile was built. Since that commit, docker builds of the vulkan image have been failing on github actions. A quick glance at the error logs from the first unsuccessful build shows that numpy fails to build, most likely due to a missing C compiler. Given that ubuntu 26.04 has not been released yet, there may be a conflict with the build essentials used in the dockerfile.
Paging @ericcurtin as it seems relevant.
First Bad Commit
The first bad commit is the one that introduced the fix to the issue I opened previously, commit bc809e9.
Relevant log output