Building weston: chroot: failed to run command ‘ldconfig’: Input/output error

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

Building weston: chroot: failed to run command ‘ldconfig’: Input/output error

Jump to solution
2,367 Views
userland
Contributor II

Hi

I'm currently trying to build using flexbuild on Ubuntu 18.04 on WSL2

Executing flex-builder -m lx2160ardb_rev2 works until it comes to building weston:

Building weston ...
chroot: failed to run command ‘ldconfig’: Input/output error
/home/userland/flexbuild_lsdk2012/packages/apps/multimedia/multimedia.mk:84: recipe for target 'weston' failed
make[1]: *** [weston] Error 126
make[1]: Leaving directory '/home/userland/flexbuild_lsdk2012/packages/apps'
Makefile:28: recipe for target 'apps' failed
make: *** [apps] Error 2
make: Leaving directory '/home/userland/flexbuild_lsdk2012'

 

I've made sure that binfmt-support, qemu-system-common and qemu-user-static is installed.
I've also made sure that meson was installed.

0 Kudos
Reply
1 Solution
2,333 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please put the attached flex-builder file in folder flexbuild_lsdk2012/tools, then run the following command.

$ flex-builder -c weston -a arm64

View solution in original post

0 Kudos
Reply
4 Replies
2,360 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please try the following workaround.

Open the script "flexbuild_lsdk2012/tools/flex-builder" and remove the command line "sudo chroot $RFSDIR ldconfig". re-compile again.

0 Kudos
Reply
2,356 Views
userland
Contributor II

Hello

I tried to remove the line but it didn't work.
But I got a different ldconfig error this time:

Building weston ...
chroot: failed to run command ‘ldconfig’: Exec format error
/home/userland/flexbuild_lsdk2012/packages/apps/multimedia/multimedia.mk:84: recipe for target 'weston' failed
make[1]: *** [weston] Error 126
make[1]: Leaving directory '/home/userland/flexbuild_lsdk2012/packages/apps'
Makefile:28: recipe for target 'apps' failed
make: *** [apps] Error 2
make: Leaving directory '/home/userland/flexbuild_lsdk2012'

0 Kudos
Reply
2,334 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please put the attached flex-builder file in folder flexbuild_lsdk2012/tools, then run the following command.

$ flex-builder -c weston -a arm64

0 Kudos
Reply
2,329 Views
userland
Contributor II

That seemed to do the trick!

Thanks!

0 Kudos
Reply