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.
Solved! Go to Solution.
Please put the attached flex-builder file in folder flexbuild_lsdk2012/tools, then run the following command.
$ flex-builder -c weston -a arm64
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.
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'
That seemed to do the trick!
Thanks!