[SOLVED] Error on building latest trunk (Edgerouter ER-X)

Since a vew days i get an error on compiling latest trunk:

OpenWrt-libtool: link: gcc -O2 -I/home/guenther/LEDE/EDGEROUTER/bleedingedge/source/staging_dir/host/include -I/home/guenther/LEDE/EDGEROUTER/bleedingedge/source/staging_dir/host/usr/include -o stage1flex stage1flex-scan.o stage1flex-buf.o stage1flex-ccl.o stage1flex-dfa.o stage1flex-ecs.o stage1flex-filter.o stage1flex-gen.o stage1flex-main.o stage1flex-misc.o stage1flex-nfa.o stage1flex-options.o stage1flex-parse.o stage1flex-regex.o stage1flex-scanflags.o stage1flex-scanopt.o stage1flex-skel.o stage1flex-sym.o stage1flex-tables.o stage1flex-tables_shared.o stage1flex-tblcmp.o stage1flex-yylex.o  -L/home/guenther/LEDE/EDGEROUTER/bleedingedge/source/staging_dir/host/lib -L/home/guenther/LEDE/EDGEROUTER/bleedingedge/source/staging_dir/host/usr/lib -lm
./stage1flex   -o stage1scan.c ./scan.l
make[6]: *** [Makefile:1689: stage1scan.c] Segmentation fault (core dumped)
make[6]: Leaving directory '/home/guenther/LEDE/EDGEROUTER/bleedingedge/source/build_dir/host/flex-2.6.4/src'
make[5]: *** [Makefile:539: all] Error 2
make[5]: Leaving directory '/home/guenther/LEDE/EDGEROUTER/bleedingedge/source/build_dir/host/flex-2.6.4/src'
make[4]: *** [Makefile:525: all-recursive] Error 1
make[4]: Leaving directory '/home/guenther/LEDE/EDGEROUTER/bleedingedge/source/build_dir/host/flex-2.6.4'
make[3]: *** [Makefile:29: /home/guenther/LEDE/EDGEROUTER/bleedingedge/source/build_dir/host/flex-2.6.4/.built] Error 2
make[3]: Leaving directory '/home/guenther/LEDE/EDGEROUTER/bleedingedge/source/tools/flex'
make[2]: *** [tools/Makefile:150: tools/flex/compile] Error 2
make[2]: Leaving directory '/home/guenther/LEDE/EDGEROUTER/bleedingedge/source'
make[1]: *** [tools/Makefile:146: /home/guenther/LEDE/EDGEROUTER/bleedingedge/source/staging_dir/target-mipsel_24kc_musl/stamp/.tools_compile_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynny] Error 2
make[1]: Leaving directory '/home/guenther/LEDE/EDGEROUTER/bleedingedge/source'
make: *** [/home/guenther/LEDE/EDGEROUTER/bleedingedge/source/include/toplevel.mk:209: world] Fehler 2

Host is Archlinux x86_64.

Any help would be great!

Need to add a patch in tree

https://bugs.lede-project.org/index.php?do=details&task_id=1003&opened=806&status[0]=

1 Like

Many thanks!

solved:

https://git.lede-project.org/?p=source.git;a=commitdiff;h=0fb14a2b1ab2f82ce63f4437b062229d73d90516