https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67067
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Alex Lai from comment #1) > the error apparently is due to the missing space between -static and > -libstdc++. There is no missing space, that's a valid gcc option.