Mark Hatle <[email protected]> escreveu no dia quinta, 7/09/2023 à(s)
16:51:

> I'm not seeing the issue either.  Trying to fgiure out why I'm not seeing
> it and you are.  Did you modify the u-boot configuration in some way?
>

I have a custom u-boot but everything looks good and only these missing
dependencies were breaking my build.


>
> Looking at my configuration (langdale), I see:
>
> # $DEPENDS [8 operations]
> #   set
> /scratch/mhatle/git/internal/2023.1/sources/poky/meta/conf/bitbake.conf:305
> #     ""
> #   set
> /scratch/mhatle/git/internal/2023.1/sources/poky/meta/conf/documentation.conf:136
> #     [doc] "Lists a recipe's build-time dependencies (i.e. other recipe
> files)."
> #   :prepend
> /scratch/mhatle/git/internal/2023.1/sources/poky/meta/classes-global/base.bbclass:80
> #     "${BASEDEPENDS} "
> #   append
> /scratch/mhatle/git/internal/2023.1/sources/poky/meta/recipes-bsp/u-boot/u-boot-common.inc:7
> #     "flex-native bison-native"
> #   :prepend
> /scratch/mhatle/git/internal/2023.1/sources/poky/meta/classes-recipe/pkgconfig.bbclass:7
> #     "pkgconfig-native "
> #   append
> /scratch/mhatle/git/internal/2023.1/sources/poky/meta/recipes-bsp/u-boot/u-boot-tools.inc:2
> #     "gnutls openssl util-linux swig-native"
>

Yep everything of my patch comes from oe-core.


