https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80340
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Configuring GCC with --disable-libstdcxx-verbose will remove the use of write in that file, which you should do if running on some non-POSIX embedded system (you haven't provided any of the information requested by https://gcc.gnu.org/bugs/ so it's impossible to know what you're doing).