On 2024-06-17 9:22 p.m., Randy MacLeod wrote:
On 2024-06-17 7:36 p.m., Tim Orling wrote:
Master already has this, so it is a backport request.

Randy, I assume you verified both targets build without issue.
I did test on master but didn't for scarthgap since it would "obviously work"!

Famous last words...

On my PopOS (ubu-22.04 - ish) host:

| /media/rmacleod/gitter/rmacleod/src/distro/yocto/b/inc-nat/tmp/work/x86_64-linux/cmake-native/3.28.3/build/Bootstrap.cmk/cmake: /media/rmacleod/gitter/rmacleod/src/distro/yocto/b/inc-nat/tmp/sysroots-uninative/x86_64-linux/usr/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by /media/rmacleod/gitter/rmacleod/src/distro/yocto/b/inc-nat/tmp/work/x86_64-linux/cmake-native/3.28.3/build/Bootstrap.cmk/cmake)
| ---------------------------------------------
| Error when bootstrapping CMake:
| Problem while running initial CMake
| ---------------------------------------------
| WARNING: exit code 11 from a shell command.
ERROR: Task (/media/rmacleod/gitter/rmacleod/src/distro/yocto/poky.git/meta/recipes-devtools/cmake/cmake-native_3.28.3.bb:do_configure) failed with exit code '1' NOTE: Tasks Summary: Attempted 485 tasks of which 0 didn't need to be rerun and 1 failed.


Summary:

1. both native and nativesdk build fine when I remove a custom native toolchain! 2. The commit for master hasn't merged yet so I'll wait for that before sending v2.


Details for Tim with one question:

That -native build problem was due to having a custom gcc in /usr/local. Oops!

python3-pyyaml-include-native builds fine using the distro's gcc :

❯ /usr/bin/gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0


The nativesdk- python3-pyyaml-include build succeeds too but there was one warning that I'm unsure about:

   Building target platforms: x86_64_nativesdk-pokysdk-linux
   Building for target x86_64_nativesdk-pokysdk-linux
   Processing files: nativesdk-python3-pyyaml-include-1.3.2-r0.x86_64_nativesdk    warning: Ignoring invalid regex ^((${prefix}/=LIB=|usr/share)/pkgconfig/.*.pc|usr/bin/pkg-config)$ <----
   Finding  Provides:
   Finding  Requires(interp):
   Finding  Requires(rpmlib):
   ...


That happens when running rpmbuild... ah, here's the source:

❯ rg pkgconfig /.../tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-pyyaml-include/1.3.2/recipe-sysroot-native/usr/bin/../../usr/lib/rpm/fileattrs
/.../tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-pyyaml-include/1.3.2/recipe-sysroot-native/usr/bin/../../usr/lib/rpm/fileattrs/pkgconfig.attr
1:%__pkgconfig_provides    %{_rpmconfigdir}/pkgconfigdeps.sh --provides
2:%__pkgconfig_requires    %{_rpmconfigdir}/pkgconfigdeps.sh --requires
3:%__pkgconfig_path ^((%{_libdir}|%{_datadir})/pkgconfig/.*\.pc|%{_bindir}/pkg-config)$

which is likely from rpm-native/usr/lib/rpm/fileattrs/pkgconfig.attr

and so not specific to this change it would seem.

We should still fix it, but the pkgconfig.attr line has been around in rpm for > 10 years.

Tim,

I'm out of time for today.
Is it easy for you to find out if this warning is something that works well in Fedora but generates a warning in YP?



I don't usually worry about how rpm packaging works in detail so this was fun and I got to use strace! ;-)


../Randy


I'll try that on a supported distro and re-submit adding a comment about it being a backport.
I'm busy most of the week so it may be a while.

Thanks for asking Tim and sorry for the noise.

../Randy



On Mon, Jun 17, 2024 at 12:13 PM Randy MacLeod via lists.openembedded.org <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!aw5nRqXmGOpTn-N6VdrwlGFDwCLEV6UZpm4RkeZQPm1ZwM19UTcOiQ_RMZ0yqELoYvkazy3jSHZJsReCax2W-Q$> <[email protected]> wrote:

    From: Randy MacLeod <[email protected]>

    Signed-off-by: Randy MacLeod <[email protected]>
    Signed-off-by: Khem Raj <[email protected]>
    ---
     .../recipes-devtools/python/python3-pyyaml-include_1.3.2.bb
    
<https://urldefense.com/v3/__http://python3-pyyaml-include_1.3.2.bb__;!!AjveYdw8EvQ!aw5nRqXmGOpTn-N6VdrwlGFDwCLEV6UZpm4RkeZQPm1ZwM19UTcOiQ_RMZ0yqELoYvkazy3jSHZJsRdX0IWwxQ$>
       | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git
    a/meta-python/recipes-devtools/python/python3-pyyaml-include_1.3.2.bb
    
<https://urldefense.com/v3/__http://python3-pyyaml-include_1.3.2.bb__;!!AjveYdw8EvQ!aw5nRqXmGOpTn-N6VdrwlGFDwCLEV6UZpm4RkeZQPm1ZwM19UTcOiQ_RMZ0yqELoYvkazy3jSHZJsRdX0IWwxQ$>
    b/meta-python/recipes-devtools/python/python3-pyyaml-include_1.3.2.bb
    
<https://urldefense.com/v3/__http://python3-pyyaml-include_1.3.2.bb__;!!AjveYdw8EvQ!aw5nRqXmGOpTn-N6VdrwlGFDwCLEV6UZpm4RkeZQPm1ZwM19UTcOiQ_RMZ0yqELoYvkazy3jSHZJsRdX0IWwxQ$>
    index 3a5bd99a7..309d0ac59 100644
    ---
    a/meta-python/recipes-devtools/python/python3-pyyaml-include_1.3.2.bb
    
<https://urldefense.com/v3/__http://python3-pyyaml-include_1.3.2.bb__;!!AjveYdw8EvQ!aw5nRqXmGOpTn-N6VdrwlGFDwCLEV6UZpm4RkeZQPm1ZwM19UTcOiQ_RMZ0yqELoYvkazy3jSHZJsRdX0IWwxQ$>
    +++
    b/meta-python/recipes-devtools/python/python3-pyyaml-include_1.3.2.bb
    
<https://urldefense.com/v3/__http://python3-pyyaml-include_1.3.2.bb__;!!AjveYdw8EvQ!aw5nRqXmGOpTn-N6VdrwlGFDwCLEV6UZpm4RkeZQPm1ZwM19UTcOiQ_RMZ0yqELoYvkazy3jSHZJsRdX0IWwxQ$>
    @@ -26,4 +26,4 @@ RDEPENDS:${PN}-ptest += " \
         python3-pytest \
         python3-unittest-automake-output \
     "
    -
    +BBCLASSEXTEND = "native nativesdk"
-- 2.34.1



--
# Randy MacLeod
# Wind River Linux


--
# Randy MacLeod
# Wind River Linux
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110958): 
https://lists.openembedded.org/g/openembedded-devel/message/110958
Mute This Topic: https://lists.openembedded.org/mt/106727475/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to