ERROR: m4-native-1.4.18-r0 do_unpack:

333 views
Skip to first unread message

Mickaël LE STEPHAN

unread,
Nov 1, 2019, 2:12:30 PM11/1/19
to DEBY
Hi, i'm trying to build an image for a raspberrypi4 with the meta-debian but i have an error that i can resolve :

ERROR: m4-native-1.4.18-r0 do_unpack: Unpack failure for URL: 'http://ftp.debian.org/debian/pool/main/m/m4/m4_1.4.18.orig.tar.xz;name=m4_1.4.18.orig.tar.xz'.
ERROR: m4-native-1.4.18-r0 do_unpack:
ERROR: m4-native-1.4.18-r0 do_unpack: Function failed: base_do_unpack

same for quilt

ERROR: quilt-native-0.65-r0 do_unpack:
ERROR: quilt-native-0.65-r0 do_unpack: Function failed: base_do_unpack

ERROR: autoconf-native-2.69-r0 do_unpack:
ERROR: autoconf-native-2.69-r0 do_unpack: Function failed: base_do_unpack

ERROR: automake-native-1.16.1-r0 do_unpack:
ERROR: automake-native-1.16.1-r0 do_unpack: Function failed: base_do_unpack

I'm under kubuntu 16.04
I kept the local.conf generated but add this
PREFERRED_PROVIDER_linux-libc-headers ="linux-libc-headers-base" //to avoid multi provider error
MACHINE = "raspberrypi4-64"

An idea how to resolve this please ?

Do Thanh Trung

unread,
Nov 3, 2019, 9:44:32 PM11/3/19
to Mickaël LE STEPHAN, DEBY
Hi,

You could check:
- If "xz" is installed on your system.
- If command "xz -dc build/downloads/m4_1.4.18.orig.tar.xz | tar x
--no-same-owner -f -" run successfully or not.
- If "tmp/hosttools/xz" exists and is a correct link to the host's "xz".
- If "build/downloads/m4_1.4.18.orig.tar.xz" exists and can be extracted
manually.


Trung,
> --
> You received this message because you are subscribed to the Google
> Groups "DEBY" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to meta-debian...@googlegroups.com
> <mailto:meta-debian...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/meta-debian/c2c0bd53-416e-42e8-a5a5-054bfe87f558%40googlegroups.com
> <https://groups.google.com/d/msgid/meta-debian/c2c0bd53-416e-42e8-a5a5-054bfe87f558%40googlegroups.com?utm_medium=email&utm_source=footer>.

--

--
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com

Modjo

unread,
Nov 4, 2019, 3:56:27 PM11/4/19
to DEBY
Thanks for your answer. I didn't find xz in tmp/hostools. just add a symbolic link and now it works !
That his strange is that on other yocto build (pyro, rocko ...) for imx6 board i didn't meet this issue and xz is not in hostools ...

best regards !

Do Thanh Trung

unread,
Nov 4, 2019, 9:15:56 PM11/4/19
to Modjo, DEBY
> That his strange is that on other yocto build (pyro, rocko ...) for imx6 board i didn't meet this issue and xz is not in hostools ...

Yocto use upstream m4 in .gz format while meta-debian use Debian m4
which is in .xz format,
and m4-native cannot depend on xz-native because xz-native depends on
m4-native,
so we need to use xz from host system.

> I didn't find xz in tmp/hostools. just add a symbolic link and now it works !

Since commit 1bb206e, symlink xz should be created in tmp/hosttools
automatically if DISTRO is deby-tiny or deby.
I guess that you set DISTRO to another or variable HOSTTOOLS was overridden.

If you don't want to add symbolic link manually, you can just set
HOSTTOOLS += "xz" in your build config.


