tiro-is / tiro-speech-core

This is a mirror of https://gitlab.com/tiro-is/tiro-speech-core
Apache License 2.0
15 stars 5 forks source link

Docker build resulting in errors #1

Closed GlacierSG closed 2 years ago

GlacierSG commented 2 years ago

When I run docker build . -t tiro I get

#11 388.7 /bin/bash: patchelf: command not found 

and when I add `RUN apt install patchelf``I get

#12 1553.0 nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.

then I add RUN apt install yasm and get

#13 1877.8 ERROR: /root/.cache/bazel/_bazel_root/f8087e59fd95af1ae29e8fcb7ff1a3dc/external/openblas/BUILD.bazel:20:5: output 'external/openblas/openblas/bin/tests/zblat1' was not created
#13 1877.9 ERROR: /root/.cache/bazel/_bazel_root/f8087e59fd95af1ae29e8fcb7ff1a3dc/external/openblas/BUILD.bazel:20:5: output 'external/openblas/openblas/bin/tests/sblat1' was not created
#13 1877.9 ERROR: /root/.cache/bazel/_bazel_root/f8087e59fd95af1ae29e8fcb7ff1a3dc/external/openblas/BUILD.bazel:20:5: output 'external/openblas/openblas/bin/tests/cblat1' was not created
#13 1879.3 ERROR: /root/.cache/bazel/_bazel_root/f8087e59fd95af1ae29e8fcb7ff1a3dc/external/openblas/BUILD.bazel:20:5: Foreign Cc - Make: Building openblas failed: not all outputs were created or valid
#13 1879.7 Target //:tiro_speech_server failed to build
#13 1879.7 Use --verbose_failures to see the command lines of failed build steps.
#13 1879.9 INFO: Elapsed time: 1879.159s, Critical Path: 1110.86s
#13 1879.9 INFO: 1790 processes: 82 internal, 1708 processwrapper-sandbox.
#13 1879.9 FAILED: Build did NOT complete successfully
#13 1879.9 FAILED: Build did NOT complete successfully

I am on windows 10 running ubuntu subsystem

rkjaran commented 2 years ago

Ah. The Dockerfile hasn't been kept up to with some recent additions. I'll fix this and hopefully push a fix later today or tomorrow.

rkjaran commented 2 years ago

Hi. Commit 0d6af0f should fix the issue. Nota that building the image takes a while since almost every dependency is compiled.