google / google/android-riscv64

Build instructions for the prebuilt QEMU with rutabaga/gfxstream support ?

Open
#145 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
254
Forks
20
PR merge metrics
No merged PRs in 30d

Description

The instructions on [crsovm doc](https://crosvm.dev/book/appendix/rutabaga_gfx.html) seems kinda outdated.

I am having linking issues during the final stage when building QEMU :
```
/usr/bin/ld: /data_ssd_2t/ruinland_aosp/cuttlefish/qemu_rutabaga/build/deps/prefix/lib/librutabaga_gfx_ffi.so: undefined reference to `gfxstream::vk::EmulatedPhysicalDeviceMemoryProperties::tr
ansformToGuestMemoryRequirements(VkMemoryRequirements*) const'
/usr/bin/ld: /data_ssd_2t/ruinland_aosp/cuttlefish/qemu_rutabaga/build/deps/prefix/lib/librutabaga_gfx_ffi.so: undefined reference to `gfxstream::vk::EmulatedPhysicalDeviceMemoryProperties::Em
ulatedPhysicalDeviceMemoryProperties(VkPhysicalDeviceMemoryProperties const&, unsigned int, gfxstream::host::FeatureSet const&)'
/usr/bin/ld: /data_ssd_2t/ruinland_aosp/cuttlefish/qemu_rutabaga/build/deps/prefix/lib/librutabaga_gfx_ffi.so: undefined reference to `gfxstream::vk::EmulatedPhysicalDeviceMemoryProperties::ge
tHostMemoryInfoFromGuestMemoryTypeIndex(unsigned int) const'
```

I doubly checked with `libgfxstream_backend.a`, the symbols are indeed undefined :
```
0000000000000000 W gfxstream::vk::EmulatedPhysicalDeviceMemoryProperties::getGuestMemoryProperties() const
U gfxstream::vk::EmulatedPhysicalDeviceMemoryProperties::transformToGuestMemoryRequirements(VkMemoryRequirements*) const
U gfxstream::vk::EmulatedPhysicalDeviceMemoryProperties::getHostMemoryInfoFromGuestMemoryTypeIndex(unsigned int) const
...
0000000000009f58 T gfxstream::vk::importExtMemoryHandleToVkColorBuffer(unsigned int, unsigned int, int)
U gfxstream::vk::EmulatedPhysicalDeviceMemoryProperties::EmulatedPhysicalDeviceMemoryProperties(VkPhysicalDeviceMemoryProperties const&, unsigned int, gfxstream::host::Feature
Set const&)
```

And these methods are supposedly to be part of gfxstream.

Is there a write up of details (including proper commit hashes) for building the QEMU with rubataga/gfxstream ?
I tried the ones from :
https://linaro.atlassian.net/wiki/spaces/ORKO/pages/28985622530/Building+QEMU+with+virtio-gpu+and+rutabaga+gfx
Yet the commit hashes are quite old and fail to build.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.