The 64 bit only build below passed full build

--- onevpl_2021.2.2.bb.old      2021-05-04 08:43:41.601247001 +0800
+++ onevpl_2021.2.2.bb  2021-05-04 08:42:07.277242304 +0800
@@ -14,6 +14,10 @@
 SRCREV = "17968d8d2299352f5a9e09388d24e81064c81c87"
 S = "${WORKDIR}/git"

+# Only for 64 bit
+COMPATIBLE_HOST = '(x86_64).*-linux'
+COMPATIBLE_HOST_x86-x32 = "null"
+
 inherit cmake
 DEPENDS = "libva"

-----Original Message-----
From: Mittal, Anuj <[email protected]> 
Sent: Friday, April 30, 2021 2:10 PM
To: Saini, Naveen Kumar <[email protected]>; Yew, Chang Ching 
<[email protected]>
Cc: [email protected]
Subject: Re: [meta-intel] [PATCH] onevpl: add recipe

Also should be disabled for 32 bit:

https://github.com/oneapi-src/oneVPL/blob/master/dispatcher/linux/mfxloader.cpp#L33

Otherwise:

/home/pokybuild/yocto-autobuilder-new/yocto-worker/nightly-musl-core2-
32/build/build/tmp/work/core2-32-poky-linux-musl/onevpl/2021.2.2-
r0/git/dispatcher/linux/mfxloader.cpp:33:6: error: #error Unsupported 
architecture
   33 |     #error Unsupported architecture
      |      ^~~~~

