g++ compiler not working after Sierra update I installed gcc/g++ following this tutorial a while ago (version 6.2). Now that I updated to Sierra, it's not compiling anymore.

When checking the version, it respond properly:

g++ --version

g++ (GCC) 6.2.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


But when I try to compile a code that has no compilation error (tried to use online compilers like cpp.sh and it compiled successfully) it outputs this weird message (as an image, for readability):



Any suggestions?
The issue comes from the fact that you're combining the GNU C++ compiler with the Clang assembler.

The Clang assembler expects you to use the new section names, and will warn you that you're using deprecated names.

However, please note that these are only warnings. You're free to ignore them and your program will work as before.

Your options are basically:


Ignore the warnings
Patch g++ with the patch found in this bugreport 
Use a different assembler


Or you could just use the system supplied c++ compiler instead of compiling your own.