Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on macos 14.4.1 (23E224) and PNPM #289

Open
BowgartField opened this issue Apr 26, 2024 · 5 comments
Open

Cannot build on macos 14.4.1 (23E224) and PNPM #289

BowgartField opened this issue Apr 26, 2024 · 5 comments

Comments

@BowgartField
Copy link

BowgartField commented Apr 26, 2024

Hi,
I'm trying to install editly module that used gl@^5.0.3.

Macos: 14.4.1 (23E224)
Python: 3.10.10
GCC:
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: x86_64-apple-darwin23.4.0
Thread model: posix
PNPM: 8.15.6
NODE: 20.9.0

Headless-gl is failing to build when pnpm install or pnpm rebuild.
I got those errors:

../../node_modules/.pnpm/[email protected]/node_modules/gl: Running install script, failed in 5m 57.1s
.../.pnpm/[email protected]/node_modules/gl install$ prebuild-install || node-gyp rebuild
│ prebuild-install warn install No prebuilt binaries found (target=20.9.0 runtime=node arch=x64 libc= platform=darwin)
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | darwin | x64
│ gyp info find Python using Python version 3.10.10 found at "/Users/jean-benoit/.pyenv/versions/3.10.10/bin/python3"
│ gyp info spawn /Users/jean-benoit/.pyenv/versions/3.10.10/bin/python3
│ gyp info spawn args [
│ gyp info spawn args   '/Users/jean-benoit/Documents/perso/video-gpt-monorepo/node_modules/.pnpm/[email protected]/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/jean-benoit/Documents/perso/video-gpt-monorepo/node_modules/.pnpm/[email protected]/node_modules/gl/build/config.gypi',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/Users/jean-benoit/Documents/perso/video-gpt-monorepo/node_modules/.pnpm/[email protected]/node_modules/node-gyp/addon.gypi',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/Users/jean-benoit/Library/Caches/node-gyp/20.9.0/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/jean-benoit/Library/Caches/node-gyp/20.9.0',
│ gyp info spawn args   '-Dnode_gyp_dir=/Users/jean-benoit/Documents/perso/video-gpt-monorepo/node_modules/.pnpm/[email protected]/node_modules/node-gyp',
│ gyp info spawn args   '-Dnode_lib_file=/Users/jean-benoit/Library/Caches/node-gyp/20.9.0/<(target_arch)/node.lib',
│ gyp info spawn args   '-Dmodule_root_dir=/Users/jean-benoit/Documents/perso/video-gpt-monorepo/node_modules/.pnpm/[email protected]/node_modules/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' ]
│   CXX(target) Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o
│   CXX(target) Release/obj.target/angle_common/angle/src/common/MemoryBuffer.o
│   CXX(target) Release/obj.target/angle_common/angle/src/common/angleutils.o
│   CXX(target) Release/obj.target/angle_common/angle/src/common/debug.o
│   CXX(target) Release/obj.target/angle_common/angle/src/common/mathutil.o
│   CXX(target) Release/obj.target/angle_common/angle/src/common/string_utils.o
│   CXX(target) Release/obj.target/angle_common/angle/src/common/tls.o
│   CXX(target) Release/obj.target/angle_common/angle/src/common/utilities.o
│   LIBTOOL-STATIC Release/angle_common.a
│   COPY Release/obj/gen/angle/id/commit.h
│   TOUCH Release/obj.target/angle/src/commit_id.stamp
│   CXX(target) Release/obj.target/libANGLE/angle/src/common/event_tracer.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/AttributeMap.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Buffer.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Caps.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Compiler.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Config.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Context.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Data.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Debug.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Device.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Display.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Error.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Fence.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Framebuffer.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/FramebufferAttachment.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/HandleAllocator.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Image.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/ImageIndex.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/IndexRangeCache.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Platform.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Program.o
│ ../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.
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Query.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Renderbuffer.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/ResourceManager.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Sampler.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Shader.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/State.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Stream.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Surface.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Texture.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/TransformFeedback.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Uniform.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/VertexArray.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/VertexAttribute.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/angletypes.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/formatutils.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/queryconversions.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/DeviceImpl.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/DisplayImpl.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/Renderer.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/SurfaceImpl.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationEGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationES.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationES2.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationES3.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/third_party/murmurhash/MurmurHash3.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/BlitGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/BufferGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/CompilerGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/DisplayGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FenceNVGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FenceSyncGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FramebufferGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FunctionsGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/ProgramGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/QueryGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/RenderbufferGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/RendererGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/SamplerGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/ShaderGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/StateManagerGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/SurfaceGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/TextureGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/TransformFeedbackGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/VertexArrayGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/formatutilsgl.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/renderergl_utils.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/cgl/DisplayCGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/cgl/PbufferSurfaceCGL.o
│   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/cgl/WindowSurfaceCGL.o
│   LIBTOOL-STATIC Release/ANGLE.a
│   CXX(target) Release/obj.target/libEGL/angle/src/libEGL/libEGL.o
│   LIBTOOL-STATIC Release/EGL.a
│   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/entry_points_egl.o
│   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/entry_points_egl_ext.o
│   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/entry_points_gles_2_0.o
│   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/entry_points_gles_2_0_ext.o
│   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/entry_points_gles_3_0.o
│   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/global_state.o
│   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/libGLESv2.o
│   LIBTOOL-STATIC Release/GLESv2.a
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/DiagnosticsBase.o
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/DirectiveHandlerBase.o
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/DirectiveParser.o
│ 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;
│          ^
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:30:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
│ class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr
│                            ^
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1025:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
│ #    define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
│                                         ^
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note: expanded from macro '_LIBCPP_DEPRECATED'
│ #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
│                                                 ^
│ 1 warning generated.
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/ExpressionParser.o
│ ../angle/src/compiler/preprocessor/ExpressionParser.cpp:1100:9: warning: variable 'ppnerrs' set but not used [-Wunused-but-set-variable]
│     int yynerrs;
│         ^
│ ../angle/src/compiler/preprocessor/ExpressionParser.cpp:67:25: note: expanded from macro 'yynerrs'
│ #define yynerrs         ppnerrs
│                         ^
│ 1 warning generated.
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Input.o
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Lexer.o
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Macro.o
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/MacroExpander.o
│ 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;
│          ^
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:30:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
│ class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr
│                            ^
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1025:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
│ #    define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
│                                         ^
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note: expanded from macro '_LIBCPP_DEPRECATED'
│ #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
│                                                 ^
│ 1 warning generated.
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Preprocessor.o
│ 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;
│          ^
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:30:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
│ class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr
│                            ^
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1025:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
│ #    define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
│                                         ^
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:49: note: expanded from macro '_LIBCPP_DEPRECATED'
│ #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
│                                                 ^
│ 1 warning generated.
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Token.o
│   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Tokenizer.o
│ ./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.
│   LIBTOOL-STATIC Release/preprocessor.a
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/BuiltInFunctionEmulator.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Cache.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/CallDAG.o
│ ../angle/src/compiler/translator/CallDAG.cpp:29:13: warning: variable 'skipped' set but not used [-Wunused-but-set-variable]
│         int skipped = 0;
│             ^
│ 1 warning generated.
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/CodeGen.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Compiler.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Diagnostics.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/DirectiveHandler.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/EmulatePrecision.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/FlagStd140Structs.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ForLoopUnroll.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/InfoSink.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Initialize.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/InitializeDll.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/InitializeParseContext.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/InitializeVariables.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/IntermNode.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/IntermTraverse.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Intermediate.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/LoopInfo.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Operator.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ParseContext.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/PoolAlloc.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/PruneEmptyDeclarations.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/RecordConstantPrecision.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/RegenerateStructNames.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/RemovePow.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/RewriteDoWhile.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ScalarizeVecAndMatConstructorArgs.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/SearchSymbol.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/SymbolTable.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Types.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/UnfoldShortCircuitAST.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ValidateGlobalInitializer.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ValidateLimitations.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ValidateMaxParameters.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ValidateOutputs.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ValidateSwitch.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/VariableInfo.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/VariablePacker.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/blocklayout.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/depgraph/DependencyGraph.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/depgraph/DependencyGraphBuilder.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/depgraph/DependencyGraphOutput.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/depgraph/DependencyGraphTraverse.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/glslang_lex.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/glslang_tab.o
│ ../angle/src/compiler/translator/glslang_tab.cpp:2103:9: warning: variable 'yynerrs' set but not used [-Wunused-but-set-variable]
│     int yynerrs;
│         ^
│ 1 warning generated.
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/intermOut.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/timing/RestrictFragmentShaderTiming.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/timing/RestrictVertexShaderTiming.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/util.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/third_party/compiler/ArrayBoundsClamper.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/OutputESSL.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/TranslatorESSL.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/BuiltInFunctionEmulatorGLSL.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ExtensionGLSL.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/OutputGLSL.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/OutputGLSLBase.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/TranslatorGLSL.o
│   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/VersionGLSL.o
│   LIBTOOL-STATIC Release/translator_lib.a
│   CXX(target) Release/obj.target/translator_static/angle/src/compiler/translator/ShaderLang.o
│   CXX(target) Release/obj.target/translator_static/angle/src/compiler/translator/ShaderVars.o
│   LIBTOOL-STATIC Release/translator_static.a
│   CXX(target) Release/obj.target/webgl/src/native/bindings.o
│ In file included from ../src/native/bindings.cc:9:
│ In file included from ../src/native/webgl.h:9:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/node.h:73:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8.h:24:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-array-buffer.h:12:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-local-handle.h:12:
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:465: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/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:465:30: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466: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/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:466:35: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:693:61: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│     static_assert(kJSObjectType + 1 == kFirstJSApiObjectType);
│                                                             ^
│                                                             , ""
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:694:55: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│     static_assert(kJSObjectType < kLastJSApiObjectType);
│                                                       ^
│                                                       , ""
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-internal.h:695: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/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/node.h:73:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8.h:24:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-array-buffer.h:13:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-object.h:9:
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/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
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:24: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/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/node.h:73:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8.h:24:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-array-buffer.h:13:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-object.h:9:
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/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/jean-benoit/Library/Caches/node-gyp/20.9.0/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
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_reference.h:24: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/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/node.h:73:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8.h:24:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-array-buffer.h:13:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-object.h:9:
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/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:9:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/node.h:73:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8.h:33:
│ In file included from /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-function.h:11:
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-function-callback.h:151:66: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│                 kReturnValueDefaultValueIndex - kReturnValueIndex);
│                                                                  ^
│                                                                  , ""
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-function-callback.h:153:50: warning: 'static_assert' with no message is a C++17 extension [-Wc++17-extensions]
│                 kIsolateIndex - kReturnValueIndex);
│                                                  ^
│                                                  , ""
│ In file included from ../src/native/bindings.cc:9:
│ In file included from ../src/native/webgl.h:10:
│ ../../../../[email protected]/node_modules/nan/nan.h:688:39: warning: 'IdleNotificationDeadline' is deprecated: Use MemoryPressureNotification() to influence the GC schedule. [-Wdeprecated-declarations]
│     return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
│                                       ^
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8-isolate.h:1291:3: note: 'IdleNotificationDeadline' has been explicitly marked deprecated here
│   V8_DEPRECATE_SOON(
│   ^
│ /Users/jean-benoit/Library/Caches/node-gyp/20.9.0/include/node/v8config.h:550:39: note: expanded from macro 'V8_DEPRECATE_SOON'
│ # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
│                                       ^
│ 23 warnings and 4 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/jean-benoit/Documents/perso/video-gpt-monorepo/node_modules/.pnpm/[email protected]/node_modules/node-gyp/lib/build.js:203:23)
│ gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
│ gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
│ gyp ERR! System Darwin 23.4.0
│ gyp ERR! command "/Users/jean-benoit/.nvm/versions/node/v20.9.0/bin/node" "/Users/jean-benoit/Documents/perso/video-gpt-monorepo/node_modules/.pnpm/[email protected]/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
│ gyp ERR! cwd /Users/jean-benoit/Documents/perso/video-gpt-monorepo/node_modules/.pnpm/[email protected]/node_modules/gl
│ gyp ERR! node -v v20.9.0
│ gyp ERR! node-gyp -v v9.4.1
│ gyp ERR! not ok 

