AnsweredAssumed Answered

flex-builder mkrfs buildroot fails

Question asked by Edelhard Becker on Jan 24, 2019
Latest reply on Jan 31, 2019 by Edelhard Becker

Hello all,

we are trying to build a root fs with flexbuild 1803 and buildroot on a Ubuntu 16.04 development host. This should be the default setup. When running:

source ./setup.env

flex-builder -i mkrfs -r buildroot:tiny -a arm64

after some time the build fails with this error message:

make: Entering directory '/home/sick/flexbuild-updates/flexbuild_lsdk1803/packages/rfs/buildroot'
/usr/bin/make -j1 O=/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig
make[2]: warning: -jN forced in submake: disabling jobserver mode.
GEN /home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/Makefile
>>> fmlib LSDK-17.12 Building
PATH="/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/host/bin:/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/host/sbin:/home/sick/flexbuild-updates/flexbuild_lsdk1803:/home/sick/flexbuild-updates/flexbuild_lsdk1803/tools:/home/sick/bin:/home/sick/.local/bin:/opt/cmake-3.12.3-Linux-x86_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/sick/bin" /usr/bin/make CC="/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/host/bin/aarch64-linux-gnu-gcc" CROSS_COMPILE="/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/host/bin/aarch64-linux-gnu-" KERNEL_SRC="/home/sick/flexbuild-updates/flexbuild_lsdk1803/packages/linux/dash-lts" PREFIX="/home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/host/aarch64-buildroot-linux-gnu/sysroot/usr" -C /home/sick/flexbuild-updates/flexbuild_lsdk1803/build/rfs/rootfs_buildroot_arm64_tiny/build/fmlib-LSDK-17.12
(CC) libfm-arm.o
src/fm_lib.c:56:10: fatal error: fm_ioctls.h: No such file or directory
 #include "fm_ioctls.h"
          ^~~~~~~~~~~~~
compilation terminated.
Makefile:105: recipe for target 'libfm-arm.o' failed
make[2]: *** [libfm-arm.o] Error 1

Investigating where fm_ioctls.h should come from shows, that it was included in linux-libc-dev-arm64-cross up to version 3.13.0 that was included with Ubuntu 14.04 (trusty). In the arm64-cross packages for 16.04 (and newer) it just is not included anymore.

How to solve this? Is there a compile flag that should help? Or a separate package to install?

Thanks and greetings,

Edelhard

Outcomes