Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Alexandre Belloni" <alexandre.belloni@bootlin.com>
To: Jose Quaresma <quaresma.jose@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH v4 4/4] shaderc: fix the build with glslang 11.1.0
Date: Thu, 28 Jan 2021 23:38:34 +0100	[thread overview]
Message-ID: <20210128223834.GA2544418@piout.net> (raw)
In-Reply-To: <20210124180758.1610301-4-quaresma.jose@gmail.com>

Hello Jose,

On 24/01/2021 18:07:58+0000, Jose Quaresma wrote:
> Drop patches:
>     * 0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch
>       is rejected upstream and is not need when glslang as shared libs.
> 
> Update pacthes:
>     * 0001-cmake-de-vendor-libs-and-disable-git-versioning.patch
>       renamed and refreshed from 0003-cmake-de-vendor-libs-and-disable-git-versioning.patch.
> 

It seems there is still a linking issue when building shaderc-native.
The full log is available here:

https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2978/steps/11/logs/stdio


> Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> ---
>  ...link-order-of-libglslang-and-libHLSL.patch | 49 -------------------
>  ...dor-libs-and-disable-git-versioning.patch} |  4 +-
>  .../shaderc/shaderc_2020.4.bb                 | 10 ++--
>  3 files changed, 9 insertions(+), 54 deletions(-)
>  delete mode 100644 meta/recipes-graphics/shaderc/files/0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch
>  rename meta/recipes-graphics/shaderc/files/{0003-cmake-de-vendor-libs-and-disable-git-versioning.patch => 0001-cmake-de-vendor-libs-and-disable-git-versioning.patch} (94%)
> 
> diff --git a/meta/recipes-graphics/shaderc/files/0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch b/meta/recipes-graphics/shaderc/files/0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch
> deleted file mode 100644
> index 7102e25bcf..0000000000
> --- a/meta/recipes-graphics/shaderc/files/0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch
> +++ /dev/null
> @@ -1,49 +0,0 @@
> -From 0b9468d4face34879214f500b15e810cdd1a81a1 Mon Sep 17 00:00:00 2001
> -From: Niklas Haas <git@haasn.xyz>
> -Date: Tue, 29 May 2018 07:34:00 +0200
> -Subject: [PATCH] Fix the link order of libglslang and libHLSL
> -
> -libglslang depends on libHLSL, so the latter needs to be specified last.
> -This fixes an issue when trying to build shaderc against system-wide
> -versions of libglslang/libHLSL, rather than the in-tree versions from
> -third_party.
> -
> -Additionally, libshaderc_util also depends on SPIRV-Tools
> -
> -Upstream-Status: Backport [21c8be385b3fab5edcb934a6d99f69fd389c4e67]
> -
> -Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> -
> ----
> - glslc/CMakeLists.txt           | 2 +-
> - libshaderc_util/CMakeLists.txt | 4 ++--
> - 2 files changed, 3 insertions(+), 3 deletions(-)
> -
> -diff --git a/glslc/CMakeLists.txt b/glslc/CMakeLists.txt
> -index 31664d1..35b3f19 100644
> ---- a/glslc/CMakeLists.txt
> -+++ b/glslc/CMakeLists.txt
> -@@ -43,7 +43,7 @@ if (SHADERC_ENABLE_WGSL_OUTPUT)
> - endif(SHADERC_ENABLE_WGSL_OUTPUT)
> - 
> - target_link_libraries(glslc PRIVATE
> --  glslang OSDependent OGLCompiler HLSL glslang SPIRV    # Glslang libraries
> -+  glslang OSDependent OGLCompiler glslang SPIRV HLSL    # Glslang libraries
> -   $<$<BOOL:${SHADERC_ENABLE_WGSL_OUTPUT}>:libtint>      # Tint libraries, optional
> -   shaderc_util shaderc                                  # internal Shaderc libraries
> -   ${CMAKE_THREAD_LIBS_INIT})
> -diff --git a/libshaderc_util/CMakeLists.txt b/libshaderc_util/CMakeLists.txt
> -index 48f9991..984cc06 100644
> ---- a/libshaderc_util/CMakeLists.txt
> -+++ b/libshaderc_util/CMakeLists.txt
> -@@ -46,8 +46,8 @@ add_definitions(-DENABLE_HLSL)
> - 
> - find_package(Threads)
> - target_link_libraries(shaderc_util PRIVATE
> --  glslang OSDependent OGLCompiler HLSL glslang SPIRV
> --  SPIRV-Tools-opt ${CMAKE_THREAD_LIBS_INIT})
> -+  glslang OSDependent OGLCompiler glslang HLSL SPIRV
> -+  SPIRV-Tools-opt SPIRV-Tools ${CMAKE_THREAD_LIBS_INIT})
> - 
> - shaderc_add_tests(
> -   TEST_PREFIX shaderc_util
> diff --git a/meta/recipes-graphics/shaderc/files/0003-cmake-de-vendor-libs-and-disable-git-versioning.patch b/meta/recipes-graphics/shaderc/files/0001-cmake-de-vendor-libs-and-disable-git-versioning.patch
> similarity index 94%
> rename from meta/recipes-graphics/shaderc/files/0003-cmake-de-vendor-libs-and-disable-git-versioning.patch
> rename to meta/recipes-graphics/shaderc/files/0001-cmake-de-vendor-libs-and-disable-git-versioning.patch
> index e4e3f0be1e..40cc84df26 100644
> --- a/meta/recipes-graphics/shaderc/files/0003-cmake-de-vendor-libs-and-disable-git-versioning.patch
> +++ b/meta/recipes-graphics/shaderc/files/0001-cmake-de-vendor-libs-and-disable-git-versioning.patch
> @@ -1,4 +1,4 @@
> -From 180250f098e0ab899eff0db3708d9693f3486ff4 Mon Sep 17 00:00:00 2001
> +From a07ac322a5a5fd4f0339913eb4456321ad1a69fd Mon Sep 17 00:00:00 2001
>  From: Jose Quaresma <quaresma.jose@gmail.com>
>  Date: Sat, 17 Oct 2020 12:51:50 +0100
>  Subject: [PATCH] cmake: de-vendor libs and disable git versioning
> @@ -32,7 +32,7 @@ index 5c74cd8..9451fbc 100644
>   add_custom_target(build-version
>     ${PYTHON_EXECUTABLE}
>  diff --git a/glslc/CMakeLists.txt b/glslc/CMakeLists.txt
> -index 35b3f19..52006b8 100644
> +index 31664d1..358d91b 100644
>  --- a/glslc/CMakeLists.txt
>  +++ b/glslc/CMakeLists.txt
>  @@ -53,7 +53,6 @@ shaderc_default_compile_options(glslc_exe)
> diff --git a/meta/recipes-graphics/shaderc/shaderc_2020.4.bb b/meta/recipes-graphics/shaderc/shaderc_2020.4.bb
> index e886e81d0e..18a08ee6c5 100644
> --- a/meta/recipes-graphics/shaderc/shaderc_2020.4.bb
> +++ b/meta/recipes-graphics/shaderc/shaderc_2020.4.bb
> @@ -8,16 +8,20 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
>  
>  SRCREV = "0dbd899941a43ffd55df527d65128b3b66e75c9c"
>  SRC_URI = "git://github.com/google/shaderc.git;protocol=https;branch=main \
> -           file://0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch \
> -           file://0003-cmake-de-vendor-libs-and-disable-git-versioning.patch \
> +           file://0001-cmake-de-vendor-libs-and-disable-git-versioning.patch \
>             "
> +UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$"
>  S = "${WORKDIR}/git"
>  
>  inherit cmake python3native
>  
>  DEPENDS = "spirv-tools glslang"
>  
> -EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON"
> +EXTRA_OECMAKE = " \
> +    -DCMAKE_BUILD_TYPE=Release \
> +    -DSHADERC_SKIP_TESTS=ON \
> +    -Dglslang_SOURCE_DIR=${STAGING_INCDIR}/glslang \
> +"
>  
>  BBCLASSEXTEND = "native nativesdk"
>  
> -- 
> 2.30.0
> 

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2021-01-28 22:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-24 18:07 [PATCH v4 1/4] glslang: upgrade 8.13.3743 -> 11.1.0 Jose Quaresma
2021-01-24 18:07 ` [PATCH v4 2/4] glslang: enable shared libs Jose Quaresma
2021-01-24 18:07 ` [PATCH v4 3/4] shaderc: avoid reproducible issues Jose Quaresma
2021-01-24 18:07 ` [PATCH v4 4/4] shaderc: fix the build with glslang 11.1.0 Jose Quaresma
2021-01-28 22:38   ` Alexandre Belloni [this message]
2021-01-28 22:44     ` [OE-core] " Richard Purdie
     [not found]     ` <165E86C2AF927994.17182@lists.openembedded.org>
2021-01-29 11:42       ` Richard Purdie
     [not found]       ` <165EB138E76788A6.12832@lists.openembedded.org>
2021-01-29 14:24         ` Richard Purdie
2021-01-29 22:14           ` Jose Quaresma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210128223834.GA2544418@piout.net \
    --to=alexandre.belloni@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=quaresma.jose@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox