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

python3 not supported breaking debian 11+ support #221

Open
paladox opened this issue Sep 14, 2021 · 6 comments
Open

python3 not supported breaking debian 11+ support #221

paladox opened this issue Sep 14, 2021 · 6 comments

Comments

@paladox
Copy link

paladox commented Sep 14, 2021

Hi, it seems that this library uses https://github.com/mikolalysenko/angle which is out of date.

The error I get is:

root@mw8:/srv/3d2png# sudo -u root npm install
npm WARN deprecated [email protected]: This package is no longer maintained.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: This package is no longer maintained.
npm WARN deprecated [email protected]: 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 [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /srv/3d2png/node_modules/gl
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp WARN EACCES current user ("www-data") does not have permission to access the dev dir "/root/.cache/node-gyp/12.22.5"
npm ERR! gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/srv/3d2png/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/srv/3d2png/node_modules/gl/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/srv/3d2png/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/tmp/.node-gyp/12.22.5/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/tmp/.node-gyp/12.22.5',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/srv/3d2png/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/tmp/.node-gyp/12.22.5/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/srv/3d2png/node_modules/gl',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! /bin/sh: 1: python: not found
npm ERR! gyp: Call to 'python commit_id.py check ..' returned exit status 127 while in angle/src/angle.gyp. while loading dependencies of binding.gyp while trying to load binding.gyp
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (/srv/3d2png/node_modules/node-gyp/lib/configure.js:351:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
npm ERR! gyp ERR! System Linux 5.10.0-8-amd64
npm ERR! gyp ERR! command "/usr/bin/node" "/srv/3d2png/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /srv/3d2png/node_modules/gl
npm ERR! gyp ERR! node -v v12.22.5
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-09-14T21_20_26_798Z-debug.log
@paladox
Copy link
Author

paladox commented Sep 14, 2021

I guess this library could update to https://chromium.googlesource.com/angle/angle/+/refs/heads/main ?

@paladox
Copy link
Author

paladox commented Sep 14, 2021

Installing "python-is-python3" and "libxi-dev" leads to..

npm WARN deprecated [email protected]: This package is no longer maintained.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: This package is no longer maintained.
npm WARN deprecated [email protected]: 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 [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /srv/3d2png/node_modules/gl
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! make: Entering directory '/srv/3d2png/node_modules/gl/build'
npm ERR!   CXX(target) Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o
npm ERR!   CXX(target) Release/obj.target/angle_common/angle/src/common/MemoryBuffer.o
npm ERR!   CXX(target) Release/obj.target/angle_common/angle/src/common/angleutils.o
npm ERR!   CXX(target) Release/obj.target/angle_common/angle/src/common/debug.o
npm ERR!   CXX(target) Release/obj.target/angle_common/angle/src/common/mathutil.o
npm ERR!   CXX(target) Release/obj.target/angle_common/angle/src/common/string_utils.o
npm ERR!   CXX(target) Release/obj.target/angle_common/angle/src/common/tls.o
npm ERR!   CXX(target) Release/obj.target/angle_common/angle/src/common/utilities.o
npm ERR!   AR(target) Release/obj.target/angle/src/angle_common.a
npm ERR!   COPY Release/angle_common.a
npm ERR!   COPY Release/obj/gen/angle/id/commit.h
npm ERR!   TOUCH Release/obj.target/angle/src/commit_id.stamp
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/common/event_tracer.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/AttributeMap.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Buffer.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Caps.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Compiler.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Config.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Context.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Data.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Debug.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Device.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Display.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Error.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Fence.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Framebuffer.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/FramebufferAttachment.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/HandleAllocator.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Image.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/ImageIndex.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/IndexRangeCache.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Platform.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Program.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Query.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Renderbuffer.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/ResourceManager.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Sampler.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Shader.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/State.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Stream.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Surface.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Texture.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/TransformFeedback.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/Uniform.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/VertexArray.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/VertexAttribute.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/angletypes.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/formatutils.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/queryconversions.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/DeviceImpl.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/DisplayImpl.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/Renderer.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/SurfaceImpl.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationEGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationES.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationES2.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/validationES3.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/third_party/murmurhash/MurmurHash3.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/BlitGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/BufferGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/CompilerGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/DisplayGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FenceNVGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FenceSyncGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FramebufferGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/FunctionsGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/ProgramGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/QueryGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/RenderbufferGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/RendererGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/SamplerGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/ShaderGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/StateManagerGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/SurfaceGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/TextureGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/TransformFeedbackGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/VertexArrayGL.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/formatutilsgl.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/renderergl_utils.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/glx/DisplayGLX.o
npm ERR!   CXX(target) Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/glx/FunctionsGLX.o
npm ERR! make: Leaving directory '/srv/3d2png/node_modules/gl/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp WARN EACCES current user ("www-data") does not have permission to access the dev dir "/root/.cache/node-gyp/12.22.5"
npm ERR! gyp WARN EACCES attempting to reinstall using temporary dev dir "/tmp/.node-gyp"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/srv/3d2png/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/srv/3d2png/node_modules/gl/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/srv/3d2png/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/tmp/.node-gyp/12.22.5/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/tmp/.node-gyp/12.22.5',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/srv/3d2png/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/tmp/.node-gyp/12.22.5/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/srv/3d2png/node_modules/gl',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../angle/src/libANGLE/formatutils.cpp: In function ‘gl::VertexFormatType gl::GetVertexFormatType(GLenum, GLboolean, GLuint, bool)’:
npm ERR! ../angle/src/libANGLE/formatutils.cpp:821:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   821 |             switch (components)
npm ERR!       |             ^~~~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:851:9: note: here
npm ERR!   851 |         case GL_UNSIGNED_BYTE:
npm ERR!       |         ^~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:852:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   852 |             switch (components)
npm ERR!       |             ^~~~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:882:9: note: here
npm ERR!   882 |         case GL_SHORT:
npm ERR!       |         ^~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:883:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   883 |             switch (components)
npm ERR!       |             ^~~~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:913:9: note: here
npm ERR!   913 |         case GL_UNSIGNED_SHORT:
npm ERR!       |         ^~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:914:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   914 |             switch (components)
npm ERR!       |             ^~~~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:944:9: note: here
npm ERR!   944 |         case GL_INT:
npm ERR!       |         ^~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:945:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   945 |             switch (components)
npm ERR!       |             ^~~~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:975:9: note: here
npm ERR!   975 |         case GL_UNSIGNED_INT:
npm ERR!       |         ^~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:976:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   976 |             switch (components)
npm ERR!       |             ^~~~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:1006:9: note: here
npm ERR!  1006 |         case GL_FLOAT:
npm ERR!       |         ^~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:1007:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!  1007 |             switch (components)
npm ERR!       |             ^~~~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:1021:9: note: here
npm ERR!  1021 |         case GL_HALF_FLOAT:
npm ERR!       |         ^~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:1022:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!  1022 |             switch (components)
npm ERR!       |             ^~~~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:1036:9: note: here
npm ERR!  1036 |         case GL_FIXED:
npm ERR!       |         ^~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:1037:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!  1037 |             switch (components)
npm ERR!       |             ^~~~~~
npm ERR! ../angle/src/libANGLE/formatutils.cpp:1051:9: note: here
npm ERR!  1051 |         case GL_INT_2_10_10_10_REV:
npm ERR!       |         ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp: In function ‘void MurmurHash3_x86_32(const void*, int, uint32_t, void*)’:
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:134:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   134 |   case 3: k1 ^= tail[2] << 16;
npm ERR!       |           ~~~^~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:135:3: note: here
npm ERR!   135 |   case 2: k1 ^= tail[1] << 8;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:135:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   135 |   case 2: k1 ^= tail[1] << 8;
npm ERR!       |           ~~~^~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:136:3: note: here
npm ERR!   136 |   case 1: k1 ^= tail[0];
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp: In function ‘void MurmurHash3_x86_128(const void*, int, uint32_t, void*)’:
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:209:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   209 |   case 15: k4 ^= tail[14] << 16;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:210:3: note: here
npm ERR!   210 |   case 14: k4 ^= tail[13] << 8;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:210:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   210 |   case 14: k4 ^= tail[13] << 8;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:211:3: note: here
npm ERR!   211 |   case 13: k4 ^= tail[12] << 0;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:212:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   212 |            k4 *= c4; k4  = ROTL32(k4,18); k4 *= c1; h4 ^= k4;
npm ERR!       |                                                     ~~~^~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:214:3: note: here
npm ERR!   214 |   case 12: k3 ^= tail[11] << 24;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:214:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   214 |   case 12: k3 ^= tail[11] << 24;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:215:3: note: here
npm ERR!   215 |   case 11: k3 ^= tail[10] << 16;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:215:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   215 |   case 11: k3 ^= tail[10] << 16;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:216:3: note: here
npm ERR!   216 |   case 10: k3 ^= tail[ 9] << 8;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:216:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   216 |   case 10: k3 ^= tail[ 9] << 8;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:217:3: note: here
npm ERR!   217 |   case  9: k3 ^= tail[ 8] << 0;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:218:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   218 |            k3 *= c3; k3  = ROTL32(k3,17); k3 *= c4; h3 ^= k3;
npm ERR!       |                                                     ~~~^~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:220:3: note: here
npm ERR!   220 |   case  8: k2 ^= tail[ 7] << 24;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:220:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   220 |   case  8: k2 ^= tail[ 7] << 24;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:221:3: note: here
npm ERR!   221 |   case  7: k2 ^= tail[ 6] << 16;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:221:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   221 |   case  7: k2 ^= tail[ 6] << 16;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:222:3: note: here
npm ERR!   222 |   case  6: k2 ^= tail[ 5] << 8;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:222:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   222 |   case  6: k2 ^= tail[ 5] << 8;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:223:3: note: here
npm ERR!   223 |   case  5: k2 ^= tail[ 4] << 0;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:224:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   224 |            k2 *= c2; k2  = ROTL32(k2,16); k2 *= c3; h2 ^= k2;
npm ERR!       |                                                     ~~~^~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:226:3: note: here
npm ERR!   226 |   case  4: k1 ^= tail[ 3] << 24;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:226:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   226 |   case  4: k1 ^= tail[ 3] << 24;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:227:3: note: here
npm ERR!   227 |   case  3: k1 ^= tail[ 2] << 16;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:227:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   227 |   case  3: k1 ^= tail[ 2] << 16;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:228:3: note: here
npm ERR!   228 |   case  2: k1 ^= tail[ 1] << 8;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:228:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   228 |   case  2: k1 ^= tail[ 1] << 8;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:229:3: note: here
npm ERR!   229 |   case  1: k1 ^= tail[ 0] << 0;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp: In function ‘void MurmurHash3_x64_128(const void*, int, uint32_t, void*)’:
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:298:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   298 |   case 15: k2 ^= ((uint64_t)tail[14]) << 48;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:299:3: note: here
npm ERR!   299 |   case 14: k2 ^= ((uint64_t)tail[13]) << 40;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:299:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   299 |   case 14: k2 ^= ((uint64_t)tail[13]) << 40;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:300:3: note: here
npm ERR!   300 |   case 13: k2 ^= ((uint64_t)tail[12]) << 32;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:300:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   300 |   case 13: k2 ^= ((uint64_t)tail[12]) << 32;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:301:3: note: here
npm ERR!   301 |   case 12: k2 ^= ((uint64_t)tail[11]) << 24;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:301:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   301 |   case 12: k2 ^= ((uint64_t)tail[11]) << 24;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:302:3: note: here
npm ERR!   302 |   case 11: k2 ^= ((uint64_t)tail[10]) << 16;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:302:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   302 |   case 11: k2 ^= ((uint64_t)tail[10]) << 16;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:303:3: note: here
npm ERR!   303 |   case 10: k2 ^= ((uint64_t)tail[ 9]) << 8;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:303:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   303 |   case 10: k2 ^= ((uint64_t)tail[ 9]) << 8;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:304:3: note: here
npm ERR!   304 |   case  9: k2 ^= ((uint64_t)tail[ 8]) << 0;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:305:56: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   305 |            k2 *= c2; k2  = ROTL64(k2,33); k2 *= c1; h2 ^= k2;
npm ERR!       |                                                     ~~~^~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:307:3: note: here
npm ERR!   307 |   case  8: k1 ^= ((uint64_t)tail[ 7]) << 56;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:307:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   307 |   case  8: k1 ^= ((uint64_t)tail[ 7]) << 56;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:308:3: note: here
npm ERR!   308 |   case  7: k1 ^= ((uint64_t)tail[ 6]) << 48;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:308:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   308 |   case  7: k1 ^= ((uint64_t)tail[ 6]) << 48;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:309:3: note: here
npm ERR!   309 |   case  6: k1 ^= ((uint64_t)tail[ 5]) << 40;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:309:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   309 |   case  6: k1 ^= ((uint64_t)tail[ 5]) << 40;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:310:3: note: here
npm ERR!   310 |   case  5: k1 ^= ((uint64_t)tail[ 4]) << 32;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:310:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   310 |   case  5: k1 ^= ((uint64_t)tail[ 4]) << 32;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:311:3: note: here
npm ERR!   311 |   case  4: k1 ^= ((uint64_t)tail[ 3]) << 24;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:311:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   311 |   case  4: k1 ^= ((uint64_t)tail[ 3]) << 24;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:312:3: note: here
npm ERR!   312 |   case  3: k1 ^= ((uint64_t)tail[ 2]) << 16;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:312:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   312 |   case  3: k1 ^= ((uint64_t)tail[ 2]) << 16;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:313:3: note: here
npm ERR!   313 |   case  2: k1 ^= ((uint64_t)tail[ 1]) << 8;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:313:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm ERR!   313 |   case  2: k1 ^= ((uint64_t)tail[ 1]) << 8;
npm ERR!       |            ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! ../angle/src/third_party/murmurhash/MurmurHash3.cpp:314:3: note: here
npm ERR!   314 |   case  1: k1 ^= ((uint64_t)tail[ 0]) << 0;
npm ERR!       |   ^~~~
npm ERR! ../angle/src/libANGLE/renderer/gl/glx/FunctionsGLX.cpp:15:10: fatal error: GL/glx.h: No such file or directory
npm ERR!    15 | #include <GL/glx.h>
npm ERR!       |          ^~~~~~~~~~
npm ERR! compilation terminated.
npm ERR! make: *** [angle/src/libANGLE.target.mk:237: Release/obj.target/libANGLE/angle/src/libANGLE/renderer/gl/glx/FunctionsGLX.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/srv/3d2png/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
npm ERR! gyp ERR! System Linux 5.10.0-8-amd64
npm ERR! gyp ERR! command "/usr/bin/node" "/srv/3d2png/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /srv/3d2png/node_modules/gl
npm ERR! gyp ERR! node -v v12.22.5
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-09-14T21_40_53_360Z-debug.log

@paladox
Copy link
Author

paladox commented Sep 14, 2021

Oh, I was missing some packages...

@AGDholo
Copy link

AGDholo commented Jun 3, 2022

same error with macos 12.4

@dhritzkiv
Copy link
Member

@AGDholo This might be caused by a few issues:

  • macOS no longer ships with python.
  • installing python3 with brew doesn't properly get linked as python in some cases. For example, after linking python with brew, I had to add /usr/local/opt/python/libexec/bin to my PATH. Note: I think the directory is different for Apple Silicon Macs.
  • python2 still works to build the latest release on npm, but python3 may be the only supported python in the future (currently, the master branch only supports python3)

Additionally, nodejs 18 is not supported by headless-gl yet (as of the latest npm release). Node 16 is.

@AGDholo
Copy link

AGDholo commented Jun 4, 2022

@dhritzkiv thank you, I solved the problem following the https://stackoverflow.com/a/71657414/8349673

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