It appears you're trying to build gcc using clang, right?
I'm not too knowledgeable in mac/clang, but it would appear that your g++, despite its name, is actually a symbolic link to clang++ or otherwise renamed from clang++.
-fno-enforce-eh-specs is not supported on clang (at least, that's what a cursory search tells me)
http://clang-developers.42468.n3.nabble.com/Does-clang-support-fno-enforce-eh-specs-option-of-gcc-td4028196.html
That specific flag refers to how old versions of the standard would allow constructs like:
void func() throw(foo);
, and if something besides a foo is thrown, then std::unexpected is called (which I think calls std::terminate). That flag would remove this run-time check. But this usage has been deprecated and (I think?) removed as of the latest standards, although compiler extensions might still allow it to compile for backwards compatibility.
If you can't get it to work, I'd either follow a different tutorial that assumes you're using clang++ instead of g++, or try to remove that flag from the build script manually.