Kagami / ffmpeg.js

Port of FFmpeg with Emscripten
Other
3.24k stars 329 forks source link

Building without Docker is extremely slow #175

Closed MatteoBuffo closed 2 years ago

MatteoBuffo commented 2 years ago

Hi. I'm working on a Ubuntu remote machine, and I'm following the steps reported in the README section Build without Docker. Anytime I run make, it is slow as hell. Is that an expected behaviour?

This is an excerpt from the make command running (I'm leaving also the textual version at the end of this issue, for convenience): image

Is there a way to get rid of those errors or should I ignore them? And what about the cache-related warnings? Could they possibly be caused by memory limitations?

As regards the build with Docker, what am I expected to do after I run the docker ... command? I notice that a container is instantiated, but I don't know what to do with it.

Thanks.

./libtool: line 1748: 1111690 Killed                  /home/ubuntu/emsdk/upstream/emscripten/emcc -DHAVE_CONFIG_H -I. -I./include -I./celt -I./silk -I./silk/float -I./silk/fixed -O3 -fvisibility=hidden -D_FORTIFY_SOURCE=2 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT silk/LPC_inv_pred_gain.lo -MD -MP -MF silk/.deps/LPC_inv_pred_gain.Tpo -c silk/LPC_inv_pred_gain.c -fPIC -DPIC -o silk/.libs/LPC_inv_pred_gain.o
make[3]: *** [Makefile:2730: silk/LPC_inv_pred_gain.lo] Error 1
make[3]: *** [Makefile:2730: silk/resampler.lo] Error 1
./libtool: line 1748: 1112317 Killed                  /home/ubuntu/emsdk/upstream/emscripten/emcc -DHAVE_CONFIG_H -I. -I./include -I./celt -I./silk -I./silk/float -I./silk/fixed -O3 -fvisibility=hidden -D_FORTIFY_SOURCE=2 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT silk/float/energy_FLP.lo -MD -MP -MF silk/float/.deps/energy_FLP.Tpo -c silk/float/energy_FLP.c -fPIC -DPIC -o silk/float/.libs/energy_FLP.o
./libtool: line 1748: 1112266 Killed                  /home/ubuntu/emsdk/upstream/emscripten/emcc -DHAVE_CONFIG_H -I. -I./include -I./celt -I./silk -I./silk/float -I./silk/fixed -O3 -fvisibility=hidden -D_FORTIFY_SOURCE=2 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT silk/float/warped_autocorrelation_FLP.lo -MD -MP -MF silk/float/.deps/warped_autocorrelation_FLP.Tpo -c silk/float/warped_autocorrelation_FLP.c -fPIC -DPIC -o silk/float/.libs/warped_autocorrelation_FLP.o
make[3]: *** [Makefile:2730: silk/float/energy_FLP.lo] Error 1
make[3]: *** [Makefile:2730: silk/float/warped_autocorrelation_FLP.lo] Error 1
./libtool: line 1748: 1112365 Killed                  /home/ubuntu/emsdk/upstream/emscripten/emcc -DHAVE_CONFIG_H -I. -I./include -I./celt -I./silk -I./silk/float -I./silk/fixed -O3 -fvisibility=hidden -D_FORTIFY_SOURCE=2 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT silk/float/bwexpander_FLP.lo -MD -MP -MF silk/float/.deps/bwexpander_FLP.Tpo -c silk/float/bwexpander_FLP.c -fPIC -DPIC -o silk/float/.libs/bwexpander_FLP.o
make[3]: *** [Makefile:2730: silk/float/bwexpander_FLP.lo] Error 1
./libtool: line 1748: 1112403 Killed                  /home/ubuntu/emsdk/upstream/emscripten/emcc -DHAVE_CONFIG_H -I. -I./include -I./celt -I./silk -I./silk/float -I./silk/fixed -O3 -fvisibility=hidden -D_FORTIFY_SOURCE=2 -W -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -MT src/opus_multistream.lo -MD -MP -MF src/.deps/opus_multistream.Tpo -c src/opus_multistream.c -fPIC -DPIC -o src/.libs/opus_multistream.o
cache:WARNING: Accessing the Emscripten cache at "/home/ubuntu/emsdk/upstream/emscripten/cache" is taking a long time, another process should be writing to it. If there are none and you suspect this process has deadlocked, try deleting the lock file "/home/ubuntu/emsdk/upstream/emscripten/cache/cache.lock" and try again. If this occurs deterministically, consider filing a bug.
cache:WARNING: Accessing the Emscripten cache at "/home/ubuntu/emsdk/upstream/emscripten/cache" is taking a long time, another process should be writing to it. If there are none and you suspect this process has deadlocked, try deleting the lock file "/home/ubuntu/emsdk/upstream/emscripten/cache/cache.lock" and try again. If this occurs deterministically, consider filing a bug.
cache:WARNING: Accessing the Emscripten cache at "/home/ubuntu/emsdk/upstream/emscripten/cache" is taking a long time, another process should be writing to it. If there are none and you suspect this process has deadlocked, try deleting the lock file "/home/ubuntu/emsdk/upstream/emscripten/cache/cache.lock" and try again. If this occurs deterministically, consider filing a bug.
cache:WARNING: Accessing the Emscripten cache at "/home/ubuntu/emsdk/upstream/emscripten/cache" is taking a long time, another process should be writing to it. If there are none and you suspect this process has deadlocked, try deleting the lock file "/home/ubuntu/emsdk/upstream/emscripten/cache/cache.lock" and try again. If this occurs deterministically, consider filing a bug.
make[3]: *** [Makefile:2730: src/opus_multistream.lo] Error 1