Vulkan build error on imx8qm

Hi,

I have the same problem than Vulkan build error on imx8 - Toradex Community building image for Apalis IMX8QM board.

I am following step by step the procedure : Build Apalis iMX8/Colibri iMX8X OpenEmbedded/Yocto Project Bring-up Image

I have the following error building Vulkan :

ERROR: vulkan-1.0.65.2-r0 do_compile: Function failed: do_compile (log file is located at /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/temp/log.do_compile.1939)
ERROR: Logfile of failure stored in: /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/temp/log.do_compile.1939
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: VERBOSE=1 cmake --build /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build --target all -- -j 3
| [1/47] cd /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers && mkdir -p /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers/staging-json && cp /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/linux/VkLayer_unique_objects.json /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers/staging-json && sed -i -e "/\"library_path\":/s\$./libVkLayer\$/usr/lib/libVkLayer\$" /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers/staging-json/VkLayer_unique_objects.json
| [2/47] cd /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers && mkdir -p /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers/staging-json && cp /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/linux/VkLayer_core_validation.json /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers/staging-json && sed -i -e "/\"library_path\":/s\$./libVkLayer\$/usr/lib/libVkLayer\$" /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers/staging-json/VkLayer_core_validation.json
| [3/47] cd /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers && ln -sf /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/linux/VkLayer_standard_validation.json
| [4/47] cd /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers && mkdir -p /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers/staging-json && cp /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/linux/VkLayer_object_tracker.json /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers/staging-json && sed -i -e "/\"library_path\":/s\$./libVkLayer\$/usr/lib/libVkLayer\$" /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers/staging-json/VkLayer_object_tracker.json
| [5/47] cd /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers && /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/scripts/lvl_genvk.py -registry /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/scripts/vk.xml object_tracker.cpp
| * Building object_tracker.cpp
| Error: Could not find vk_validation_error_messages.h
| [6/47] cd /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers && /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot-native/usr/bin/python3-native/python3 /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/scripts/lvl_genvk.py -registry /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/scripts/vk.xml parameter_validation.cpp
| * Building parameter_validation.cpp
| Error: Could not find vk_validation_error_messages.h
| [7/47] /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++  -DAPI_NAME=\"Vulkan\" -DFALLBACK_CONFIG_DIRS=\"/etc/xdg\" -DFALLBACK_DATA_DIRS=\"/usr/local/share:/usr/share\" -DSYSCONFDIR=\"/etc\" -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_WAYLAND_KHX -DVkLayer_object_tracker_EXPORTS -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot/usr/include -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/include -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/../loader -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/../include/vulkan -Ilayers -I. --sysroot=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0=/usr/src/debug/vulkan/1.0.65.2-r0 -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden   --sysroot=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -fno-builtin-memcmp -Wimplicit-fallthrough=0 -std=c++11 -fno-rtti -fvisibility=hidden -Wpointer-arith -Wno-unused-function -Wno-sign-compare -fPIC -MD -MT layers/CMakeFiles/VkLayer_object_tracker.dir/object_tracker.cpp.o -MF layers/CMakeFiles/VkLayer_object_tracker.dir/object_tracker.cpp.o.d -o layers/CMakeFiles/VkLayer_object_tracker.dir/object_tracker.cpp.o -c layers/object_tracker.cpp
| FAILED: layers/CMakeFiles/VkLayer_object_tracker.dir/object_tracker.cpp.o
| /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++  -DAPI_NAME=\"Vulkan\" -DFALLBACK_CONFIG_DIRS=\"/etc/xdg\" -DFALLBACK_DATA_DIRS=\"/usr/local/share:/usr/share\" -DSYSCONFDIR=\"/etc\" -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_WAYLAND_KHX -DVkLayer_object_tracker_EXPORTS -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot/usr/include -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/include -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/../loader -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/../include/vulkan -Ilayers -I. --sysroot=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0=/usr/src/debug/vulkan/1.0.65.2-r0 -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden   --sysroot=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -fno-builtin-memcmp -Wimplicit-fallthrough=0 -std=c++11 -fno-rtti -fvisibility=hidden -Wpointer-arith -Wno-unused-function -Wno-sign-compare -fPIC -MD -MT layers/CMakeFiles/VkLayer_object_tracker.dir/object_tracker.cpp.o -MF layers/CMakeFiles/VkLayer_object_tracker.dir/object_tracker.cpp.o.d -o layers/CMakeFiles/VkLayer_object_tracker.dir/object_tracker.cpp.o -c layers/object_tracker.cpp
| aarch64-poky-linux-g++: error: layers/object_tracker.cpp: No such file or directory
| aarch64-poky-linux-g++: fatal error: no input files
| compilation terminated.
| [8/47] : && /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++ -fPIC --sysroot=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0=/usr/src/debug/vulkan/1.0.65.2-r0 -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden   --sysroot=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -fno-builtin-memcmp -Wimplicit-fallthrough=0 -std=c++11 -fno-rtti -fvisibility=hidden -Wpointer-arith -Wno-unused-function -Wno-sign-compare  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-Bsymbolic,--exclude-libs,ALL -shared -Wl,-soname,libVkLayer_core_validation.so -o layers/libVkLayer_core_validation.so layers/CMakeFiles/VkLayer_core_validation.dir/core_validation.cpp.o layers/CMakeFiles/VkLayer_core_validation.dir/vk_layer_table.cpp.o layers/CMakeFiles/VkLayer_core_validation.dir/descriptor_sets.cpp.o layers/CMakeFiles/VkLayer_core_validation.dir/buffer_validation.cpp.o layers/CMakeFiles/VkLayer_core_validation.dir/shader_validation.cpp.o  -Wl,-rpath,/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/build/layers: layers/libVkLayer_utils.so -Wl,-Bstatic -lSPIRV-Tools-opt -lSPIRV-Tools -Wl,-Bdynamic && :
| [9/47] /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-g++  -DAPI_NAME=\"Vulkan\" -DFALLBACK_CONFIG_DIRS=\"/etc/xdg\" -DFALLBACK_DATA_DIRS=\"/usr/local/share:/usr/share\" -DSYSCONFDIR=\"/etc\" -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_WAYLAND_KHX -DVkLayer_parameter_validation_EXPORTS -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot/usr/include -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/include -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/../loader -I/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/../include/vulkan -Ilayers -I. --sysroot=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0=/usr/src/debug/vulkan/1.0.65.2-r0 -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot= -fdebug-prefix-map=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot-native=  -fvisibility-inlines-hidden   --sysroot=/home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/recipe-sysroot -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -fno-builtin-memcmp -Wimplicit-fallthrough=0 -std=c++11 -fno-rtti -fvisibility=hidden -Wpointer-arith -Wno-unused-function -Wno-sign-compare -fPIC -MD -MT layers/CMakeFiles/VkLayer_parameter_validation.dir/vk_layer_table.cpp.o -MF layers/CMakeFiles/VkLayer_parameter_validation.dir/vk_layer_table.cpp.o.d -o layers/CMakeFiles/VkLayer_parameter_validation.dir/vk_layer_table.cpp.o -c /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/git/layers/vk_layer_table.cpp
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/dev/Desktop/Yocto/imx-yocto-bsp/build/tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/temp/log.do_compile.1939)
ERROR: Task (/home/dev/Desktop/Yocto/imx-yocto-bsp/sources/poky/meta/recipes-graphics/vulkan/vulkan_1.0.65.2.bb:do_compile) failed with exit code '1'

