# Problem with build userspace ./build.sh

**URL:** <http://discourse.heig-vd.ch/t/problem-with-build-userspace-build-sh/138>\
**Category:** OpenCN Framework\
**Created:** [July 3, 2020, 12:03pm UTC](http://discourse.heig-vd.ch/t/problem-with-build-userspace-build-sh/138 "2020-07-03T12:03:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aymen](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/a/8e8cbc/32.png) [@aymen](http://discourse.heig-vd.ch/u/aymen)\
**Post date:** [July 3, 2020, 12:03pm UTC](http://discourse.heig-vd.ch/t/problem-with-build-userspace-build-sh/138/1 "2020-07-03T12:03:36Z")

</div>

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\>

 ![error](https://discourse.heig-vd.ch/uploads/default/original/1X/60b6fce464111d246674249dc6bc93cc24741603.png)

any idea to solve this probem??

best regards

---

<div class="post-metadata">

**Author:** ![rossierd](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/rossierd/32/4_2.png) [@rossierd](http://discourse.heig-vd.ch/u/rossierd)\
**Post date:** [July 3, 2020, 2:09pm UTC](http://discourse.heig-vd.ch/t/problem-with-build-userspace-build-sh/138/2 "2020-07-03T14:09:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![aymen](http://discourse.heig-vd.ch/letter_avatar_proxy/v4/letter/a/8e8cbc/32.png) [@aymen](http://discourse.heig-vd.ch/u/aymen)\
**Post date:** [July 4, 2020, 9:51am UTC](http://discourse.heig-vd.ch/t/problem-with-build-userspace-build-sh/138/3 "2020-07-04T09:51:05Z")

</div>

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

 ![error](https://discourse.heig-vd.ch/uploads/default/original/1X/284bc0eb1134bbb0bf9b4356e56a151d166f760a.png)

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 ???

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [July 5, 2020, 9:44am UTC](http://discourse.heig-vd.ch/t/problem-with-build-userspace-build-sh/138/4 "2020-07-05T09:44:41Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![jmi](http://discourse.heig-vd.ch/user_avatar/discourse.heig-vd.ch/jmi/32/125_2.png) [@jmi](http://discourse.heig-vd.ch/u/jmi)\
**Post date:** [July 5, 2020, 10:40am UTC](http://discourse.heig-vd.ch/t/problem-with-build-userspace-build-sh/138/5 "2020-07-05T10:40:16Z")

</div>

Hi ayem,

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