openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/2] spirv-tools: fix INTERFACE_LINK_LIBRARIES cmake prop
@ 2023-06-06 15:13 Vincent Davis Jr
  2023-06-06 15:13 ` [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0 Vincent Davis Jr
  0 siblings, 1 reply; 12+ messages in thread
From: Vincent Davis Jr @ 2023-06-06 15:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: Vincent Davis Jr

The output of spirv-tools specifically SPIRV-ToolsTarget.cmake is
utilized in other recipes. If other recipe utilize cmake and include
SPIRV-Tools in target_link_libraries. I leads to errors such as

error: '../recipe-sysroot/usr/lib',
needed by 'layers/libVkLayer_khronos_validation.so',
missing and no known rule to make it

This is due to cmake pulling in the properties set in
SPIRV-ToolsTarget.cmake. Key property being
INTERFACE_LINK_LIBRARIES.

With the current setup do_install:append:class-target updates
SPIRV-ToolsTarget.cmake package installed file to bellow

set_target_properties(SPIRV-Tools PROPERTIES
    INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
    INTERFACE_LINK_LIBRARIES "${_IMPORT_PREFIX}/lib"
)

set_target_properties(SPIRV-Tools-shared PROPERTIES
    INTERFACE_COMPILE_DEFINITIONS "SPIRV_TOOLS_SHAREDLIB"
    INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
    INTERFACE_LINK_LIBRARIES "${_IMPORT_PREFIX}/lib"
)

If base_libdir isn't lib, but lib64 you get the error
described at the being of commit message as lib directory
doesn't exists.

Solution replace hardcoded "lib" with "${base_libdir}".

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
 meta/recipes-graphics/spir/spirv-tools_1.3.243.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/spir/spirv-tools_1.3.243.0.bb b/meta/recipes-graphics/spir/spirv-tools_1.3.243.0.bb
index c57acc5a11..21f9dd9650 100644
--- a/meta/recipes-graphics/spir/spirv-tools_1.3.243.0.bb
+++ b/meta/recipes-graphics/spir/spirv-tools_1.3.243.0.bb
@@ -32,7 +32,7 @@ do_install:append:class-target() {
     # Properly set _IMPORT_PREFIX in INTERFACE_LINK_LIBRARIES so that dependent
     # tools can find the right library
     sed -i ${D}${libdir}/cmake/SPIRV-Tools/SPIRV-ToolsTarget.cmake \
-        -e 's:INTERFACE_LINK_LIBRARIES.*$:INTERFACE_LINK_LIBRARIES "\$\{_IMPORT_PREFIX\}/lib":'
+        -e 's:INTERFACE_LINK_LIBRARIES.*$:INTERFACE_LINK_LIBRARIES "\$\{_IMPORT_PREFIX\}\${base_libdir}":'
 }
 
 # all the libraries are unversioned, so don't pack it on PN-dev
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-06 15:13 [PATCH v3 1/2] spirv-tools: fix INTERFACE_LINK_LIBRARIES cmake prop Vincent Davis Jr
@ 2023-06-06 15:13 ` Vincent Davis Jr
  2023-06-09  2:11   ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 12+ messages in thread
From: Vincent Davis Jr @ 2023-06-06 15:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: Vincent Davis Jr

Add a recipe to build the Khronos official Vulkan validation
layers that can assist developers in verifying that their
applications correctly use the Vulkan APIs.

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
---
 meta/conf/distro/include/maintainers.inc      |  1 +
 .../vulkan-validation-layers_1.3.243.0.bb     | 51 +++++++++++++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 meta/recipes-graphics/vulkan/vulkan-validation-layers_1.3.243.0.bb

diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index 0f7b7287bb..b06ae43dac 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -827,6 +827,7 @@ RECIPE_MAINTAINER:pn-vulkan-headers = "Anuj Mittal <anuj.mittal@intel.com>"
 RECIPE_MAINTAINER:pn-vulkan-loader = "Anuj Mittal <anuj.mittal@intel.com>"
 RECIPE_MAINTAINER:pn-vulkan-samples = "Ross Burton <ross.burton@arm.com>"
 RECIPE_MAINTAINER:pn-vulkan-tools = "Anuj Mittal <anuj.mittal@intel.com>"
+RECIPE_MAINTAINER:pn-vulkan-validation-layers = "Vincent Davis Jr <vince@underview.tech>"
 RECIPE_MAINTAINER:pn-waffle = "Ross Burton <ross.burton@arm.com>"
 RECIPE_MAINTAINER:pn-watchdog = "Alexander Kanavin <alex.kanavin@gmail.com>"
 RECIPE_MAINTAINER:pn-watchdog-config = "Alexander Kanavin <alex.kanavin@gmail.com>"
diff --git a/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.3.243.0.bb b/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.3.243.0.bb
new file mode 100644
index 0000000000..6e1ef7a05d
--- /dev/null
+++ b/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.3.243.0.bb
@@ -0,0 +1,51 @@
+SUMMARY = "Vulkan Validation layers"
+DESCRIPTION = "Khronos official Vulkan validation layers to assist developers \
+in verifying that their applications correctly use the Vulkan API"
+HOMEPAGE = "https://www.khronos.org/vulkan/"
+BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-ValidationLayers"
+SECTION = "libs"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8df9e8826734226d08cb412babfa599c"
+
+SRC_URI = "git://git@github.com/KhronosGroup/Vulkan-ValidationLayers.git;branch=sdk-1.3.243;protocol=https"
+SRCREV = "4ac0fd8e6cb3d49105d707d9ec07f0f3aa0943d6"
+
+S = "${WORKDIR}/git"
+
+REQUIRED_DISTRO_FEATURES = "vulkan"
+
+DEPENDS = "vulkan-headers vulkan-loader spirv-headers spirv-tools glslang"
+
+# BUILD_TESTS            - Not required for OE builds
+# USE_ROBIN_HOOD_HASHING - Provides substantial performance improvements on all platforms.
+#                          Yocto project doesn't contain a recipe for package so disabled it.
+EXTRA_OECMAKE = "\
+    -DBUILD_TESTS=OFF \
+    -DUSE_ROBIN_HOOD_HASHING=OFF \
+    -DGLSLANG_INSTALL_DIR=${STAGING_DATADIR} \
+    -DVULKAN_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \
+    -DSPIRV_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \
+    "
+
+PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr"
+PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland"
+
+PACKAGECONFIG ?= "\
+    ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} \
+    ${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)} \
+    "
+
+inherit cmake features_check pkgconfig
+
+FILES:${PN} += "${datadir}/vulkan ${libdir}"
+
+SOLIBS = ".so"
+FILES_SOLIBSDEV = ""
+
+# These recipes need to be updated in lockstep with each other:
+# glslang, vulkan-headers, vulkan-loader, vulkan-tools,
+# vulkan-validation-layers, spirv-headers, spirv-tools
+# The tags versions should always be sdk-x.y.z, as this is what
+# upstream considers a release.
+UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-06 15:13 ` [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0 Vincent Davis Jr
@ 2023-06-09  2:11   ` Khem Raj
  2023-06-09  5:20     ` Vincent Davis Jr
  0 siblings, 1 reply; 12+ messages in thread
From: Khem Raj @ 2023-06-09  2:11 UTC (permalink / raw)
  To: Vincent Davis Jr; +Cc: openembedded-core

I am seeing build failure on imx8 platform using clang.

https://errors.yoctoproject.org/Errors/Details/707981/

On Tue, Jun 6, 2023 at 8:14 AM Vincent Davis Jr <vince@underview.tech> wrote:
>
> Add a recipe to build the Khronos official Vulkan validation
> layers that can assist developers in verifying that their
> applications correctly use the Vulkan APIs.
>
> Signed-off-by: Vincent Davis Jr <vince@underview.tech>
> ---
>  meta/conf/distro/include/maintainers.inc      |  1 +
>  .../vulkan-validation-layers_1.3.243.0.bb     | 51 +++++++++++++++++++
>  2 files changed, 52 insertions(+)
>  create mode 100644 meta/recipes-graphics/vulkan/vulkan-validation-layers_1.3.243.0.bb
>
> diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
> index 0f7b7287bb..b06ae43dac 100644
> --- a/meta/conf/distro/include/maintainers.inc
> +++ b/meta/conf/distro/include/maintainers.inc
> @@ -827,6 +827,7 @@ RECIPE_MAINTAINER:pn-vulkan-headers = "Anuj Mittal <anuj.mittal@intel.com>"
>  RECIPE_MAINTAINER:pn-vulkan-loader = "Anuj Mittal <anuj.mittal@intel.com>"
>  RECIPE_MAINTAINER:pn-vulkan-samples = "Ross Burton <ross.burton@arm.com>"
>  RECIPE_MAINTAINER:pn-vulkan-tools = "Anuj Mittal <anuj.mittal@intel.com>"
> +RECIPE_MAINTAINER:pn-vulkan-validation-layers = "Vincent Davis Jr <vince@underview.tech>"
>  RECIPE_MAINTAINER:pn-waffle = "Ross Burton <ross.burton@arm.com>"
>  RECIPE_MAINTAINER:pn-watchdog = "Alexander Kanavin <alex.kanavin@gmail.com>"
>  RECIPE_MAINTAINER:pn-watchdog-config = "Alexander Kanavin <alex.kanavin@gmail.com>"
> diff --git a/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.3.243.0.bb b/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.3.243.0.bb
> new file mode 100644
> index 0000000000..6e1ef7a05d
> --- /dev/null
> +++ b/meta/recipes-graphics/vulkan/vulkan-validation-layers_1.3.243.0.bb
> @@ -0,0 +1,51 @@
> +SUMMARY = "Vulkan Validation layers"
> +DESCRIPTION = "Khronos official Vulkan validation layers to assist developers \
> +in verifying that their applications correctly use the Vulkan API"
> +HOMEPAGE = "https://www.khronos.org/vulkan/"
> +BUGTRACKER = "https://github.com/KhronosGroup/Vulkan-ValidationLayers"
> +SECTION = "libs"
> +
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8df9e8826734226d08cb412babfa599c"
> +
> +SRC_URI = "git://git@github.com/KhronosGroup/Vulkan-ValidationLayers.git;branch=sdk-1.3.243;protocol=https"
> +SRCREV = "4ac0fd8e6cb3d49105d707d9ec07f0f3aa0943d6"
> +
> +S = "${WORKDIR}/git"
> +
> +REQUIRED_DISTRO_FEATURES = "vulkan"
> +
> +DEPENDS = "vulkan-headers vulkan-loader spirv-headers spirv-tools glslang"
> +
> +# BUILD_TESTS            - Not required for OE builds
> +# USE_ROBIN_HOOD_HASHING - Provides substantial performance improvements on all platforms.
> +#                          Yocto project doesn't contain a recipe for package so disabled it.
> +EXTRA_OECMAKE = "\
> +    -DBUILD_TESTS=OFF \
> +    -DUSE_ROBIN_HOOD_HASHING=OFF \
> +    -DGLSLANG_INSTALL_DIR=${STAGING_DATADIR} \
> +    -DVULKAN_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \
> +    -DSPIRV_HEADERS_INSTALL_DIR=${STAGING_EXECPREFIXDIR} \
> +    "
> +
> +PACKAGECONFIG[x11] = "-DBUILD_WSI_XLIB_SUPPORT=ON -DBUILD_WSI_XCB_SUPPORT=ON, -DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF, libxcb libx11 libxrandr"
> +PACKAGECONFIG[wayland] = "-DBUILD_WSI_WAYLAND_SUPPORT=ON, -DBUILD_WSI_WAYLAND_SUPPORT=OFF, wayland"
> +
> +PACKAGECONFIG ?= "\
> +    ${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} \
> +    ${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)} \
> +    "
> +
> +inherit cmake features_check pkgconfig
> +
> +FILES:${PN} += "${datadir}/vulkan ${libdir}"
> +
> +SOLIBS = ".so"
> +FILES_SOLIBSDEV = ""
> +
> +# These recipes need to be updated in lockstep with each other:
> +# glslang, vulkan-headers, vulkan-loader, vulkan-tools,
> +# vulkan-validation-layers, spirv-headers, spirv-tools
> +# The tags versions should always be sdk-x.y.z, as this is what
> +# upstream considers a release.
> +UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)"
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#182446): https://lists.openembedded.org/g/openembedded-core/message/182446
> Mute This Topic: https://lists.openembedded.org/mt/99365321/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-09  2:11   ` [OE-core] " Khem Raj
@ 2023-06-09  5:20     ` Vincent Davis Jr
  2023-06-09  5:58       ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 12+ messages in thread
From: Vincent Davis Jr @ 2023-06-09  5:20 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]

While I setup build environment for imx8 platform.

Does updating VULKAN_HEADERS_INSTALL_DIR to
-DVULKAN_HEADERS_INSTALL_DIR=${STAGING_DATADIR}
change anything?

[-- Attachment #2: Type: text/html, Size: 182 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-09  5:20     ` Vincent Davis Jr
@ 2023-06-09  5:58       ` Khem Raj
  2023-06-09 18:41         ` Vincent Davis Jr
  0 siblings, 1 reply; 12+ messages in thread
From: Khem Raj @ 2023-06-09  5:58 UTC (permalink / raw)
  To: Vincent Davis Jr; +Cc: openembedded-core

On Thu, Jun 8, 2023 at 10:20 PM Vincent Davis Jr <vince@underview.tech> wrote:
>
> While I setup build environment for imx8 platform.
>
> Does updating VULKAN_HEADERS_INSTALL_DIR to
> -DVULKAN_HEADERS_INSTALL_DIR=${STAGING_DATADIR}
> change anything?

Not much. Errors remains same.

> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#182529): https://lists.openembedded.org/g/openembedded-core/message/182529
> Mute This Topic: https://lists.openembedded.org/mt/99365321/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-09  5:58       ` [OE-core] " Khem Raj
@ 2023-06-09 18:41         ` Vincent Davis Jr
  2023-06-09 20:57           ` Vincent Davis Jr
  0 siblings, 1 reply; 12+ messages in thread
From: Vincent Davis Jr @ 2023-06-09 18:41 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]

Out of curiosity why does meta-freescale downgrade vulkan version to v1.2.182.0?

Either way adding vulkan-validation-layers_1.2.182.0.bb to
https://git.yoctoproject.org/meta-freescale/tree/recipes-downgrade/vulkan ( https://git.yoctoproject.org/meta-freescale/tree/recipes-downgrade/vulkan )
and
PREFERRED_VERSION_vulkan-validation-layers:imxvulkan ??= "1.2.182.0" to
https://git.yoctoproject.org/meta-freescale/tree/conf/machine/include/imx-base.inc
in meta-freescale. Fixes above error for me, but leads to.

