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

Build fail with node23 #303

Open
Pnlvfx opened this issue Oct 31, 2024 · 7 comments
Open

Build fail with node23 #303

Pnlvfx opened this issue Oct 31, 2024 · 7 comments

Comments

@Pnlvfx
Copy link

Pnlvfx commented Oct 31, 2024

I open the issue just to let you know, I know it exited just a few days ago

@dhritzkiv
Copy link
Member

Currently, node v23 is not supported. Only LTS node versions are.

Can you paste the build failure?

@Pnlvfx
Copy link
Author

Pnlvfx commented Oct 31, 2024

Of course.

"gl": "^8.1.6",

Mac:

npm error code 1
npm error path /Users/simo97/Desktop/web/packages/node-ffmpeg-concat/node_modules/gl
npm error command failed
npm error command sh -c prebuild-install || node-gyp rebuild
npm error CXX(target) Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o
npm error   CXX(target) Release/obj.target/angle_common/angle/src/common/MemoryBuffer.o
npm error   CXX(target) Release/obj.target/angle_common/angle/src/common/angleutils.o
npm error   CXX(target) Release/obj.target/angle_common/angle/src/common/debug.o
npm error   CXX(target) Release/obj.target/angle_common/angle/src/common/mathutil.o
npm error   CXX(target) Release/obj.target/angle_common/angle/src/common/string_utils.o
npm error   CXX(target) Release/obj.target/angle_common/angle/src/common/tls.o
npm error   CXX(target) Release/obj.target/angle_common/angle/src/common/utilities.o
npm error   LIBTOOL-STATIC Release/angle_common.a
npm error   COPY Release/obj/gen/angle/id/commit.h
npm error   TOUCH Release/obj.target/angle/src/commit_id.stamp
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/common/event_tracer.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/AttributeMap.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Buffer.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Caps.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Compiler.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Config.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Context.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Data.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Debug.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Device.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Display.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Error.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Fence.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Framebuffer.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/FramebufferAttachment.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/HandleAllocator.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Image.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/ImageIndex.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/IndexRangeCache.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Platform.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Program.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Query.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Renderbuffer.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/ResourceManager.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Sampler.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Shader.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/State.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Stream.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Surface.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Texture.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/TransformFeedback.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Uniform.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/VertexArray.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/VertexAttribute.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/angletypes.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/formatutils.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/queryconversions.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/DeviceImpl.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/DisplayImpl.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/Renderer.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/SurfaceImpl.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationEGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationES.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationES2.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationES3.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/third_party/murmurhash/MurmurHash3.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/BlitGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/BufferGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/CompilerGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/DisplayGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FenceNVGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FenceSyncGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FramebufferGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FunctionsGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/ProgramGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/QueryGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/RenderbufferGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/RendererGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/SamplerGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/ShaderGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/StateManagerGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/SurfaceGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/TextureGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/TransformFeedbackGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/VertexArrayGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/formatutilsgl.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/renderergl_utils.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/cgl/DisplayCGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/cgl/PbufferSurfaceCGL.o
npm error   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/cgl/WindowSurfaceCGL.o
npm error   LIBTOOL-STATIC Release/ANGLE.a
npm error   CXX(target) Release/obj.target/libEGL/angle/src/libEGL/libEGL.o
npm error   LIBTOOL-STATIC Release/EGL.a
npm error   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/entry_points_egl.o
npm error   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/entry_points_egl_ext.o
npm error   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/entry_points_gles_2_0.o
npm error   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/entry_points_gles_2_0_ext.o
npm error   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/entry_points_gles_3_0.o
npm error   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/global_state.o
npm error   CXX(target) Release/obj.target/libGLESv2/angle/src/libGLESv2/libGLESv2.o
npm error   LIBTOOL-STATIC Release/GLESv2.a
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/DiagnosticsBase.o
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/DirectiveHandlerBase.o
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/DirectiveParser.o
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/ExpressionParser.o
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Input.o
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Lexer.o
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Macro.o
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/MacroExpander.o
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Preprocessor.o
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Token.o
npm error   CXX(target) Release/obj.target/preprocessor/angle/src/compiler/preprocessor/Tokenizer.o
npm error   LIBTOOL-STATIC Release/preprocessor.a
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/BuiltInFunctionEmulator.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Cache.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/CallDAG.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/CodeGen.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Compiler.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Diagnostics.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/DirectiveHandler.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/EmulatePrecision.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/FlagStd140Structs.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ForLoopUnroll.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/InfoSink.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Initialize.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/InitializeDll.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/InitializeParseContext.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/InitializeVariables.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/IntermNode.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/IntermTraverse.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Intermediate.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/LoopInfo.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Operator.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ParseContext.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/PoolAlloc.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/PruneEmptyDeclarations.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/RecordConstantPrecision.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/RegenerateStructNames.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/RemovePow.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/RewriteDoWhile.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ScalarizeVecAndMatConstructorArgs.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/SearchSymbol.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/SymbolTable.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/Types.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/UnfoldShortCircuitAST.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ValidateGlobalInitializer.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ValidateLimitations.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ValidateMaxParameters.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ValidateOutputs.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ValidateSwitch.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/VariableInfo.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/VariablePacker.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/blocklayout.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/depgraph/DependencyGraph.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/depgraph/DependencyGraphBuilder.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/depgraph/DependencyGraphOutput.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/depgraph/DependencyGraphTraverse.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/glslang_lex.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/glslang_tab.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/intermOut.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/timing/RestrictFragmentShaderTiming.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/timing/RestrictVertexShaderTiming.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/util.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/third_party/compiler/ArrayBoundsClamper.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/OutputESSL.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/TranslatorESSL.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/BuiltInFunctionEmulatorGLSL.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/ExtensionGLSL.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/OutputGLSL.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/OutputGLSLBase.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/TranslatorGLSL.o
npm error   CXX(target) Release/obj.target/translator_lib/angle/src/compiler/translator/VersionGLSL.o
npm error   LIBTOOL-STATIC Release/translator_lib.a
npm error   CXX(target) Release/obj.target/translator_static/angle/src/compiler/translator/ShaderLang.o
npm error   CXX(target) Release/obj.target/translator_static/angle/src/compiler/translator/ShaderVars.o
npm error   LIBTOOL-STATIC Release/translator_static.a
npm error   CXX(target) Release/obj.target/webgl/src/native/bindings.o
npm error prebuild-install warn install No prebuilt binaries found (target=23.1.0 runtime=node arch=x64 libc= platform=darwin)
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | darwin | x64
npm error gyp info find Python using Python version 3.13.0 found at "/usr/local/opt/[email protected]/bin/python3.13"
npm error gyp info spawn /usr/local/opt/[email protected]/bin/python3.13
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/simo97/Desktop/web/packages/node-ffmpeg-concat/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/simo97/Desktop/web/packages/node-ffmpeg-concat/node_modules/gl/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/simo97/Desktop/web/packages/node-ffmpeg-concat/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/simo97/Library/Caches/node-gyp/23.1.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/Users/simo97/Library/Caches/node-gyp/23.1.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/simo97/Desktop/web/packages/node-ffmpeg-concat/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/simo97/Library/Caches/node-gyp/23.1.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/simo97/Desktop/web/packages/node-ffmpeg-concat/node_modules/gl',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error ../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]
npm error  2505 |     if (componentType == GLTypeToGLenum<DestT>::value)
npm error       |                                                 ^
npm error ../angle/src/libANGLE/Program.cpp:1263:5: note: in instantiation of function template specialization 'gl::Program::getUniformInternal<float>' requested here
npm error  1263 |     getUniformInternal(location, v);
npm error       |     ^
npm error ../angle/src/libANGLE/queryconversions.h:26:19: note: forward declaration of template entity is here
npm error    26 |     static GLenum value;
npm error       |                   ^
npm error ../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
npm error  2505 |     if (componentType == GLTypeToGLenum<DestT>::value)
npm error       |                                                 ^
npm error ../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]
npm error  2505 |     if (componentType == GLTypeToGLenum<DestT>::value)
npm error       |                                                 ^
npm error ../angle/src/libANGLE/Program.cpp:1268:5: note: in instantiation of function template specialization 'gl::Program::getUniformInternal<int>' requested here
npm error  1268 |     getUniformInternal(location, v);
npm error       |     ^
npm error ../angle/src/libANGLE/queryconversions.h:26:19: note: forward declaration of template entity is here
npm error    26 |     static GLenum value;
npm error       |                   ^
npm error ../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
npm error  2505 |     if (componentType == GLTypeToGLenum<DestT>::value)
npm error       |                                                 ^
npm error ../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]
npm error  2505 |     if (componentType == GLTypeToGLenum<DestT>::value)
npm error       |                                                 ^
npm error ../angle/src/libANGLE/Program.cpp:1273:5: note: in instantiation of function template specialization 'gl::Program::getUniformInternal<unsigned int>' requested here
npm error  1273 |     getUniformInternal(location, v);
npm error       |     ^
npm error ../angle/src/libANGLE/queryconversions.h:26:19: note: forward declaration of template entity is here
npm error    26 |     static GLenum value;
npm error       |                   ^
npm error ../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
npm error  2505 |     if (componentType == GLTypeToGLenum<DestT>::value)
npm error       |                                                 ^
npm error 3 warnings generated.
npm error In file included from ../angle/src/compiler/preprocessor/DirectiveParser.cpp:17:
npm error ../angle/src/compiler/preprocessor/MacroExpander.h:86:10: warning: 'auto_ptr<pp::Token>' is deprecated [-Wdeprecated-declarations]
npm error    86 |     std::auto_ptr<Token> mReserveToken;
npm error       |          ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:29:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
npm error    29 | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr {
npm error       |                            ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
npm error  1010 | #    define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
npm error       |                                         ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
npm error   995 | #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
npm error       |                                                 ^
npm error 1 warning generated.
npm error ../angle/src/compiler/preprocessor/ExpressionParser.cpp:1100:9: warning: variable 'ppnerrs' set but not used [-Wunused-but-set-variable]
npm error  1100 |     int yynerrs;
npm error       |         ^
npm error ../angle/src/compiler/preprocessor/ExpressionParser.cpp:67:25: note: expanded from macro 'yynerrs'
npm error    67 | #define yynerrs         ppnerrs
npm error       |                         ^
npm error 1 warning generated.
npm error In file included from ../angle/src/compiler/preprocessor/MacroExpander.cpp:7:
npm error ../angle/src/compiler/preprocessor/MacroExpander.h:86:10: warning: 'auto_ptr<pp::Token>' is deprecated [-Wdeprecated-declarations]
npm error    86 |     std::auto_ptr<Token> mReserveToken;
npm error       |          ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:29:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
npm error    29 | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr {
npm error       |                            ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
npm error  1010 | #    define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
npm error       |                                         ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
npm error   995 | #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
npm error       |                                                 ^
npm error 1 warning generated.
npm error In file included from ../angle/src/compiler/preprocessor/Preprocessor.cpp:14:
npm error ../angle/src/compiler/preprocessor/MacroExpander.h:86:10: warning: 'auto_ptr<pp::Token>' is deprecated [-Wdeprecated-declarations]
npm error    86 |     std::auto_ptr<Token> mReserveToken;
npm error       |          ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/auto_ptr.h:29:28: note: 'auto_ptr<pp::Token>' has been explicitly marked deprecated here
npm error    29 | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX11 auto_ptr {
npm error       |                            ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1010:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
npm error  1010 | #    define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
npm error       |                                         ^
npm error /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:995:49: note: expanded from macro '_LIBCPP_DEPRECATED'
npm error   995 | #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
npm error       |                                                 ^
npm error 1 warning generated.
npm error ./Tokenizer.cpp:1531:16: warning: function 'yyinput' is not needed and will not be emitted [-Wunneeded-internal-declaration]
npm error  1531 |     static int yyinput (yyscan_t yyscanner)
npm error       |                ^~~~~~~
npm error 1 warning generated.
npm error ../angle/src/compiler/translator/CallDAG.cpp:29:13: warning: variable 'skipped' set but not used [-Wunused-but-set-variable]
npm error    29 |         int skipped = 0;
npm error       |             ^
npm error 1 warning generated.
npm error ../angle/src/compiler/translator/glslang_tab.cpp:2103:9: warning: variable 'yynerrs' set but not used [-Wunused-but-set-variable]
npm error  2103 |     int yynerrs;
npm error       |         ^
npm error 1 warning generated.
npm error In file included from ../src/native/bindings.cc:9:
npm error In file included from ../src/native/webgl.h:9:
npm error In file included from /Users/simo97/Library/Caches/node-gyp/23.1.0/include/node/node.h:73:
npm error In file included from /Users/simo97/Library/Caches/node-gyp/23.1.0/include/node/v8.h:23:
npm error In file included from /Users/simo97/Library/Caches/node-gyp/23.1.0/include/node/cppgc/common.h:8:
npm error /Users/simo97/Library/Caches/node-gyp/23.1.0/include/node/v8config.h:13:2: error: "C++20 or later required."
npm error    13 | #error "C++20 or later required."
npm error       |  ^
npm error 1 error generated.
npm error make: *** [Release/obj.target/webgl/src/native/bindings.o] Error 1
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/Users/simo97/Desktop/web/packages/node-ffmpeg-concat/node_modules/node-gyp/lib/build.js:216:23)
npm error gyp ERR! System Darwin 24.1.0
npm error gyp ERR! command "/usr/local/Cellar/node/23.1.0/bin/node" "/Users/simo97/Desktop/web/packages/node-ffmpeg-concat/node_modules/.bin/node-gyp" "rebuild"
npm error gyp ERR! cwd /Users/simo97/Desktop/web/packages/node-ffmpeg-concat/node_modules/gl
npm error gyp ERR! node -v v23.1.0
npm error gyp ERR! node-gyp -v v10.2.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /Users/simo97/.npm/_logs/2024-10-31T09_27_05_505Z-debug-0.log

@dhritzkiv
Copy link
Member

Okay, looks like the error (on Mac) is specifically C++20 or later required. This is likely because of node 23 (and its version of V8) raising the minimum version. The headless-gl library is configured to build for C++17, and hasn't been updated for C++20 yet.

A workaround would be to install node 22 (instead of node 23). That version has prebuilt binaries available, so you wouldn't need to build from source.

@Pnlvfx
Copy link
Author

Pnlvfx commented Oct 31, 2024

okay, I've tried on ubuntu and it looks like the installation and build will go through but then when you import gl it's null. i'm trying to debug it better, but if you have information about this error i appreciate your help

@Pnlvfx
Copy link
Author

Pnlvfx commented Nov 2, 2024

Please if someone has news about Ubuntu let me know.

I actually can do npm install gl and it install successfully but when I try to import it I get

TypeError: Cannot read properties of null (reading 'ARRAY_BUFFER')

@dhritzkiv
Copy link
Member

Is there any more to this error? A stack trace perhaps?f

@Pnlvfx
Copy link
Author

Pnlvfx commented Nov 2, 2024

Unfortunately no, I only receive my stack trace, but I guess that the gl bin has not been generated. It should? I've checked inside the node_modules/.bin and there is no gl.

FAIL tests/concat.test.ts
concat function
✕ should concatenate videos successfully (1010 ms)

● concat function › should concatenate videos successfully

TypeError: Cannot read properties of null (reading 'ARRAY_BUFFER')

  21 |
  22 | export const getTransition = ({ name = 'directionalwarp', resizeMode = 'stretch', gl }: TransitionOpts) => {
> 23 |   const buffer = createBuffer(gl, [-1, -1, -1, 4, 4, -1], gl.ARRAY_BUFFER, gl.STATIC_DRAW);
     |                                                              ^
  24 |   const source = transitions.find((t) => t.name === name) ?? transitions.find((t) => t.name.toLowerCase() === 'fade');
  25 |   if (!source) throw new Error('Transition not found!');
  26 |   const transition = createTransition(gl, source, { resizeMode });

  at getTransition (src/helpers/transition.ts:23:62)
  at Object.setTransition (src/helpers/context.ts:46:24)
  at renderFrame (src/helpers/render-frames.ts:65:9)
  at pMap.concurrency (src/helpers/render-frames.ts:26:14)
  at node_modules/p-map/index.js:109:26

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

2 participants