> #   :append
> /scratch/mhatle/git/internal/2023.1/sources/poky/meta/classes-recipe/python3native.bbclass:11
> #     " python3-native "
> #   append
> /scratch/mhatle/git/internal/2023.1/sources/poky/../meta-xilinx/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-2023.1.inc:17
> #     "bc-native dtc-native python3-setuptools-native gnutls-native"
> # pre-expansion value:
> #   "pkgconfig-native ${BASEDEPENDS}  flex-native bison-native gnutls
> openssl util-linux swig-native bc-native dtc-native
> python3-setuptools-native gnutls-native python3-native "
> DEPENDS="pkgconfig-native virtual/aarch64-xilinx-linux-gcc
> virtual/aarch64-xilinx-linux-compilerlibs virtual/libc  flex-native
> bison-native gnutls openssl util-linux swig-native bc-native dtc-native
> python3-setuptools-native gnutls-native python3-native "
>
> so the swig-native is coming from the u-boot-tools.inc from poky
> (oe-core).  Switching to some master work-in-progress I have (not yet
> published on github, but will be "soon"), I see:
>
> # $DEPENDS [8 operations]
> #   set
> /scratch/mhatle/git/internal/master/sources/poky/meta/conf/bitbake.conf:309
> #     ""
> #   set
> /scratch/mhatle/git/internal/master/sources/poky/meta/conf/documentation.conf:137
> #     [doc] "Lists a recipe's build-time dependencies (i.e. other recipe
> files)."
> #   :prepend
> /scratch/mhatle/git/internal/master/sources/poky/meta/classes-global/base.bbclass:57
> #     "${BASEDEPENDS} "
> #   append
> /scratch/mhatle/git/internal/master/sources/poky/meta/recipes-bsp/u-boot/u-boot-common.inc:7
> #     "flex-native bison-native python3-setuptools-native"
> #   :prepend
> /scratch/mhatle/git/internal/master/sources/poky/meta/classes-recipe/pkgconfig.bbclass:7
> #     "pkgconfig-native "
> #   append
> /scratch/mhatle/git/internal/master/sources/poky/meta/recipes-bsp/u-boot/u-boot-tools.inc:2
> #     "gnutls openssl util-linux swig-native"
> #   :append
> /scratch/mhatle/git/internal/master/sources/poky/meta/classes-recipe/python3native.bbclass:11
> #     " python3-native "
> #   append
> /scratch/mhatle/git/internal/master/sources/poky/../meta-xilinx/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-2023.1.inc:17
> #     "bc-native dtc-native python3-setuptools-native gnutls-native"
> # pre-expansion value:
> #   "pkgconfig-native ${BASEDEPENDS}  flex-native bison-native
> python3-setuptools-native gnutls openssl util-linux swig-native bc-native
> dtc-native python3-setuptools-native gnutls-native pyt
> hon3-native "
> DEPENDS="pkgconfig-native virtual/aarch64-xilinx-linux-gcc
> virtual/aarch64-xilinx-linux-compilerlibs virtual/libc  flex-native
> bison-native python3-setuptools-native gnutls openssl util-linux
> swig-native bc-native dtc-native python3-setuptools-native gnutls-native
> python3-native "
>
> Same thing, swig-native is coming from the poky u-boot-tools.inc file.
> (Continuing below, inline)
>
> On 9/7/23 5:59 AM, Jose Quaresma wrote:
> > Hi Sandeep,
> >
> > I don't use petalinux and only use some xilinx layers in my distro:
> >
> >   meta-xilinx-core
> >   meta-xilinx-bsp
> >   meta-xilinx-standalone
> >   meta-xilinx-tools
> >
> > For now I have it fixed with a bbappend on my end but this can be useful
> for other users if the issue is real.
> > Can you please give me the dependencies of u-boot-tools-xlnx when using
> petalinux?
> >
> > $ bitbake-getvar -r u-boot-tools-xlnx DEPENDS
> > #
> > # $DEPENDS [10 operations]
> > #   :append[pn-pixman:mips:toolchain-clang]
> /build/conf/../../layers/meta-clang/conf/nonclangable.conf:451
> > #     " openmp"
> > #   set
> /build/conf/../../layers/openembedded-core/meta/conf/bitbake.conf:305
> > #     ""
> > #   set
> /build/conf/../../layers/openembedded-core/meta/conf/documentation.conf:136
> > #     [doc] "Lists a recipe's build-time dependencies (i.e. other recipe
> files)."
> > #   :prepend
> /build/conf/../../layers/openembedded-core/meta/classes/base.bbclass:73
> > #     "${BASEDEPENDS} "
> > #   append
> /build/conf/../../layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot-common.inc:7
> > #     "flex-native bison-native"
> > #   :prepend
> /build/conf/../../layers/openembedded-core/meta/classes/pkgconfig.bbclass:1
> > #     "pkgconfig-native "
> > #   append
> /build/conf/../../layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot-tools.inc:2
> > #     "openssl"
>
> Looking at your configuration, swig-native isn't in the list where we
> would expect it to be.
>
>
> In master, u-boot-tools.inc was updated to include 'swig-native' in:
>
> commit 96f645e4d2848a773db2adeb060c70722254c0de
> Author: Alexander Kanavin <[email protected]>
> Date:   Wed Jul 20 10:44:09 2022 +0200
>
>      u-boot: update 2022.04 -> 2022.07
>
>      Native python and native swig are new requirements for scripts/dtc
>
>      License-Update: added bzip2 licensed headers:
>
> https://source.denx.de/u-boot/u-boot/-/commit/fba0882bcdfd919727ee9ee8523ef3156daab507
>      (overall license still gpl2)
>
>      (From OE-Core rev: 379bf04af85e412be155acf5292fe08e2e433de9)
>
>      Signed-off-by: Alexander Kanavin <[email protected]>
>      Signed-off-by: Alexandre Belloni <[email protected]>
>      Signed-off-by: Richard Purdie <[email protected]>
>
> So this should cover langdale, mickledore and master.   What branch of OE
> are you using that triggered this problem?
>

Here's the question I should have asked myself.
Now it makes sense and the root cause of this issue can be because I am
using kirstone.
What I am doing is backporting the BSP 2023.1 to be used on kirstone,
we also test and build using oe-core master but I have started with
kirstone and not yet on master.

So all good! Sorry for the noise and thanks for your help.

Jose


