Closed hanzlamateen closed 2 years ago
We test mediasoup in CI on all major platforms and it doesn't fail there with this error, hence must be something with your project.
With these kinds of questions create thread on the forum: https://mediasoup.discourse.group/
We are getting the same problem. Base image: node:16.15.0-bullseye-slim Node v14.19.2 Npm 6.14.17 Gcc Apple clang version 13.1.6 (clang-1316.0.21.2) Mediasoup version 3.9.2
We make a build on friday with exactly the same code and versions, and it works.
#8 97.04 npm ERR! [727/992] Compiling C object subprojects/libuv-v1.42.0/libuv.a.p/src_unix_random-devurandom.c.o
#8 97.04 npm ERR! [728/992] Compiling C object subprojects/libuv-v1.42.0/libuv.a.p/src_unix_stream.c.o
#8 97.04 npm ERR! FAILED: subprojects/libuv-v1.42.0/libuv.a.p/src_unix_stream.c.o
#8 97.04 npm ERR! cc -Isubprojects/libuv-v1.42.0/libuv.a.p -Isubprojects/libuv-v1.42.0 -I../../subprojects/libuv-v1.42.0 -I../../subprojects/libuv-v1.42.0/include -I../../subprojects/libuv-v1.42.0/src -fdiagnostics-color=always -DNDEBUG -std=c89 -O3 -fPIC -pthread -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_POSIX_C_SOURCE=200112 -MD -MQ subprojects/libuv-v1.42.0/libuv.a.p/src_unix_stream.c.o -MF subprojects/libuv-v1.42.0/libuv.a.p/src_unix_stream.c.o.d -o subprojects/libuv-v1.42.0/libuv.a.p/src_unix_stream.c.o -c ../../subprojects/libuv-v1.42.0/src/unix/stream.c
#8 97.04 npm ERR! ../../subprojects/libuv-v1.42.0/src/unix/stream.c: In function ‘uv__write’:
#8 97.04 npm ERR! ../../subprojects/libuv-v1.42.0/src/unix/stream.c:929:3: error: C++ style comments are not allowed in ISO C90
#8 97.04 npm ERR! 929 | // XXX(jwn): this must call uv__stream_flush_write_queue(stream, n) here, since we won't generate any more events
#8 97.04 npm ERR! | ^
#8 97.04 npm ERR! ../../subprojects/libuv-v1.42.0/src/unix/stream.c:929:3: note: (this will be reported only once per input file)
#8 97.04 npm ERR! [729/992] Compiling C object subprojects/libuv-v1.42.0/libuv.a.p/src_unix_core.c.o
#8 97.04 npm ERR! ninja: build stopped: subcommand failed.
#8 97.04 npm ERR! make: Leaving directory '/app/node_modules/mediasoup/worker'
#8 97.04 npm ERR! WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#8 97.04 npm ERR! Directory does not contain a valid build tree:
#8 97.04 npm ERR! /app/node_modules/mediasoup/worker/out/Release
#8 97.04 npm ERR! make: *** [Makefile:128: mediasoup-worker] Error 1
#8 97.05
#8 97.05 npm ERR! A complete log of this run can be found in:
#8 97.05 npm ERR! /root/.npm/_logs/2022-07-04T08_44_09_381Z-debug-0.log
#8 ERROR: executor failed running [/bin/sh -c npm ci]: exit code: 1
#4 [1/5] FROM docker.io/library/node:16.15.0-bullseye-slim@sha256:fab24688ec5c8cb3db76ce89f32ae9ab979bf12912789db28dd0436f6f27bb07
------
> [5/5] RUN npm ci:
#8 97.04 npm ERR! [729/992] Compiling C object subprojects/libuv-v1.42.0/libuv.a.p/src_unix_core.c.o
#8 97.04 npm ERR! ninja: build stopped: subcommand failed.
#8 97.04 npm ERR! make: Leaving directory '/app/node_modules/mediasoup/worker'
#8 97.04 npm ERR! WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#8 97.04 npm ERR! Directory does not contain a valid build tree:
#8 97.04 npm ERR! /app/node_modules/mediasoup/worker/out/Release
#8 97.04 npm ERR! make: *** [Makefile:128: mediasoup-worker] Error 1
#8 97.05
#8 97.05 npm ERR! A complete log of this run can be found in:
#8 97.05 npm ERR! /root/.npm/_logs/2022-07-04T08_44_09_381Z-debug-0.log
------
error: failed to solve: executor failed running [/bin/sh -c npm ci]: exit code: 1
Error: buildx failed with: error: failed to solve: executor failed running [/bin/sh -c npm ci]: exit code: 1
As said above, use the forum for asking about problems.
Maybe related with this commit? https://github.com/versatica/mediasoup/commit/e8d6d53f943080934614c2371065a3fd5a3ed91f
When will this patch be published on npm?
Others are suddenly seeing this issue as well. https://mediasoup.discourse.group/t/mediasoup-build-fails/4345
Fixed on 3.10.2.
Bug Report
Your environment
Issue description
I am getting issue when running
npm install
locally as well as in CI. Here is the link of it failing in our github action linkBelow is the log of error on my local console where running in docker build: