https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65995
--- Comment #2 from Daniel Starke <daniel.f.starke at freenet dot de> --- I already applied the open() patch listed there so this is definitively a different bug. I will try again with the current trunk hopefully within this week.