Trung,
> --
> You received this message because you are subscribed to the Google
> Groups "DEBY" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to meta-debian...@googlegroups.com
> <mailto:meta-debian...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/meta-debian/23fe6f95-f6e4-4f74-9bd0-70e272c923d8%40googlegroups.com
> <https://groups.google.com/d/msgid/meta-debian/23fe6f95-f6e4-4f74-9bd0-70e272c923d8%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
================================================================
Do Thanh Trung (Mr.)
Toshiba Software Development (Vietnam) Co.,Ltd
13th Floor, VIT Building, 519 Kim Ma street, Ba Dinh District, Hanoi,
Vietnam
Tel: (84-4) 22 20 88 01 (ext: 207)
================================================================

Note: This e-mail message may contain personal information or
confidential information.
If you are not the addressee of this message, please delete this message
and kindly
notify the sender as soon as possible, do not copy, use, or disclose
this message.

Modjo

unread,
Nov 5, 2019, 1:23:29 PM11/5/19
to DEBY
Thanks a lot for all this precisions ! it's more clear now in my head ... But it seams now i have a problem when rootfs is building :

Transaction Summary
================================================================================
Install  1537 Packages

Total size: 38 M
Installed size: 116 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction check error:
  file /var/spool/mail conflicts between attempted installs of shadow-4.5-r0.aarch64 and base-files-10.3+deb10u1-r0.raspberrypi4_64

Error Summary
-------------


ERROR:
DEBUG: Python function do_rootfs finished
ERROR: Function failed: do_rootfs

but perhaps it's because i use poky in distro ... i will change to deby-tiny. Can you just explain me the difference between poky and deby please ?
I build core-image-base

regards,

Le vendredi 1 novembre 2019 19:12:30 UTC+1, Modjo a écrit :

Modjo

unread,
Nov 5, 2019, 4:05:00 PM11/5/19
to DEBY
Tried with deby distro but error during rootfs :

Build Configuration:
BB_VERSION           = "1.42.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-deby-linux"
MACHINE              = "raspberrypi4-64"
DISTRO               = "deby"
DISTRO_VERSION       = "10.0"
TUNE_FEATURES        = "aarch64 cortexa72 crc crypto"
TARGET_FPU           = ""
meta                
meta-poky            = "warrior:d0f73121551dc98f6924cd77952bf9ebf5ef3dd7"
meta-raspberrypi     = "warrior:5cb49f4d76a311201bd36cf6538e23a59e3d8030"
meta-debian         
meta-raspberrypi     = "warrior:a4df583860fe87349f9473bc47ff30ef3282c5d5"

Initialising tasks: 100% |#########################################################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 1012 Found 0 Missed 1012 Current 181 (0% match, 15% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: elfutils-0.176-r0 do_populate_lic: elfutils: No generic license file exists for: Elfutils-Exception in any provider
WARNING: core-image-base-1.0-r0 do_rootfs: Postinstall for package libnss-mdns failed with 2:
sed: can't read /media/modjo/data1TO/yocto/raspberry/warrior-debian/build/tmp/work/raspberrypi4_64-deby-linux/core-image-base/1.0-r0/rootfs/etc/nsswitch.conf: No such file or directory

