Repository navigation
fix(qemu): build vhost-user-gpu so meson install succeeds on Linux - #45
Merged
Merged
Conversation
`--enable-tools` makes meson configure the vhost-user-gpu helper on Linux
hosts, and `meson install --no-rebuild` aborts when its binary is missing:
ERROR: File 'contrib/vhost-user-gpu/vhost-user-gpu' could not be found
The WANTED list builds only a subset of the tools, so this one was never
built. Add it; hosts where it is not a target already skip it through the
KNOWN-targets intersection.
…shmem pair together
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
On a Linux x86_64 host,
./qemu/build.shcompiles everything but fails in the install step:--enable-toolsmakes meson configure thevhost-user-gpuhelper on this host, andmeson install --no-rebuildaborts when its binary is missing. TheWANTEDtarget list builds only a subset of the tools, and this one is not in it.Change
Add
contrib/vhost-user-gpu/vhost-user-gputoWANTED. It goes through the existingKNOWN-targets intersection, so hosts where it is not a ninja target skip it as they do for the other optional tools.Testing
Re-ran
./qemu/build.shon the same Linux x86_64 host after the change: the build and install complete andqemu/install/bin/qemu-system-aarch64is produced. I have not tried macOS or Windows builds; the change only touches the target list that is intersected with what ninja knows.