I ran
sudo apt install -y binfmt-support qemu-system-common qemu-user-static
then re-tried
flex-builder -m ls1088ardb_pb
Unfortunately, I still got the same error:
Building weston ...
chroot: failed to run command 'ldconfig': Exec format error
Makefile:720: recipe for target 'weston' failed
make[1]: *** [weston] Error 126
make[1]: Leaving directory '/src/packages/apps'
Makefile:28: recipe for target 'apps' failed
make: *** [apps] Error 2
make: Leaving directory '/src'
I'm not sure if the fact that I started a clean docker container without using "flex-builder docker", then mounted to the LSDK directory and installed the packages in the dockerfile manually may be the cause. Trying to run flex-builder docker involved permissions I do not have, so I have been trying to use a workaround.
docker run --net=host -v $(pwd):/src -it ubuntu:18.04
apt-get update
apt-get dist-upgrade
apt-get update
apt-get install -y \
u-boot-tools device-tree-compiler autoconf automake dh-autoreconf libssl-dev zip \
openssl python-pip flex bison bc git gcc vim ethtool wget ftp make makedev tclsh \
binfmt-support qemu-system-common qemu-user-static debootstrap sudo ncurses-dev \
gcc-arm-linux-gnueabihf crossbuild-essential-arm64 gcc-aarch64-linux-gnu file \
build-essential gdb u-boot-tools device-tree-compiler python python-dev curl \
libxml2-dev libsensors4-dev libssl-dev libedit-dev liblzma-dev tree binutils-dev \
libnuma-dev libpcap-dev libtool mtd-utils libncurses5-dev libelf-dev net-tools \
libcunit1-dev pkg-config autotools-dev crossbuild-essential-armhf openssh-server \
openssh-client crossbuild-essential-armhf qemu-utils kmod g++-aarch64-linux-gnu \
cpp-arm-linux-gnueabihf dosfstools ruby iputils-ping cpio rsync libtclap-dev \
parted android-tools-fsutils rpm2cpio lsb-release xutils-dev libwayland-bin cmake \
locales texinfo chrpath diffstat gawk