ERROR: core-image-base-1.0-r0 do_rootfs: Postinstall scriptlets of ['libnss-mdns'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in /media/modjo/data1TO/yocto/raspberry/warrior-debian/build/tmp/work/raspberrypi4_64-deby-linux/core-image-base/1.0-r0/temp/log.do_rootfs.
ERROR: core-image-base-1.0-r0 do_rootfs:
ERROR: core-image-base-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /media/modjo/data1TO/yocto/raspberry/warrior-debian/build/tmp/work/raspberrypi4_64-deby-linux/core-image-base/1.0-r0/temp/log.do_rootfs.24253
ERROR: Task (/media/modjo/data1TO/yocto/raspberry/warrior-debian/poky/meta/recipes-core/images/core-image-base.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3710 tasks of which 1054 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /media/modjo/data1TO/yocto/raspberry/warrior-debian/poky/meta/recipes-core/images/core-image-base.bb:do_rootfs
Summary: There were 3 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.


Le vendredi 1 novembre 2019 19:12:30 UTC+1, Modjo a écrit :

Do Thanh Trung

unread,
Nov 6, 2019, 5:54:17 AM11/6/19
to Modjo, DEBY
> WARNING: core-image-base-1.0-r0 do_rootfs: Postinstall for package libnss-mdns failed with 2:
> sed: can't read /media/modjo/data1TO/yocto/raspberry/warrior-debian/build/tmp/work/raspberrypi4_64-deby-linux/core-image-base/1.0-r0/rootfs/etc/nsswitch.conf: No such file or directory

Please try this patch.
/etc/nsswitch.conf is provided by base-files on Poky, but by glibc on Deian.

> Running transaction check
> Transaction check succeeded.

It seems that you are using PACKAGE_CLASSES is "package_rpm", you should
change it to "package_deb" in your build/conf/local.conf.
> --
> You received this message because you are subscribed to the Google
> Groups "DEBY" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to meta-debian...@googlegroups.com
> <mailto:meta-debian...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/meta-debian/2c0476cc-4f76-4dde-a86f-a560d3ec264c%40googlegroups.com
> <https://groups.google.com/d/msgid/meta-debian/2c0476cc-4f76-4dde-a86f-a560d3ec264c%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Trung
0001-glibc-Provide-example-config-for-GNU-Name-Service-Sw.patch
Bitdefender.txt

Modjo

unread,
Nov 6, 2019, 5:49:12 PM11/6/19
to DEBY
Apply your patch and build with deb but same error :

WARNING: core-image-base-1.0-r0 do_rootfs: Postinstall for package libnss-mdns failed with 2:
sed: can't read /media/modjo/data1TO/yocto/raspberry/warrior-debian/build/tmp/work/raspberrypi4_64-deby-linux/core-image-base/1.0-r0/rootfs/etc/nsswitch.conf: No such file or directory

ERROR: core-image-base-1.0-r0 do_rootfs: Postinstall scriptlets of ['libnss-mdns'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget_${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in /media/modjo/data1TO/yocto/raspberry/warrior-debian/build/tmp/work/raspberrypi4_64-deby-linux/core-image-base/1.0-r0/temp/log.do_rootfs.
ERROR: core-image-base-1.0-r0 do_rootfs:
ERROR: core-image-base-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /media/modjo/data1TO/yocto/raspberry/warrior-debian/build/tmp/work/raspberrypi4_64-deby-linux/core-image-base/1.0-r0/temp/log.do_rootfs.8756

ERROR: Task (/media/modjo/data1TO/yocto/raspberry/warrior-debian/poky/meta/recipes-core/images/core-image-base.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3710 tasks of which 2181 didn't need to be rerun and 1 failed.

Perhaps i need to clean ?

Do Thanh Trung

unread,
Nov 8, 2019, 6:00:53 AM11/8/19
to Modjo, DEBY
In the old patch I added /etc/nsswitch.conf to glibc-utils (which equal
with libc-bin on Debian)
but libnss-mdns doesn't depend on it, so glibc-utils isn't installed
into image.

I updated the patch and changed package provides /etc/nsswitch.conf to
glibc. Could you please try this patch instead.
> --
> You received this message because you are subscribed to the Google
> Groups "DEBY" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to meta-debian...@googlegroups.com
> <mailto:meta-debian...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/meta-debian/cf4296e8-2c82-45a1-aed2-24b60a52ddc9%40googlegroups.com
> <https://groups.google.com/d/msgid/meta-debian/cf4296e8-2c82-45a1-aed2-24b60a52ddc9%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Trung
[PATCH_02]0001-glibc-Provide-example-config-for-GNU-Name-Service-Sw.patch
Bitdefender.txt

Modjo

unread,
Nov 10, 2019, 6:26:49 AM11/10/19
to DEBY
Hi and thanks, now the rootfs is ok. I need to boot the pi4 now to test the image (but i need to find an usb c before ...)
I let you know

Le vendredi 1 novembre 2019 19:12:30 UTC+1, Modjo a écrit :
Reply all
Reply to author
Forward
0 new messages