title: Errors from `node-gyp build`: invalid value 'gnu++1y' in '-std=gnu++1y'
body: <p>UPDATE. Output of <code>gcc -v</code> as requested:</p>
  
  <pre>
  → gcc -v
  Using built-in specs.
  Target: i686-apple-darwin11
  Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
  Thread model: posix
  gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
  </pre>
  
  <hr>
  
  <p>I am trying to follow the <a href="https://nodejs.org/api/addons.html#addons_hello_world" rel="nofollow noreferrer">Node.js official addons example</a></p>
  
  <p>The <code>node-gyp configure</code> step runs without errors.</p>
  
  <p>However, the following <code>node-gyp build</code> step is failing:</p>
  
  <pre>
  → node-gyp build
  gyp info it worked if it ends with ok
  gyp info using node-gyp@5.0.2
  gyp info using node@10.16.0 | darwin | x64
  gyp info spawn make
  gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
    CXX(target) Release/obj.target/addon/hello.o
  error: invalid value 'gnu++1y' in '-std=gnu++1y'
  make: *** [Release/obj.target/addon/hello.o] Error 1
  gyp ERR! build error 
  gyp ERR! stack Error: `make` failed with exit code: 2
  gyp ERR! stack     at ChildProcess.onExit (/Users/dmitrizaitsev/.npm-global/lib/node_modules/node-gyp/lib/build.js:190:23)
  gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
  gyp ERR! System Darwin 12.6.0
  gyp ERR! command "/usr/local/bin/node" "/Users/dmitrizaitsev/.npm-global/bin/node-gyp" "build"
  gyp ERR! cwd /Users/dmitrizaitsev/test/addons/official
  gyp ERR! node -v v10.16.0
  gyp ERR! node-gyp -v v5.0.2
  gyp ERR! not ok 
  </pre>
  
  <p>The first error message is </p>
  
  <pre><code>invalid value 'gnu++1y' in '-std=gnu++1y'
  </code></pre>
  
  <p>What does it mean and how can this error possibly be fixed?</p>