>
> --Mark
>
> > #   append
> /build/conf/../../layers/meta-xilinx/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-2023.1.inc:17
> > #     "bc-native dtc-native python3-setuptools-native gnutls-native"
> > #   append
> /build/conf/../../layers/meta-lmp/meta-lmp-bsp/dynamic-layers/xilinx/recipes-bsp/u-boot/u-boot-tools-xlnx_2023.1.bbappend:1
> > #     "util-linux-libuuid gnutls swig-native"
> > #   override[pn-linux-firmware]::append[toolchain-clang]
> /build/conf/../../layers/meta-clang/conf/nonclangable.conf:448
> > #     " clang-native"
> > # pre-expansion value:
> > #   "pkgconfig-native ${BASEDEPENDS}  flex-native bison-native openssl
> bc-native dtc-native python3-setuptools-native gnutls-native
> util-linux-libuuid gnutls swig-native"
> > DEPENDS="pkgconfig-native  clang-cross-aarch64 virtual/libc  compiler-rt
> libcxx  flex-native bison-native openssl bc-native dtc-native
> python3-setuptools-native gnutls-native util-linux-libuuid gnutls
> swig-native"
> >
> > Jose
> >
> > Gundlupet Raju, Sandeep <[email protected] <mailto:
> [email protected]>> escreveu no dia quinta, 7/09/2023 à(s)
> 03:57:
> >
> >     Hi Jose,
> >
> >     Thanks for the patch. I can't reproduce this issue on Ubuntu-22.04
> >     machine. BTW which OS are you using?
> >
> >     [09/06/2023 20:44:15] yocto:/scratch/sandeepg/yocto/2023.1/yp-rel  $
> >     source setupsdk build-zynqmp
> >     You had no conf/local.conf file. This configuration file has
> therefore been
> >     created for you from
> >
>  
> /scratch/sandeepg/yocto/2023.1/yp-rel/sources/meta-petalinux/conf/templates/default/local.conf.sample
> >     You may wish to edit it to, for example, select a different MACHINE
> (target
> >     hardware).
> >
> >     You had no conf/bblayers.conf file. This configuration file has
> >     therefore been
> >     created for you from
> >
>  
> /scratch/sandeepg/yocto/2023.1/yp-rel/sources/meta-petalinux/conf/templates/default/bblayers.conf.sample
> >     To add additional metadata layers into your configuration please add
> entries
> >     to conf/bblayers.conf.
> >
> >     The Yocto Project has extensive documentation about OE including a
> reference
> >     manual which can be found at:
> >     https://docs.yoctoproject.org <https://docs.yoctoproject.org>
> >
> >     For more information about OpenEmbedded see the website:
> >     https://www.openembedded.org/ <https://www.openembedded.org/>
> >
> >     ### Shell environment set up for builds. ###
> >
> >     You can now run 'bitbake <target>'
> >
> >     Common targets are:
> >           petalinux-image-minimal
> >           petalinux-image-full
> >           petalinux-image-everything
> >           meta-qemu-xilinx
> >           meta-xilinx-toolchain
> >
> >     You can also run generated qemu images with a command like 'runqemu
> >     qemux86-64'.
> >
> >     Other commonly useful commands are:
> >        - 'devtool' and 'recipetool' handle common recipe tasks
> >        - 'bitbake-layers' handles common layer tasks
> >        - 'oe-pkgdata-util' handles common target package tasks
> >
> >     [09/06/2023 20:44:31]
> >     yocto:/scratch/sandeepg/yocto/2023.1/yp-rel/build-zynqmp  $
> >     MACHINE=zynqmp-generic bitbake u-boot-tools-xlnx -c compile -f
> >     --skip-setscene
> >     NOTE: Started PRServer with DBfile:
> >
>  /scratch/sandeepg/yocto/2023.1/yp-rel/build-zynqmp/cache/prserv.sqlite3,
> >     Address: 127.0.0.1:37605 <http://127.0.0.1:37605>, PID: 2717825
> >     Loading cache: 100% | | ETA:  --:--:--
> >     Loaded 0 entries from dependency cache.
> >     Parsing recipes: 100%
> >
>  
> |#############################################################################################################################################################################|
> >     Time: 0:00:10
> >     Parsing of 4351 .bb files complete (0 cached, 4351 parsed). 6282
> >     targets, 311 skipped, 1 masked, 0 errors.
> >     NOTE: Resolving any missing task queue dependencies
> >
> >     Build Configuration:
> >     BB_VERSION           = "2.2.0"
> >     BUILD_SYS            = "x86_64-linux"
> >     NATIVELSBSTRING      = "ubuntu-22.04"
> >     TARGET_SYS           = "aarch64-xilinx-linux"
> >     MACHINE              = "zynqmp-generic"
> >     DISTRO               = "petalinux"
> >     DISTRO_VERSION       =
> >     "2023.1+snapshot-12029f5899b23b3839b961eb68cc7a867e6b8d15"
> >     TUNE_FEATURES        = "aarch64 armv8a crc cortexa72-cortexa53"
> >     TARGET_FPU           = ""
> >     SOC_VARIANT          = "cg"
> >     XILINX_RELEASE_VERSION = "v2023.1"
> >     XILINX_XSCT_VERSION  = "2023.1"
> >     DISTRO_NAME          = "PetaLinux"
> >     ROS_DISTRO           = "humble"
> >     ROS_VERSION          = "2"
> >     ROS_PYTHON_VERSION   = "3"
> >     meta
> >     meta-poky            =
> >     "rel-v2023.1:12029f5899b23b3839b961eb68cc7a867e6b8d15"
> >     meta-microblaze
> >     meta-xilinx-core
> >     meta-xilinx-standalone
> >     meta-xilinx-bsp
> >     meta-xilinx-vendor   =
> >     "rel-v2023.1:8bbabcdc2fd39ffafc794a19c5e43b7ed0b5dd7e"
> >     meta-xilinx-tools    =
> >     "rel-v2023.1:f07fd9656ce3a67709ca08a6234628fcc0575b6b"
> >     meta-perl
> >     meta-python
> >     meta-filesystems
> >     meta-gnome
> >     meta-multimedia
> >     meta-networking
> >     meta-webserver
> >     meta-xfce
> >     meta-initramfs
> >     meta-oe              =
> >     "rel-v2023.1:19fdd85cfacf0ff3b81cb9a2046879291e445a12"
> >     meta-xilinx-contrib  =
> >     "rel-v2023.1:8bbabcdc2fd39ffafc794a19c5e43b7ed0b5dd7e"
> >     meta-virtualization  =
> >     "rel-v2023.1:1cd805c747da2001506f029c276e656760cec02b"
> >     meta-openamp         =
> >     "rel-v2023.1:dc4fa75634c80ad3cd00bf634b0f3c67b4f8210f"
> >     meta-kria            =
> >     "rel-v2023.1:5765f464302d2c277a3aa55786f4478d6c52a0a6"
> >     meta-security
> >     meta-tpm             =
> >     "rel-v2023.1:2aa48e6f4e519abc7d6bd56da2c067309a303e80"
> >     meta-xilinx-tsn      =
> >     "rel-v2023.1:87b60ad671f6800b034935a7f4f5a125fbd59d28"
> >     meta-petalinux       =
> >     "rel-v2023.1:14112b77c8a76f6d41c670efd530bbe7bdaad8e0"
> >     meta-qt5             =
> >     "rel-v2023.1:1a917695e439d602ec85e1db4e0478533cfbfaa8"
> >     meta-aws             =
> >     "rel-v2023.1:b18ab37cc3a490d5c27ad5aa962a6851d2ab0215"
> >     meta-ros-common
> >     meta-ros2
> >     meta-ros2-humble     =
> >     "rel-v2023.1:fb6cc73c4013a41cbbeb763213efe62e0d2c08f3"
> >     meta-jupyter         =
> >     "rel-v2023.1:ad54a81a36e2734284709cee118c1944e6d510e7"
> >     meta-system-controller =
> >     "rel-v2023.1:812a3269b6a53d7d696e639452f16f4806721c7e"
> >     meta-vitis           =
> >     "rel-v2023.1:83a6ec4fa3f54974ea5eae4502baa172140cf82f"
> >
> >     NOTE: Fetching uninative binary shim
> >
> http://downloads.yoctoproject.org/releases/uninative/3.8.1/x86_64-nativesdk-libc-3.8.1.tar.xz;sha256sum=5fab9a5c97fc73a21134e5a81f74498cbaecda75d56aab971c934e0b803bcc00
> <
> http://downloads.yoctoproject.org/releases/uninative/3.8.1/x86_64-nativesdk-libc-3.8.1.tar.xz;sha256sum=5fab9a5c97fc73a21134e5a81f74498cbaecda75d56aab971c934e0b803bcc00
> >
> >     (will check PREMIRRORS first)
> >     NOTE: Tainting hash to force rebuild of task
> >
>  
> /scratch/sandeepg/yocto/2023.1/yp-rel/sources/poky/../meta-xilinx/meta-xilinx-core/recipes-bsp/u-boot/
> u-boot-tools-xlnx_2023.1.bb <http://u-boot-tools-xlnx_2023.1.bb>,
> >     do_compile          | ETA:  0:00:00
> >     WARNING:
> >
>  
> /scratch/sandeepg/yocto/2023.1/yp-rel/sources/poky/../meta-xilinx/meta-xilinx-core/recipes-bsp/u-boot/u-boot-tools-xlnx_2023.1.bb:
> do_compile
> >     is tainted from a forced run                  | ETA:  0:00:00
> >     Initialising tasks: 100%
> >
>  
> |##########################################################################################################################################################################|
> >     Time: 0:00:01
> >     Sstate summary: Wanted 180 Local 0 Mirrors 0 Missed 180 Current 0 (0%
> >     match, 0% complete)
> >     NOTE: Executing Tasks
> >     WARNING: attr-native-2.5.1-r0 do_fetch: Failed to fetch URL
> >     https://download.savannah.gnu.org/releases/attr/attr-2.5.1.tar.gz <
> https://download.savannah.gnu.org/releases/attr/attr-2.5.1.tar.gz>,
> >     attempting MIRRORS if available
> >     WARNING: acl-native-2.3.1-r0 do_fetch: Failed to fetch URL
> >     https://download.savannah.gnu.org/releases/acl/acl-2.3.1.tar.gz <
> https://download.savannah.gnu.org/releases/acl/acl-2.3.1.tar.gz>,
> >     attempting MIRRORS if available
> >     WARNING: cracklib-2.9.8-r0 do_fetch: Failed to fetch URL
> >     git://github.com/cracklib/cracklib;protocol=https;branch=master <
> http://github.com/cracklib/cracklib;protocol=https;branch=master>,
> >     attempting MIRRORS if available
> >     NOTE: Tasks Summary: Attempted 824 tasks of which 0 didn't need to be
> >     rerun and all succeeded.
> >
> >     Summary: There were 4 WARNING messages.
> >     [09/06/2023 20:55:21]
> >     yocto:/scratch/sandeepg/yocto/2023.1/yp-rel/build-zynqmp  $
> >
> >     Thanks,
> >
> >     Sandeep
> >
> >     On 9/6/2023 5:59 PM, Jose Quaresma wrote:
> >      > The issue can be reproduced with:
> >      > $ bitbake u-boot-tools-xlnx -c compile -f --skip-setscene
> >      >
> >      > The swig is needed on the native sysroot:
> >      > | error: command 'swig' failed: No such file or directory
> >      >
> >      > The util-linux-libuuid is needed on target sysroot:
> >      > |
> .../1_v2023.01-xilinx-v2023.1+gitAUTOINC+0c2f5b2994-r0/git/tools/mkeficapsule.c:18:10:
> fatal error: 'uuid/uuid.h' file not found
> >      >
> >      > The gnutls is needed on target sysroot:
> >      > |
> .../1_v2023.01-xilinx-v2023.1+gitAUTOINC+0c2f5b2994-r0/git/tools/mkeficapsule.c:21:10:
> fatal error: 'gnutls/gnutls.h' file not found
> >      >
> >      > Signed-off-by: Jose Quaresma <[email protected] <mailto:
> [email protected]>>
> >      > ---
> >      >   meta-xilinx-core/recipes-bsp/u-boot/u-boot-tools-xlnx_2023.1.bb
> <http://u-boot-tools-xlnx_2023.1.bb> | 2 ++
> >      >   1 file changed, 2 insertions(+)
> >      >
> >      > diff --git a/meta-xilinx-core/recipes-bsp/u-boot/
> u-boot-tools-xlnx_2023.1.bb <http://u-boot-tools-xlnx_2023.1.bb>
> b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-tools-xlnx_2023.1.bb <
> http://u-boot-tools-xlnx_2023.1.bb>
> >      > index fe5ecf79..beabd36b 100644
> >      > --- a/meta-xilinx-core/recipes-bsp/u-boot/
> u-boot-tools-xlnx_2023.1.bb <http://u-boot-tools-xlnx_2023.1.bb>
> >      > +++ b/meta-xilinx-core/recipes-bsp/u-boot/
> u-boot-tools-xlnx_2023.1.bb <http://u-boot-tools-xlnx_2023.1.bb>
> >      > @@ -1,6 +1,8 @@
> >      >   require u-boot-tools-xlnx.inc
> >      >   require u-boot-xlnx-2023.1.inc
> >      >
> >      > +DEPENDS += "swig-native util-linux-libuuid gnutls"
> >      > +
> >      >   # MUST clear CONFIG_VIDEO to avoid a compilation failure trying
> to construct
> >      >   # bmp_logo.h
> >      >   SED_CONFIG_EFI:append = ' -e "s/CONFIG_VIDEO=.*/# CONFIG_VIDEO
> is not set/"'
> >
> >
> >
> > --
> > Best regards,
> >
> > José Quaresma
>


-- 
Best regards,

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

Reply via email to