Initially the build failed due to flex being too old; after upgrading flex another issue came up when building the BrainScaleS version of binutils-gdb (via oppulance) against a modern version of bison → this has been fixed in here.
flex
binutils-gdb