Thank you for help

@dhritzkiv
Copy link
Member

This library requires to be updated regularly to support newer versions of node, and newer versions of your system's build toolchain.

Are you able to –in a separate project– successfully install the latest gl by itself? If so, in your original project, you may be able to specify the latest version in package.json overrides, to insist that editly use a newer version of gl

@BowgartField
Copy link
Author

This library requires to be updated regularly to support newer versions of node, and newer versions of your system's build toolchain.

Are you able to –in a separate project– successfully install the latest gl by itself? If so, in your original project, you may be able to specify the latest version in package.json overrides, to insist that editly use a newer version of gl

It seems that switching to node v18.12.1 with nvm is fixing the issue. Do you have any ideas why ?

@dhritzkiv
Copy link
Member

Were you unable to install the latest version of this library in a clean project with node v20?

@jacobclarke92
Copy link

I had a similar issue yesterday fresh install via pnpm on node@20
(target=20.12.2 runtime=node arch=arm64 libc= platform=darwin)

Switching to latest node@18 worked.
I assumed there was a prebuilt binary to match that but I'm not actually sure. Does this package get published with prebuilt binaries?

@dhritzkiv
Copy link
Member

@jacobclarke92 yes. Check the assets under the releases on GitHub to see which prebuilds are available.

Your environment should have a prebuilt binary with v8.0.2 of this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants