Skip to contentSkip to conversation

Extensible SDK of core-image-minimal fails to install

yocto Hendrik 3 participants 3 messages Jun 11, 2021 – Jun 12, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Hendrik

author
#1 lore raw

I was able to reproduce the error even with plain poky (without kas):

```bash
git clone -b dunfell https://git.yoctoproject.org/git/poky
cd poky
source oe-init-build-env
bitbake -c populate_sdk_ext core-image-minimal
```

After successful build, copy the build/tmp/deploy/sdk/poky....sh to another machine (with different OS) and run it there.

I tried several different installation machines and they fail consistently to install the extensible SDK if they run a different OS than the build machine (e.g. Debian 10 vs. Ubuntu 18.04 vs. 20.04). See the exakt error and complete log output in my previous message.

What is happening here? Did I use the extensible SDK wrongly? Is it expected to be incompatible?

Thanks in advance!

Hendrik

Quoted 60 lines · Hendrik

Hello World,

I'm trying to install an extensible SDK of core-image-minimal on a system different from the build system (build system is Debian 10, install system is e.g. Ubuntu 20.04). When doing this, the following error occurs:

```
ERROR: Task
(virtual:native:/home/test/poky_sdk/layers/poky/meta/recipes-devtools
/pseudo/pseudo_git.bb:do_fetch) failed with exit code 'setscene whitelist'
```

The full log file preparing_build_system.log is available at:
https://pastebin.com/m9KmshY0

It seems recipes-devtools/pseudo/pseudo_git.bb does depend on the build environment and therefore yields different hashes which results in broken sstate-cache. Does someone know what exactly went wrong and how to fix it?

Steps to reproduce:

Use the following kas-project.yml:

```yml
header:
  version: 10
machine: qemux86-64
distro: poky
local_conf_header:
  standard: |
    CONF_VERSION = "1"
    PACKAGE_CLASSES = "package_rpm"
repos:
  poky:
    url: "https://git.yoctoproject.org/git/poky"
    refspec: dunfell
    layers:
      meta:
      meta-poky:
      meta-yocto-bsp:
```

Then, run a kas container (https://github.com/siemens/kas, e.g. use kas-container script): ./kas-container shell kas-project.yml This will start a Debian 10 container with kas installed.

Build the extensible SDK with bitbake -c populate_sdk_ext core-image-minimal.

After finishing, install the extensible SDK on a different machine (for testing purposes e.g. in a Docker container for example ubuntu:20.04). It will result in the error mentioned above.

How do I fix that?

Thanks in advance!

Hendrik

#2 lore raw
Quoted 12 lines · Hendrik

I was able to reproduce the error even with plain poky (without kas):

```bash
git clone -b dunfell https://git.yoctoproject.org/git/poky
cd poky
source oe-init-build-env
bitbake -c populate_sdk_ext core-image-minimal
```

After successful build, copy the build/tmp/deploy/sdk/poky....sh to another machine (with different OS) and run it there.

Quoted 7 lines

I tried several different installation machines and they fail consistently to install the extensible SDK if they run a different OS than the build machine (e.g. Debian 10 vs. Ubuntu 18.04 vs. 20.04). See the exakt error and complete log output in my previous message.

What is happening here? Did I use the extensible SDK wrongly? Is it expected to be incompatible?

I think it may be this bug:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=14428

We don't have a fix as yet, it looks difficult to solve :(

Cheers,

Richard

#3 lore raw

Hi,

Quoted 10 lines · Richard Purdie

I think it may be this bug:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=14428

We don't have a fix as yet, it looks difficult to solve :(

Cheers,

Richard

Not a fix, but a workaround, if you are willing to use containers is to create a build container and a similar sdk container.

I added more information to the bug above.

Regards,

Robert