poky.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* Error while creating ipk (do_package_write_ipk) packages for Linux kernel source #bitbake #poky #yocto
@ 2022-12-10 16:53 Noufal
  0 siblings, 0 replies; only message in thread
From: Noufal @ 2022-12-10 16:53 UTC (permalink / raw)
  To: poky

[-- Attachment #1: Type: text/plain, Size: 1779 bytes --]

Hi Team,

As part of my project, I am using yocto dunfell branch as my build environment.

I am experiencing an issue while creating IPK packages for Linux source as given below.

```

PATH=$<paths> opkg-build -Z xz -a "--memlimit=50% --threads=128" kernel-module-atmel-5.4.198

<dir>/linux/5.4.198/deploy-ipks/generic32' returned non-zero exit status 127.

16:54:05  Subprocess output:<tmp-dir>/linux//5.4.198+git2b99183f1c3663c9c7344a6b3b17f52c81b6746c-r0/recipe-sysroot-native/usr/bin/opkg-build: line 313: <dir>/linux /5.4.198/recipe-sysroot-native/usr/bin/gzip: No such file or directory

```

*Line 313 of opkg-build is as follows:*

```

( cd $pkg_dir/$CONTROL && tar $ogargs $tsortargs --no-recursion --mtime=@$build_date -c $tarformat -T $tmp_dir/control_list | pigz $zipargs > $tmp_dir/control.tar.gz )

```

My build environment is ubuntu 20.04 docker container. Also am building multiple images within the same build directory in sequence and shared sstate. With this, one of the build is failing for do_package_write_ipk.

The error is randomly observed and gzip is not found under the directory linux/ recipe-sysroot-native/usr/bin/gzip even if the build is success or failed. I have verified only the single image which was failing during sequence build, and it was success with no gzip binary under the directory linux/ recipe-sysroot-native/usr/bin/gzip. But HOSTTOOLS_DIR has all these packages available.

Is this because during sequence build with shared sstate, PATH from where the gzip binary is slected inside opkg-build script is getting messed up sometimes or something else?

Also How can I verify the gzip tool path selected by the opkg-build script?

Can any one help me to resolve this issue?

Thanks,

Noufal P

[-- Attachment #2: Type: text/html, Size: 6541 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-10 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-10 16:53 Error while creating ipk (do_package_write_ipk) packages for Linux kernel source #bitbake #poky #yocto Noufal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).