Vulkan library not support on builds steps.

12 views
Skip to first unread message

Chatsiri Rattana

unread,
May 15, 2023, 12:39:43 PM5/15/23
to discuss
Hello contributors,

   I'm build  the fuchsia source code from basic command line as "fx build". Tool builds source code show an error as below. This builds point estimates the preflight checker didn't not found the GPU cause I'm run the steps to build soure files on the VM.
   How we can build a source code with library of GPU and didn't show an error as below?

fx build
WARNING: Please opt in or out of fx metrics collection.
You will receive this warning until an option is selected.
To check what data we collect, run `fx metrics`
To opt in or out, run `fx metrics <enable|disable>

ninja: Entering directory `/home/vagrant/workspacecpp/virt/fuchsia-tools/sources/fuchsia/out/default'
ninja: warning: premature end of file; recovering
[3920/26406](3) SOLINK x64-shared/VkLayer_khronos_validation.so
FAILED: x64-shared/VkLayer_khronos_validation.so x64-shared/lib.unstripped/VkLayer_khronos_validation.so x64-shared/VkLayer_khronos_validation.so.build-id.stamp
../../prebuilt/third_party/clang/linux-x64/bin/clang++ -shared -Wl,-soname="VkLayer_khronos_validation.so" -static-libstdc++ -Wl,-Bsymbolic,--exclude-libs,ALL -fcolor-diagnostics -Wl,--color-diagnostics -fcrash-diagnostics-dir=clang-crashreports -fcrash-diagnostics=all --sysroot=x64-shared/gen/zircon/public/sysroot/cpp --target=x86_64-unknown-fuchsia -ffuchsia-api-level=4294967295 -ffile-compilation-dir=. -no-canonical-prefixes -fno-omit-frame-pointer -fdata-sections -ffunction-sections -Wl,--gc-sections -O0 -g3 -fno-exceptions -fno-rtti -Wl,--icf=all -fPIC -Wl,--no-undefined -frtti -Lgen/zircon/system/ulib/c/c.x86_64 -L../../build/config/zircon/libc-dummy -o "x64-shared/lib.unstripped/VkLayer_khronos_validation.so" -Wl,--dependency-file="x64-shared/VkLayer_khronos_validation.so.d" -Wl,--Map="x64-shared/lib.unstripped/VkLayer_khronos_validation.so.map" "@x64-shared/VkLayer_khronos_validation.so.rsp"  gen/zircon/system/ulib/c/c.x86_64/libc.so && ../../prebuilt/third_party/clang/linux-x64/bin/llvm-objcopy --strip-all "x64-shared/lib.unstripped/VkLayer_khronos_validation.so" "x64-shared/VkLayer_khronos_validation.so" && ../../prebuilt/tools/buildidtool/linux-x64/buildidtool -build-id-dir .build-id -stamp "x64-shared/VkLayer_khronos_validation.so.build-id.stamp" -entry "=x64-shared/VkLayer_khronos_validation.so" -entry ".debug=x64-shared/lib.unstripped/VkLayer_khronos_validation.so"
ld.lld: error: undefined symbol: ValidationStateTracker::PostCallRecordCreateImage(VkDevice_T*, VkImageCreateInfo const*, VkAllocationCallbacks const*, VkImage_T**, VkResult)
>>> referenced by buffer_validation.cpp:2236 (./../../third_party/Vulkan-ValidationLayers/layers/buffer_validation.cpp:2236)
>>>               x64-shared/obj/third_party/Vulkan-ValidationLayers/layers/VkLayer_khronos_validation.buffer_validation.cpp.o:(CoreChecks::PostCallRecordCreateImage(VkDevice_T*, VkImageCreateInfo const*, VkAllocationCallbacks const*, VkImage_T**, VkResult))
>>> referenced by gpu_utils.cpp
>>>               x64-shared/obj/third_party/Vulkan-ValidationLayers/layers/VkLayer_khronos_validation.gpu_utils.cpp.o:(vtable for GpuAssistedBase)
>>> referenced by gpu_validation.cpp
>>>               x64-shared/obj/third_party/Vulkan-ValidationLayers/layers/VkLayer_khronos_validation.gpu_validation.cpp.o:(vtable for GpuAssisted)
>>> referenced 3 more times

ld.lld: error: undefined symbol: ValidationStateTracker::PreCallRecordDestroyImage(VkDevice_T*, VkImage_T*, VkAllocationCallbacks const*)

Many Thanks,
R.Chatsiri

David Turner

unread,
May 15, 2023, 3:21:05 PM5/15/23
to Chatsiri Rattana, discuss
Hello,

Can you tell us how you checked out your Fuchsia source tree, and how you configured your build, i.e. which `fx set ...` command you used before `fx build`?
We need this to reproduce the issue (that we do not see locally), which seems pretty surprising at first glance (the source code in question comes from Vulkan and shouldn't have any issue building, at least the versions that we pinned in your Jiri manifests).

Thanks in advance,

- Digit




--
All posts must follow the Fuchsia Code of Conduct https://fuchsia.dev/fuchsia-src/CODE_OF_CONDUCT or may be removed.
---
You received this message because you are subscribed to the Google Groups "discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+u...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/discuss/374cea7a-8a07-4601-ab59-1ed1150198c7n%40fuchsia.dev.
Reply all
Reply to author
Forward
0 new messages