Problem with build userspace ./build.sh

dear Opencn developpers,

i had this problem when i do ./build.sh

/root/opencn/usr/lib/aflib.c:19:41: fatal error: linux/generated/asm-offsets.h: No such file or directory
#include <linux/generated/asm-offsets.h>

any idea to solve this probem??

best regards

The build of in usr/ must follow the build of kernel and rootfs at first, since there are some dependencies on generated files. Have you built the kernel before?

i try to build the kernel and rootfs first but i had this new error: “-mpreferred-stack-boundary=3 is not between 4 and 12” in compilation of some files like tools.c - feedopt.c - lcct.c

i do some dig on the net but i don’t know how change this gcc option mpreferred-stack-boundary to acceptable value between 4 and 12 ???

Hi aymen,

Did you install one of the proposed packets (first line of the build log) ? libelf-dev, libelf-devel or elfutils-libelf-devel ?

Which version of gcc are you using ? We had issues with gcc > 7.x (I use gcc 7.4 one my opencn installation).

Hi ayem,

I just tried with gcc-8. I had an issue but not with opencn/feedopt sources (it was in pager.c).