chroot: failed to run command ‘ldconfig’: No such file or directory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

chroot: failed to run command ‘ldconfig’: No such file or directory

6,676 Views
lijun10210
Contributor II

搭建lsdk1812时在执行flex-builder -i merge-component -a arm64命令时提示chroot: failed to run command ‘ldconfig’: No such file or directory错误,有没有知道怎么解决的小伙伴,江湖救急。目标板用的是ls1046ardb

Labels (1)
0 Kudos
8 Replies

5,482 Views
DongboWang
NXP Employee
NXP Employee

There is a workaround below. Open the script "flexbuild/tools/flex-builder" and remove the command line "sudo chroot $RFSDIR ldconfig". re-compile again.

0 Kudos

5,482 Views
lingguan
Contributor II

同问,解决了吗?

0 Kudos

5,230 Views
improve100
Contributor I

I think the correct answer will be ...
Install in the HOST the qemu user package:
apt-get install qemu-user-static

Because even solving that,
if you are cross-debootstrapping, it will fail in second bootstrap stage...

0 Kudos

5,482 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please execute "flex-builder -i mkrfs -a arm64" first, then execute "flex-builder -i merge-component -a arm64".

Please refer to the following procedure.

1. Generate Ubuntu arm64 userland

$ flex-builder -i mkrfs -a arm64

2. Extract app components or kernel modules

$ tar xvzf app_components_LS_arm64.tgz -C build/apps

$ sudo tar xvzf lib_modules_LS_arm64_<kernel_version>.tgz -C build/rfs/rootfs_ubuntu_bionic_LS_arm64/lib/modules

3. Merge all components packages and kernel modules into target userland and compress ubuntu arm64 rootfs as .tgz tarball

$ flex-builder -i merge-component -a arm64
$ flex-builder -i compressrfs -a arm64


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

5,482 Views
linj17
Contributor I

When I executed "flex-builder -i merge-component -a arm64". I got following error. How to resolve it? Thanks a lot!

 

root@fbubuntu:/a/workspace/nlin/ls2160a/flexbuild# flex-builder -i merge-component -a arm64
INSTRUCTION: merge-component
DESTARCH: arm64
chroot: failed to run command 'ldconfig': Exec format error

0 Kudos

4,082 Views
djh
Contributor I

Excuse me, has this problem been solved?

0 Kudos

2,907 Views
1090325856
Contributor I

someone has solved this issue:

method: install these components in host not container, $sudo apt install -y binfmt-support qemu-system-common qemu-user-static

Solved: Re: LSDK1909 weston compilation failure on custom ... - NXP Community

0 Kudos

5,482 Views
fanglongteng
Contributor I

这个问题后来解决了吗?

0 Kudos