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