It has already been reported here: https://github.com/westes/flex/issues/265 Adding -D_GNU_SOURCE to CFLAGS solves the problem. Reproducible: Always
Created attachment 499536 [details] build.log
Created attachment 499538 [details] environment describing the system
Feels like a dup of bug#628744, and we need a bootstrap snapshot bump here: Does it work when you set the LATEST_TREE_YES=1 environment variable before (re)starting bootstrap-prefix.sh?
(In reply to Michael Haubenwallner from comment #3) > (re)starting bootstrap-prefix.sh? Sorry, re-starting won't work, as it won't re-download the snapshot. You'd need to start from scratch with LATEST_TREE_YES=1 set.
Setting LATEST_TREE_YES=1 before a fresh bootstrap indeed solved the issue. I didn't know that setting LATEST_TREE_YES=1 in the middle of a run does not have an effect. That's why I issued the bug report. *** This bug has been marked as a duplicate of bug 628744 ***