vulkan-validation-layers/1.2.182.0-r0/git/layers/generated/chassis.cpp:383:10: error: variable 'skip' set but not used [-Werror,-Wunused-but-set-variable]
|     bool skip = false;

[-- Attachment #2: Type: text/html, Size: 933 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-09 18:41         ` Vincent Davis Jr
@ 2023-06-09 20:57           ` Vincent Davis Jr
  2023-06-11  6:55             ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 12+ messages in thread
From: Vincent Davis Jr @ 2023-06-09 20:57 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 184 bytes --]

Created patch series should be fine to build now

1. https://lists.yoctoproject.org/g/meta-freescale/message/24918
2. https://lists.yoctoproject.org/g/meta-freescale/message/24919

[-- Attachment #2: Type: text/html, Size: 303 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-09 20:57           ` Vincent Davis Jr
@ 2023-06-11  6:55             ` Khem Raj
  2023-06-11 16:39               ` Khem Raj
  0 siblings, 1 reply; 12+ messages in thread
From: Khem Raj @ 2023-06-11  6:55 UTC (permalink / raw)
  To: Vincent Davis Jr; +Cc: openembedded-core

seen more failures on qemux86 and qemumips

https://errors.yoctoproject.org/Errors/Details/708137/

On Fri, Jun 9, 2023 at 1:57 PM Vincent Davis Jr <vince@underview.tech> wrote:
>
> Created patch series should be fine to build now
>
> 1. https://lists.yoctoproject.org/g/meta-freescale/message/24918
> 2. https://lists.yoctoproject.org/g/meta-freescale/message/24919
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#182598): https://lists.openembedded.org/g/openembedded-core/message/182598
> Mute This Topic: https://lists.openembedded.org/mt/99365321/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [OE-core] [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-11  6:55             ` [OE-core] " Khem Raj
@ 2023-06-11 16:39               ` Khem Raj
  2023-06-11 17:53                 ` Vincent Davis Jr
                                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Khem Raj @ 2023-06-11 16:39 UTC (permalink / raw)
  To: Vincent Davis Jr; +Cc: openembedded-core

its failing on all qemu arches for me, so I looked a bit more into it,
Some differences are  that
my distro uses usrmerge feature and clang compiler. Secondly the error
is because a spurious target
is added to generated makefiles which then fails.

| NOTE: cmake --build
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/vulkan-validation-layers/1.3.243.0-r0/build
--target all --
| ninja: error:
'/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/vulkan-validation-layers/1.3.243.0-r0/recipe-sysroot/usr/usr/lib',
needed by 'layers/libVkLayer_khronos_validation.so', missing and no
known rule to make it

seems to arise from autodetection of cmake modules, so somehow when
SPIRV-Tools target is added
then it ends up adding the bad target
LINK_LIBRARIES = layers/libVkLayer_utils.a
/mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/vulkan-validation-layers/1.3.243.0-r0/recipe-sysroot/usr/lib/libSPIRV-Tools.so
 /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux/vulkan-validation-layers/1.3.243.0-r0/recipe-sysroot/usr/usr/lib

I narrowed it further down to

diff --git a/layers/CMakeLists.txt b/layers/CMakeLists.txt
index 1a67fac2e..ffd031c62 100644
--- a/layers/CMakeLists.txt
+++ b/layers/CMakeLists.txt
@@ -96,7 +96,7 @@ find_package(SPIRV-Headers REQUIRED CONFIG QUIET)
 target_link_libraries(VVL-SPIRV-LIBS INTERFACE SPIRV-Headers::SPIRV-Headers)

 find_package(SPIRV-Tools-opt REQUIRED CONFIG QUIET)
-target_link_libraries(VVL-SPIRV-LIBS INTERFACE SPIRV-Tools-opt)
+#target_link_libraries(VVL-SPIRV-LIBS INTERFACE SPIRV-Tools-opt)

 find_package(SPIRV-Tools REQUIRED CONFIG QUIET)

@@ -104,7 +104,7 @@ find_package(SPIRV-Tools REQUIRED CONFIG QUIET)
 # The targets available from SPIRV-Tools change depending on how
SPIRV_TOOLS_BUILD_STATIC is set.
 # Try to handle all possible combinations so that we work with
externally built packages.
 if (TARGET SPIRV-Tools)
-    target_link_libraries(VVL-SPIRV-LIBS INTERFACE SPIRV-Tools)
+#    target_link_libraries(VVL-SPIRV-LIBS INTERFACE SPIRV-Tools)
 elseif(TARGET SPIRV-Tools-static)
     target_link_libraries(VVL-SPIRV-LIBS INTERFACE SPIRV-Tools-static)
 elseif(TARGET SPIRV-Tools-shared)

so it seems SPIRV-tools package might have this issue or something more to it.

you can reproduce this easily with yoe distro for any qemu target project.



On Sat, Jun 10, 2023 at 11:55 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> seen more failures on qemux86 and qemumips
>
> https://errors.yoctoproject.org/Errors/Details/708137/
>
> On Fri, Jun 9, 2023 at 1:57 PM Vincent Davis Jr <vince@underview.tech> wrote:
> >
> > Created patch series should be fine to build now
> >
> > 1. https://lists.yoctoproject.org/g/meta-freescale/message/24918
> > 2. https://lists.yoctoproject.org/g/meta-freescale/message/24919
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#182598): https://lists.openembedded.org/g/openembedded-core/message/182598
> > Mute This Topic: https://lists.openembedded.org/mt/99365321/1997914
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-11 16:39               ` Khem Raj
@ 2023-06-11 17:53                 ` Vincent Davis Jr
  2023-06-11 17:56                 ` Vincent Davis Jr
  2023-06-11 20:30                 ` Vincent Davis Jr
  2 siblings, 0 replies; 12+ messages in thread
From: Vincent Davis Jr @ 2023-06-11 17:53 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

Yeah, it's related to this issue here

https://lists.openembedded.org/g/openembedded-core/message/173249

And yeah vulkan-validation-layers cmake pulls in the properties set in
SPIRV-ToolsTarget.cmake during the configure stage. The key cmake
property being INTERFACE_LINK_LIBRARIES.

Commit message here should explain more
https://lists.openembedded.org/g/openembedded-core/message/182445

What's BASE_LIB set to on qemu machines? Thought process is that it's
set to "usr/lib" and not "lib".

[-- Attachment #2: Type: text/html, Size: 777 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-11 16:39               ` Khem Raj
  2023-06-11 17:53                 ` Vincent Davis Jr
@ 2023-06-11 17:56                 ` Vincent Davis Jr
  2023-06-11 20:30                 ` Vincent Davis Jr
  2 siblings, 0 replies; 12+ messages in thread
From: Vincent Davis Jr @ 2023-06-11 17:56 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 83 bytes --]

Working to reproduce on my end to be sure it nothing more than changing BASE_LIB.

[-- Attachment #2: Type: text/html, Size: 83 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0
  2023-06-11 16:39               ` Khem Raj
  2023-06-11 17:53                 ` Vincent Davis Jr
  2023-06-11 17:56                 ` Vincent Davis Jr
@ 2023-06-11 20:30                 ` Vincent Davis Jr
  2 siblings, 0 replies; 12+ messages in thread
From: Vincent Davis Jr @ 2023-06-11 20:30 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

Hey Khem,

Thanks, the perp seems to be usrmerge in distro features.
Creating patch to account for it in spirv-tools recipe.

[-- Attachment #2: Type: text/html, Size: 142 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-06-11 20:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-06 15:13 [PATCH v3 1/2] spirv-tools: fix INTERFACE_LINK_LIBRARIES cmake prop Vincent Davis Jr
2023-06-06 15:13 ` [PATCH v3 2/2] vulkan-validation-layers: add new recipe v1.3.243.0 Vincent Davis Jr
2023-06-09  2:11   ` [OE-core] " Khem Raj
2023-06-09  5:20     ` Vincent Davis Jr
2023-06-09  5:58       ` [OE-core] " Khem Raj
2023-06-09 18:41         ` Vincent Davis Jr
2023-06-09 20:57           ` Vincent Davis Jr
2023-06-11  6:55             ` [OE-core] " Khem Raj
2023-06-11 16:39               ` Khem Raj
2023-06-11 17:53                 ` Vincent Davis Jr
2023-06-11 17:56                 ` Vincent Davis Jr
2023-06-11 20:30                 ` Vincent Davis Jr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).