On Fri, 2021-04-30 at 02:11 +0000, Yew, Chang Ching wrote:
> Hi Naveen,
>  
> The build failed at do_install_append() do_install_append () {
>         # delete examples source files
>         find "${D}${libdir}/vpl/examples/" -type d \! -name 'examples'
> \! -name 'content' -exec rm -rf {} +
> }
>  
> ${libdir} translates to usr/ib64 but the outcome lib path is usr/lib
>  
> Build log
> -- Installing: /media/pedgms/sdh1/cyew3/adl/yocto-adl/build/tmp-x86-
> 2020-glibc/work/corei7-64-ese-linux/onevpl/2021.2.2-
> r0/image/usr/lib/vpl/examples/util/CMakeLists.txt
>  
> find: ‘/media/pedgms/sdh1/cyew3/adl/yocto-adl/build/tmp-x86-2020-
> glibc/work/corei7-64-ese-linux/onevpl/2021.2.2-
> r0/image/usr/lib64/vpl/examples/’: No such file or directory
> WARNING: exit code 1 from a shell command.
>  
> ERROR: Logfile of failure stored in:
> /media/pedgms/sdh1/cyew3/adl/yocto-adl/build/tmp-x86-2020-
> glibc/work/corei7-64-ese-linux/onevpl/2021.2.2-
> r0/temp/log.do_install.17323
>  
> Rgds, CC
>  
> -----Original Message-----
> From: [email protected] <meta- 
> [email protected]> On Behalf Of Naveen Saini
> Sent: Thursday, April 29, 2021 11:35 AM
> To: [email protected]
> Subject: [meta-intel] [PATCH] onevpl: add recipe
>  
> The oneAPI Video Processing Library (oneVPL) provides a single video 
> processing API for encode, decode, and video processing that works 
> across a wide range of accelerators.
>  
> This repository contains the following components of oneVPL:
> * Copies of the oneVPL Specification API header files
> * oneVPL dispatcher
> * Examples demonstrating API usage
> * oneVPL command line tools
>  
> Ref:
> https://github.com/oneapi-src/oneVPL
>  
> Signed-off-by: Naveen Saini <[email protected]>
> ---
>  conf/include/maintainers.inc                  |  1 +
>  ...et-oneAPI-installation-dir-variables.patch | 37 +++++++++++++++++++
>  recipes-core/onevpl/onevpl_2021.2.2.bb        | 35 ++++++++++++++++++
>  3 files changed, 73 insertions(+)
>  create mode 100644 recipes-core/onevpl/onevpl/0001-cmake-set-oneAPI-
> installation-dir-variables.patch
>  create mode 100644 recipes-core/onevpl/onevpl_2021.2.2.bb
>  
> diff --git a/conf/include/maintainers.inc 
> b/conf/include/maintainers.inc index d1ddcff1..8f2a9c29 100644
> --- a/conf/include/maintainers.inc
> +++ b/conf/include/maintainers.inc
> @@ -1,5 +1,6 @@
>  # This file contains a list of recipe maintainers for meta-intel
>  
> +RECIPE_MAINTAINER_pn-onevpl = "Naveen Saini
> <[email protected]>"
>  RECIPE_MAINTAINER_pn-backport-iwlwifi = "Naveen Saini 
> <[email protected]>"
>  RECIPE_MAINTAINER_pn-core-image-rt = "Anuj Mittal 
> <[email protected]>"
>  RECIPE_MAINTAINER_pn-core-image-rt-sdk = "Anuj Mittal 
> <[email protected]>"
> diff --git a/recipes-core/onevpl/onevpl/0001-cmake-set-oneAPI-
> installation-dir-variables.patch b/recipes-core/onevpl/onevpl/0001-
> cmake-set-oneAPI-installation-dir-variables.patch
> new file mode 100644
> index 00000000..07e074bd
> --- /dev/null
> +++ b/recipes-core/onevpl/onevpl/0001-cmake-set-oneAPI-installation-
> dir-
> +++ variables.patch
> @@ -0,0 +1,37 @@
> +From b36033e4f2f8928a153ea7cf61ca56d89844b373 Mon Sep 17 00:00:00 
> +2001
> +From: Naveen Saini <[email protected]>
> +Date: Tue, 27 Apr 2021 17:09:01 +0800
> +Subject: [PATCH] cmake: set oneAPI installation dir variables
> +
> +Upstream-Status: Inappropriate
> +
> +Signed-off-by: Naveen Saini <[email protected]>
> +---
> + cmake/oneAPIInstallDirs.cmake | 8 ++++----
> + 1 file changed, 4 insertions(+), 4 deletions(-)
> +
> +diff --git a/cmake/oneAPIInstallDirs.cmake 
> +b/cmake/oneAPIInstallDirs.cmake index 184e19b..8c1900b 100644
> +--- a/cmake/oneAPIInstallDirs.cmake
> ++++ b/cmake/oneAPIInstallDirs.cmake
> +@@ -18,13 +18,13 @@ endif()
> + 
> + set(CMAKE_INSTALL_INCLUDEDIR include) set(CMAKE_INSTALL_DOCDIR 
> + documentation) -set(CMAKE_INSTALL_ENVDIR
> env)
> +-set(CMAKE_INSTALL_MODDIR modulefiles)
> ++set(CMAKE_INSTALL_ENVDIR share/vpl/env) set(CMAKE_INSTALL_MODDIR
> ++share/vpl/modulefiles)
> + set(CMAKE_INSTALL_SYSCHECKDIR sys_check)
> set(CMAKE_INSTALL_MODFILEDIR
> +modulefiles)  set(CMAKE_INSTALL_REDISTDIR redist) 
> +-set(CMAKE_INSTALL_EXAMPLEDIR examples) -set(CMAKE_INSTALL_LICENSEDIR
> +licensing)
> ++set(CMAKE_INSTALL_EXAMPLEDIR ${CMAKE_INSTALL_LIBDIR}/vpl/examples)
> ++set(CMAKE_INSTALL_LICENSEDIR share/vpl/licensing)
> + set(CMAKE_INSTALL_TOOLSDIR tools)
> + set(CMAKE_INSTALL_SYSCONFDIR config)  set(CMAKE_INSTALL_SRCDIR src)
> +--
> +2.17.1
> +
> diff --git a/recipes-core/onevpl/onevpl_2021.2.2.bb b/recipes- 
> core/onevpl/onevpl_2021.2.2.bb new file mode 100644 index 
> 00000000..4dc3f9f1
> --- /dev/null
> +++ b/recipes-core/onevpl/onevpl_2021.2.2.bb
> @@ -0,0 +1,35 @@
> +SUMMARY = "oneAPI Video Processing Library"
> +DESCRIPTION = "The oneAPI Video Processing Library (oneVPL) provides 
> +\ a single video processing API for encode, decode, and video 
> +processing \ that works across a wide range of accelerators."
> +
> +HOMEPAGE = "https://github.com/oneapi-src/oneVPL";
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM =
> "file://LICENSE;md5=c18ea6bb4786a26bf4eee88a7424a408 \
> +                   
> file://third-party-programs.txt;md5=0a071a05786c453d52f8b3e511ed39c4"
> +
> +SRC_URI = "git://github.com/oneapi-src/oneVPL.git;protocol=https \
> +           
> file://0001-cmake-set-oneAPI-installation-dir-variables.patch \
> +            "
> +SRCREV = "17968d8d2299352f5a9e09388d24e81064c81c87"
> +S = "${WORKDIR}/git"
> +
> +inherit cmake
> +DEPENDS = "libva"
> +
> +PACKAGES =+ "${PN}-examples"
> +
> +EXTRA_OECMAKE += " \
> +                    -DVPL_UTIL_PATH=${S}/examples/util \ "
> +do_install_append () {
> +        # delete examples source files
> +        find "${D}${libdir}/vpl/examples/" -type d \! -name 'examples'
> +\! -name 'content' -exec rm -rf {} + }
> +
> +
> +FILES_${PN}-examples = "${bindir}/dpcpp-blur \
> +                        ${bindir}/hello-* \
> +                        ${libdir}/vpl/examples \
> +                        "
> +FILES_${PN} += "${datadir}"
> --
> 2.17.1
>  << File: ATT00001.txt >>
>  
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7020): 
https://lists.yoctoproject.org/g/meta-intel/message/7020
Mute This Topic: https://lists.yoctoproject.org/mt/82447604/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to