My build configuration is :

    Build Configuration:
    BB_VERSION           = "1.38.0"
    BUILD_SYS            = "x86_64-linux"
    NATIVELSBSTRING      = "ubuntu-16.04"
    TARGET_SYS           = "aarch64-poky-linux"
    MACHINE              = "apalis-imx8"
    DISTRO               = "fsl-imx-xwayland"
    DISTRO_VERSION       = "4.14-sumo"
    TUNE_FEATURES        = "aarch64"
    TARGET_FPU           = ""
    meta                 
    meta-poky            = "HEAD:95ebfb33e4c0aa9669f318e061a4d7540b84f4ac"
    meta-oe              
    meta-multimedia      = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
    meta-freescale       = "HEAD:407c6cf408969445031a492e2d25e0e2749582ea"
    meta-freescale-3rdparty = "HEAD:88a29631809d1af0df618245430db29f2a7012b5"
    meta-freescale-distro = "HEAD:f7e2216e93aff14ac32728a13637a48df436b7f4"
    meta-bsp             
    meta-sdk             = "HEAD:55754a3cc79759f18fa1df88ae2ffa91fbd87d84"
    meta-browser         = "HEAD:75640e14e325479c076b6272b646be7a239c18aa"
    meta-gnome           
    meta-networking      
    meta-python          
    meta-filesystems     = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
    meta-qt5             = "HEAD:d4e7f73d04e8448d326b6f89908701e304e37d65"

My build environment is ubuntu 16.04 (LTS). Target is Apalis iMX8QM V1.0B.

I already tried to update Python according to https://community.nxp.com/thread/496054 but it didn’t help.

Regards,

Thomas

Please note that those bring-up images are long since obsolete and no longer supported. Please update to our latest BSP 3.0b2 Art your earliest convenience.

Hi

Have you already tried going through this troubleshooting tips and what were the results?

vk_validation_error_messages.h seems to be used to generated other files and is symlinked into the build directory.
What is the output of:

grep vk_validation_error_messages tmp/work/aarch64-mx8-poky-linux/vulkan/1.0.65.2-r0/temp/ -r

Max

Hi

Yes I tried that but it didn’t work.

Thomas

Could you post some error log in text format? Thanks.