stackgl / headless-gl

🎃 Windowless WebGL for node.js
1.73k stars 166 forks source link

Fix build on MacOS + Node 19 #243

Closed rotu closed 1 year ago

rotu commented 1 year ago

This package fails to compile on MacOS Ventura with Node 19. This PR fixes the build.

rotu commented 1 year ago

These changes were needed to build on MacOS 16.2 + Node 19.0.1

rotu commented 1 year ago

Here's stderr before this change showing the build problems:

npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
prebuild-install warn install No prebuilt binaries found (target=19.0.1 runtime=node arch=arm64 libc= platform=darwin)
gyp info it worked if it ends with ok
gyp info using node-gyp@9.2.0
gyp info using node@19.0.1 | darwin | arm64
gyp info find Python using Python version 3.11.0 found at "/opt/homebrew/opt/python@3.11/bin/python3.11"
gyp info spawn /opt/homebrew/opt/python@3.11/bin/python3.11
gyp info spawn args [
gyp info spawn args   '/Users/dan/Source/headless-gl/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/dan/Source/headless-gl/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/dan/Source/headless-gl/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/dan/Library/Caches/node-gyp/19.0.1',
gyp info spawn args   '-Dnode_gyp_dir=/Users/dan/Source/headless-gl/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/dan/Library/Caches/node-gyp/19.0.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/dan/Source/headless-gl',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
../angle/src/libANGLE/Program.cpp:2505:49: warning: instantiation of variable 'gl::GLTypeToGLenum<float>::value' required here, but no definition is available [-Wundefined-var-template]
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
../angle/src/libANGLE/Program.cpp:1263:5: note: in instantiation of function template specialization 'gl::Program::getUniformInternal<float>' requested here
    getUniformInternal(location, v);
    ^
../angle/src/libANGLE/queryconversions.h:26:19: note: forward declaration of template entity is here
    static GLenum value;
                  ^
../angle/src/libANGLE/Program.cpp:2505:49: note: add an explicit instantiation declaration to suppress this warning if 'gl::GLTypeToGLenum<float>::value' is explicitly instantiated in another translation unit
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
../angle/src/libANGLE/Program.cpp:2505:49: warning: instantiation of variable 'gl::GLTypeToGLenum<int>::value' required here, but no definition is available [-Wundefined-var-template]
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
../angle/src/libANGLE/Program.cpp:1268:5: note: in instantiation of function template specialization 'gl::Program::getUniformInternal<int>' requested here
    getUniformInternal(location, v);
    ^
../angle/src/libANGLE/queryconversions.h:26:19: note: forward declaration of template entity is here
    static GLenum value;
                  ^
../angle/src/libANGLE/Program.cpp:2505:49: note: add an explicit instantiation declaration to suppress this warning if 'gl::GLTypeToGLenum<int>::value' is explicitly instantiated in another translation unit
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
../angle/src/libANGLE/Program.cpp:2505:49: warning: instantiation of variable 'gl::GLTypeToGLenum<unsigned int>::value' required here, but no definition is available [-Wundefined-var-template]
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
../angle/src/libANGLE/Program.cpp:1273:5: note: in instantiation of function template specialization 'gl::Program::getUniformInternal<unsigned int>' requested here
    getUniformInternal(location, v);
    ^
../angle/src/libANGLE/queryconversions.h:26:19: note: forward declaration of template entity is here
    static GLenum value;
                  ^
../angle/src/libANGLE/Program.cpp:2505:49: note: add an explicit instantiation declaration to suppress this warning if 'gl::GLTypeToGLenum<unsigned int>::value' is explicitly instantiated in another translation unit
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
3 warnings generated.
In file included from ../angle/src/compiler/preprocessor/DirectiveParser.cpp:17:
../angle/src/compiler/preprocessor/MacroExpander.h:86:10: warning: 'auto_ptr<pp::Token>' is deprecated [-Wdeprecated-declarations]
    std::auto_ptr<Token> mReserveToken;
         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:32:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr
                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1054:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1043:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
1 warning generated.
In file included from ../angle/src/compiler/preprocessor/MacroExpander.cpp:7:
../angle/src/compiler/preprocessor/MacroExpander.h:86:10: warning: 'auto_ptr<pp::Token>' is deprecated [-Wdeprecated-declarations]
    std::auto_ptr<Token> mReserveToken;
         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:32:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr
                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1054:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1043:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
1 warning generated.
In file included from ../angle/src/compiler/preprocessor/Preprocessor.cpp:14:
../angle/src/compiler/preprocessor/MacroExpander.h:86:10: warning: 'auto_ptr<pp::Token>' is deprecated [-Wdeprecated-declarations]
    std::auto_ptr<Token> mReserveToken;
         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:32:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr
                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1054:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1043:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
1 warning generated.
./Tokenizer.cpp:1531:16: warning: function 'yyinput' is not needed and will not be emitted [-Wunneeded-internal-declaration]
    static int yyinput (yyscan_t yyscanner)
               ^
1 warning generated.
In file included from ../src/native/bindings.cc:9:
In file included from ../src/native/webgl.h:9:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/node.h:73:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8.h:24:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-array-buffer.h:12:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-local-handle.h:12:
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:461:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
SHARED_EXTERNAL_POINTER_TAGS(CHECK_SHARED_EXTERNAL_POINTER_TAGS)
                             ^
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:461:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:461:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:461:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:461:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
PER_ISOLATE_EXTERNAL_POINTER_TAGS(CHECK_NON_SHARED_EXTERNAL_POINTER_TAGS)
                                  ^
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:462:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:643:61: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
    static_assert(kJSObjectType + 1 == kFirstJSApiObjectType);
                                                            ^
                                                            , ""
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:644:55: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
    static_assert(kJSObjectType < kLastJSApiObjectType);
                                                      ^
                                                      , ""
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-internal.h:645:63: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
    static_assert(kFirstJSApiObjectType < kLastJSApiObjectType);
                                                              ^
                                                              , ""
In file included from ../src/native/bindings.cc:9:
In file included from ../src/native/webgl.h:9:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/node.h:73:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8.h:24:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-array-buffer.h:13:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-object.h:9:
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-maybe.h:106:45: error: no template named 'is_lvalue_reference_v' in namespace 'std'; did you mean 'is_lvalue_reference'?
  template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
                                       ~~~~~^~~~~~~~~~~~~~~~~~~~~
                                            is_lvalue_reference
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:910:29: note: 'is_lvalue_reference' declared here
struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> { };
                            ^
In file included from ../src/native/bindings.cc:9:
In file included from ../src/native/webgl.h:9:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/node.h:73:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8.h:24:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-array-buffer.h:13:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-object.h:9:
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-maybe.h:106:69: error: expected '(' for function-style cast or type construction
  template <class U, std::enable_if_t<!std::is_lvalue_reference_v<U>>*>
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-maybe.h:123:43: error: no template named 'is_lvalue_reference_v' in namespace 'std'; did you mean 'is_lvalue_reference'?
template <class T, std::enable_if_t<!std::is_lvalue_reference_v<T>>* = nullptr>
                                     ~~~~~^~~~~~~~~~~~~~~~~~~~~
                                          is_lvalue_reference
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:910:29: note: 'is_lvalue_reference' declared here
struct _LIBCPP_TEMPLATE_VIS is_lvalue_reference : _BoolConstant<__is_lvalue_reference(_Tp)> { };
                            ^
In file included from ../src/native/bindings.cc:9:
In file included from ../src/native/webgl.h:9:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/node.h:73:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8.h:24:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-array-buffer.h:13:
In file included from /Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-object.h:9:
/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/v8-maybe.h:123:67: error: expected '(' for function-style cast or type construction
template <class T, std::enable_if_t<!std::is_lvalue_reference_v<T>>* = nullptr>
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
In file included from ../src/native/bindings.cc:9:
In file included from ../src/native/webgl.h:10:
In file included from ../node_modules/nan/nan.h:180:
../node_modules/nan/nan_callbacks.h:55:23: error: no member named 'AccessorSignature' in namespace 'v8'
typedef v8::Local<v8::AccessorSignature> Sig;
                  ~~~~^
19 warnings and 5 errors generated.
make: *** [Release/obj.target/webgl/src/native/bindings.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/dan/Source/headless-gl/node_modules/node-gyp/lib/build.js:203:23)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Darwin 22.2.0
gyp ERR! command "/usr/local/bin/node" "/Users/dan/Source/headless-gl/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/dan/Source/headless-gl
gyp ERR! node -v v19.0.1
gyp ERR! node-gyp -v v9.2.0
gyp ERR! not ok 
npm ERR! code 1
npm ERR! path /Users/dan/Source/headless-gl
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dan/.npm/_logs/2022-12-10T16_26_40_942Z-debug-0.log

After:

npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
prebuild-install warn install No prebuilt binaries found (target=19.0.1 runtime=node arch=arm64 libc= platform=darwin)
gyp info it worked if it ends with ok
gyp info using node-gyp@9.2.0
gyp info using node@19.0.1 | darwin | arm64
gyp info find Python using Python version 3.11.0 found at "/opt/homebrew/opt/python@3.11/bin/python3.11"
gyp info spawn /opt/homebrew/opt/python@3.11/bin/python3.11
gyp info spawn args [
gyp info spawn args   '/Users/dan/Source/headless-gl/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/dan/Source/headless-gl/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/dan/Source/headless-gl/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/dan/Library/Caches/node-gyp/19.0.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/dan/Library/Caches/node-gyp/19.0.1',
gyp info spawn args   '-Dnode_gyp_dir=/Users/dan/Source/headless-gl/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/dan/Library/Caches/node-gyp/19.0.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/dan/Source/headless-gl',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
../angle/src/libANGLE/Program.cpp:2505:49: warning: instantiation of variable 'gl::GLTypeToGLenum<float>::value' required here, but no definition is available [-Wundefined-var-template]
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
../angle/src/libANGLE/Program.cpp:1263:5: note: in instantiation of function template specialization 'gl::Program::getUniformInternal<float>' requested here
    getUniformInternal(location, v);
    ^
../angle/src/libANGLE/queryconversions.h:26:19: note: forward declaration of template entity is here
    static GLenum value;
                  ^
../angle/src/libANGLE/Program.cpp:2505:49: note: add an explicit instantiation declaration to suppress this warning if 'gl::GLTypeToGLenum<float>::value' is explicitly instantiated in another translation unit
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
../angle/src/libANGLE/Program.cpp:2505:49: warning: instantiation of variable 'gl::GLTypeToGLenum<int>::value' required here, but no definition is available [-Wundefined-var-template]
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
../angle/src/libANGLE/Program.cpp:1268:5: note: in instantiation of function template specialization 'gl::Program::getUniformInternal<int>' requested here
    getUniformInternal(location, v);
    ^
../angle/src/libANGLE/queryconversions.h:26:19: note: forward declaration of template entity is here
    static GLenum value;
                  ^
../angle/src/libANGLE/Program.cpp:2505:49: note: add an explicit instantiation declaration to suppress this warning if 'gl::GLTypeToGLenum<int>::value' is explicitly instantiated in another translation unit
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
../angle/src/libANGLE/Program.cpp:2505:49: warning: instantiation of variable 'gl::GLTypeToGLenum<unsigned int>::value' required here, but no definition is available [-Wundefined-var-template]
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
../angle/src/libANGLE/Program.cpp:1273:5: note: in instantiation of function template specialization 'gl::Program::getUniformInternal<unsigned int>' requested here
    getUniformInternal(location, v);
    ^
../angle/src/libANGLE/queryconversions.h:26:19: note: forward declaration of template entity is here
    static GLenum value;
                  ^
../angle/src/libANGLE/Program.cpp:2505:49: note: add an explicit instantiation declaration to suppress this warning if 'gl::GLTypeToGLenum<unsigned int>::value' is explicitly instantiated in another translation unit
    if (componentType == GLTypeToGLenum<DestT>::value)
                                                ^
3 warnings generated.
In file included from ../angle/src/compiler/preprocessor/DirectiveParser.cpp:17:
../angle/src/compiler/preprocessor/MacroExpander.h:86:10: warning: 'auto_ptr<pp::Token>' is deprecated [-Wdeprecated-declarations]
    std::auto_ptr<Token> mReserveToken;
         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:32:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr
                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1054:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1043:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
1 warning generated.
In file included from ../angle/src/compiler/preprocessor/MacroExpander.cpp:7:
../angle/src/compiler/preprocessor/MacroExpander.h:86:10: warning: 'auto_ptr<pp::Token>' is deprecated [-Wdeprecated-declarations]
    std::auto_ptr<Token> mReserveToken;
         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:32:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr
                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1054:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1043:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
1 warning generated.
In file included from ../angle/src/compiler/preprocessor/Preprocessor.cpp:14:
../angle/src/compiler/preprocessor/MacroExpander.h:86:10: warning: 'auto_ptr<pp::Token>' is deprecated [-Wdeprecated-declarations]
    std::auto_ptr<Token> mReserveToken;
         ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:32:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr
                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1054:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1043:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
1 warning generated.
./Tokenizer.cpp:1531:16: warning: function 'yyinput' is not needed and will not be emitted [-Wunneeded-internal-declaration]
    static int yyinput (yyscan_t yyscanner)
               ^
1 warning generated.
ld: warning: directory not found for option '-L/Users/dan/Source/headless-gl/deps/darwin'
gyp info ok