Re: #yocto #sdk SDK_EXTRA_TOOLS inclussion of python-native and devtool #yocto #sdk


Monsees, Steven C (US)
 

 

Any one seen this before… ?

 

SDK appears to be working okay without the inclusion of native python3 components, not sure how the inclusion breaks devtool…

 

From: Monsees, Steven C (US)
Sent: Wednesday, April 14, 2021 2:23 PM
To: 'yocto@...' <yocto@...>
Subject: #yocto #sdk SDK_EXTRA_TOOLS inclussion of python-native and devtool

 

 

Working with zeus 3.0.4, extended SDK…

 

Could someone explain what I overlooked, or why this issue pops up with python-native support inclusion ?

 

Thanks…

 

When I add in native-python3 support

 

#

# Additional SDK Setup variables

#

 

SDKIMAGE_FEATURES_append = " staticdev-pkgs"

 

SDK_EXTRA_TOOLS = "  \

     nativesdk-python3-pprint \

     nativesdk-python3-pickle \

     nativesdk-python3-shell \

     nativesdk-python3-modules \

     nativesdk-python3-distutils \

     nativesdk-python3-xml \

     nativesdk-python3-compile \

     nativesdk-python3-six \

     nativesdk-cmake \

     "

 

TOOLCHAIN_HOST_TASK_append = "${SDK_EXTRA_TOOLS}"

 

I see the following error with devtool:

 

13:07 smonsees@yix490016 /disk0/scratch/smonsees> unset LD_LIBRARY_PATH

13:08 smonsees@yix490016 /disk0/scratch/smonsees>. /disk0/scratch/smonsees/aioxSDK_EXT_FULL/environment-setup-aarch64-poky-linux

SDK environment now set up; additionally you may now run devtool to perform development tasks.

Run devtool --help for further details.

13:08 smonsees@yix490016 /disk0/scratch/smonsees>devtool --help

/disk0/scratch/smonsees/aioxSDK_EXT_FULL/sysroots/x86_64-pokysdk-linux/usr/bin/python3: /disk0/scratch/smonsees/aioxSDK_EXT_FULL/sysroots/x86_64-pokysdk-linux/usr/bin/python3.7.real: /opt/limws/3.0.4/sysroots/x86_64-pokysdk-linux/lib/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory

/disk0/scratch/smonsees/aioxSDK_EXT_FULL/sysroots/x86_64-pokysdk-linux/usr/bin/python3: line 5: /disk0/scratch/smonsees/aioxSDK_EXT_FULL/sysroots/x86_64-pokysdk-linux/usr/bin/python3.7.real: Success

 

If I remove the “native-python” components, the issue goes away:

 

SDK_EXTRA_TOOLS = "  \

    nativesdk-cmake \

    "

 

14:09 smonsees@yix490016 /disk0/scratch/smonsees> unset LD_LIBRARY_PATH

14:11 smonsees@yix490016 /disk0/scratch/smonsees>. /disk0/scratch/smonsees/aioxSDK_EXT_FULL/environment-setup-aarch64-poky-linux

SDK environment now set up; additionally you may now run devtool to perform development tasks.

Run devtool --help for further details.

14:11 smonsees@yix490016 /disk0/scratch/smonsees>devtool --help

NOTE: Starting bitbake server...

usage: devtool [--basepath BASEPATH] [--bbpath BBPATH] [-d] [-q]

               [--color COLOR] [-h]

               <subcommand> ...

 

OpenEmbedded development tool

 

options:

  --basepath BASEPATH   Base directory of SDK / build directory

  --bbpath BBPATH       Explicitly specify the BBPATH, rather than getting it

                        from the metadata

  -d, --debug           Enable debug output

  -q, --quiet           Print only errors

  --color COLOR         Colorize output (where COLOR is auto, always, never)

  -h, --help            show this help message and exit

 

subcommands:

  Beginning work on a recipe:

    add                   Add a new recipe

    modify                Modify the source for an existing recipe

    upgrade               Upgrade an existing recipe

  Getting information:

    status                Show workspace status

    search                Search available recipes

    latest-version        Report the latest version of an existing recipe

    check-upgrade-status  Report upgradability for multiple (or all) recipes

  Working on a recipe in the workspace:

    build                 Build a recipe

    rename                Rename a recipe file in the workspace

    edit-recipe           Edit a recipe file

    find-recipe           Find a recipe file

    configure-help        Get help on configure script options

    update-recipe         Apply changes from external source tree to recipe

    reset                 Remove a recipe from your workspace

    finish                Finish working on a recipe in your workspace

  Testing changes on target:

    deploy-target         Deploy recipe output files to live target machine

    undeploy-target       Undeploy recipe output files in live target machine

    package               Build packages for a recipe

    build-image           Build image including workspace recipe packages

    runqemu               Run QEMU on the specified image

  Advanced:

    build-sdk             Build a derivative SDK of this one

    extract               Extract the source for an existing recipe

    sync                  Synchronize the source tree for an existing recipe

    export                Export workspace into a tar archive

    import                Import exported tar archive into workspace

    menuconfig            Alter build-time configuration for a recipe

  SDK maintenance:

    sdk-update            Update SDK components

    sdk-install           Install additional SDK components

Use devtool <subcommand> --help to get help on a specific command

14:11 smonsees@yix490016 /disk0/scratch/smonsees>

 

 

Join yocto@lists.yoctoproject.org to automatically receive all group messages.