New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS#1003 - Flex does not build with GCC 7.2 #5960
Comments
simontretter: Same issue here. Can't build the toolchain on Arch with gcc 7.2.0 due to this flex bug. |
fseek: The commit [[https://github.com/westes/flex/commit/24fd0551333e7eded87b64dd36062da3df2f6380|24fd055]] is also necessary to fix the segfault. Here is the patch I'm successfully using at the moment (place it in tools/flex/patches) |
most: Great, applied the patch (110-gcc720-segfault.patch) and now it builds. |
wongsyrone: Please check these two commits: westes/flex@2b290d8 The fixes will be in 2.6.5 |
airend: On my Arch system, westes/flex@24fd055 is sufficient to address the segfault. |
MartB: This is still an ongoing issue with the GCC 7.2.0 (ArchLinux) and as Andrei pointed out that little patch fixes it. For now i would suggest adding this patch to the repository and later move to 2.6.5 as soon as its released. |
bjonglez: This has already been fixed: https://git.lede-project.org/0fb14a2b1ab2f82ce63f4437b062229d73d90516 |
MartB: Dang should have pulled i was not paying attention to the commits today. Thanks for pointing that out. |
most:
Get segmentation fault when compiling flex. Seems to be connected to gcc version 7.2 and issue identified upstream [[https://github.com/westes/flex/issues/247|"247]] with whis fix [[https://github.com/westes/flex/commit/4b5111d9772b5c160340ca96f08d30d7f6db5cda|Commit]].
Tried to apply this fix with own patch, but that did not improve the situation.
LEDE version: r4798-5629904ea8
gcc version 7.2.0 (Ubuntu 7.2.0-4ubuntu1)
OpenWrt-libtool: link: gcc -O2 -I/network/lede/source/staging_dir/host/include -I/network/lede/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/network/lede/source/staging_dir/host/lib -L/network/lede/source/staging_dir/host/usr/lib -lm ./stage1flex -o stage1scan.c ./scan.l Makefile:1689: recipe for target 'stage1scan.c' failed make[6]: *** [stage1scan.c] Segmentation fault (core dumped) make[6]: Leaving directory '/network/lede/source/build_dir/host/flex-2.6.4/src' Makefile:539: recipe for target 'all' failed make[5]: *** [all] Error 2 make[5]: Leaving directory '/network/lede/source/build_dir/host/flex-2.6.4/src' Makefile:525: recipe for target 'all-recursive' failed make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory '/network/lede/source/build_dir/host/flex-2.6.4' Makefile:28: recipe for target '/network/lede/source/build_dir/host/flex-2.6.4/.built' failed make[3]: *** [/network/lede/source/build_dir/host/flex-2.6.4/.built] Error 2
The text was updated successfully, but these errors were encountered: