[FS#1003] Flex does not build with GCC 7.2

LEDE Bugs lede-bugs at lists.infradead.org
Sat Sep 9 02:42:33 PDT 2017


A new Flyspray task has been opened.  Details are below. 

User who did this - Magnus Olsson (most) 

Attached to Project - LEDE Project
Summary - Flex does not build with GCC 7.2
Task Type - Bug Report
Category - Toolchain
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - 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


 

One or more files have been attached.

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=1003



More information about the lede-bugs mailing list