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

FAILED: Build did NOT complete successfully #2

Open tryharder31 opened 1 year ago

tryharder31 commented 1 year ago

Hello,

When I run the line

bazel run -c opt --@kaldi//:mathlib=openblas //:tiro_speech_server -- --kaldi-models=path/to/model/dir --listen-address=0.0.0.0:50051

I get 'FAILED: Build did NOT complete successfully' with no further explanation. I verified that I have Bazel 4.2.1 working, and I am running on debian WSL with openblas as the kernel.

Any ideas what I can check for?

rkjaran commented 1 year ago

What versions of gcc and g++ are you using? (gcc --version and g++ --version).

Can you add --verbose_failures and share the output? I.e.

bazel build --verbose_failures -c opt --@kaldi//:mathlib=openblas //:tiro_speech_server

I suspect it might say something like cc1: all warnings being treated as errors when trying to build BoringSSL.

tryharder31 commented 1 year ago

gcc (Debian 10.2.1-6) 10.2.1 20210110 g++ (Debian 10.2.1-6) 10.2.1 20210110

build output:

INFO: Analyzed target //:tiro_speech_server (78 packages loaded, 24149 targets configured). INFO: Found 1 target... INFO: From Compiling icu4c/source/common/uidna.cpp: external/icu/icu4c/source/common/uidna.cpp: In function 'int32_t _internal_toUnicode(const UChar, int32_t, UChar, int32_t, int32_t, UStringPrepProfile, UParseError, UErrorCode)': external/icu/icu4c/source/common/uidna.cpp:515:85: warning: 'int32_t uidna_toASCII_64(const UChar, int32_t, UChar, int32_t, int32_t, UParseError, UErrorCode)' is deprecated [-Wdeprecated-declarations] 515 | b3Len = uidna_toASCII(b2, b2Len, b3, b3Capacity, options, parseError, status); | ^ In file included from external/icu/icu4c/source/common/unicode/platform.h:25, from external/icu/icu4c/source/common/unicode/ptypes.h:52, from external/icu/icu4c/source/common/unicode/umachine.h:46, from external/icu/icu4c/source/common/unicode/utypes.h:38, from external/icu/icu4c/source/common/uidna.cpp:19: external/icu/icu4c/source/common/unicode/uidna.h:576:1: note: declared here 576 | uidna_toASCII(const UChar src, int32_t srcLength, | ^~~~~ external/icu/icu4c/source/common/uidna.cpp:528:80: warning: 'int32_t uidna_toASCII_64(const UChar, int32_t, UChar, int32_t, int32_t, UParseError, UErrorCode)' is deprecated [-Wdeprecated-declarations] 528 | b3Len = uidna_toASCII(b2,b2Len,b3,b3Len,options,parseError, status); | ^ In file included from external/icu/icu4c/source/common/unicode/platform.h:25, from external/icu/icu4c/source/common/unicode/ptypes.h:52, from external/icu/icu4c/source/common/unicode/umachine.h:46, from external/icu/icu4c/source/common/unicode/utypes.h:38, from external/icu/icu4c/source/common/uidna.cpp:19: external/icu/icu4c/source/common/unicode/uidna.h:576:1: note: declared here 576 | uidna_toASCII(const UChar src, int32_t srcLength, | ^~~~~ external/icu/icu4c/source/common/uidna.cpp: In function 'int32_t uidna_compare_64(const UChar, int32_t, const UChar, int32_t, int32_t, UErrorCode)': external/icu/icu4c/source/common/uidna.cpp:878:87: warning: 'int32_t uidna_IDNToASCII_64(const UChar, int32_t, UChar, int32_t, int32_t, UParseError, UErrorCode)' is deprecated [-Wdeprecated-declarations] 878 | b1Len = uidna_IDNToASCII(s1, length1, b1, b1Capacity, options, &parseError, status); | ^ In file included from external/icu/icu4c/source/common/unicode/platform.h:25, from external/icu/icu4c/source/common/unicode/ptypes.h:52, from external/icu/icu4c/source/common/unicode/umachine.h:46, from external/icu/icu4c/source/common/unicode/utypes.h:38, from external/icu/icu4c/source/common/uidna.cpp:19: external/icu/icu4c/source/common/uidna.cpp:670:1: note: declared here 670 | uidna_IDNToASCII( const UChar src, int32_t srcLength, | ^~~~ external/icu/icu4c/source/common/uidna.cpp:889:83: warning: 'int32_t uidna_IDNToASCII_64(const UChar, int32_t, UChar, int32_t, int32_t, UParseError, UErrorCode)' is deprecated [-Wdeprecated-declarations] 889 | b1Len = uidna_IDNToASCII(s1,length1,b1,b1Len, options, &parseError, status); | ^ In file included from external/icu/icu4c/source/common/unicode/platform.h:25, from external/icu/icu4c/source/common/unicode/ptypes.h:52, from external/icu/icu4c/source/common/unicode/umachine.h:46, from external/icu/icu4c/source/common/unicode/utypes.h:38, from external/icu/icu4c/source/common/uidna.cpp:19: external/icu/icu4c/source/common/uidna.cpp:670:1: note: declared here 670 | uidna_IDNToASCII( const UChar src, int32_t srcLength, | ^~~~ external/icu/icu4c/source/common/uidna.cpp:893:85: warning: 'int32_t uidna_IDNToASCII_64(const UChar, int32_t, UChar, int32_t, int32_t, UParseError, UErrorCode)' is deprecated [-Wdeprecated-declarations] 893 | b2Len = uidna_IDNToASCII(s2,length2, b2,b2Capacity, options, &parseError, status); | ^ In file included from external/icu/icu4c/source/common/unicode/platform.h:25, from external/icu/icu4c/source/common/unicode/ptypes.h:52, from external/icu/icu4c/source/common/unicode/umachine.h:46, from external/icu/icu4c/source/common/unicode/utypes.h:38, from external/icu/icu4c/source/common/uidna.cpp:19: external/icu/icu4c/source/common/uidna.cpp:670:1: note: declared here 670 | uidna_IDNToASCII( const UChar src, int32_t srcLength, | ^~~~ external/icu/icu4c/source/common/uidna.cpp:904:86: warning: 'int32_t uidna_IDNToASCII_64(const UChar, int32_t, UChar, int32_t, int32_t, UParseError, UErrorCode)' is deprecated [-Wdeprecated-declarations] 904 | b2Len = uidna_IDNToASCII(s2, length2, b2, b2Len, options, &parseError, status); | ^ In file included from external/icu/icu4c/source/common/unicode/platform.h:25, from external/icu/icu4c/source/common/unicode/ptypes.h:52, from external/icu/icu4c/source/common/unicode/umachine.h:46, from external/icu/icu4c/source/common/unicode/utypes.h:38, from external/icu/icu4c/source/common/uidna.cpp:19: external/icu/icu4c/source/common/uidna.cpp:670:1: note: declared here 670 | uidna_IDNToASCII( const UChar src, int32_t srcLength, | ^~~~ INFO: From Compiling icu4c/source/common/uloc_tag.cpp: In file included from /usr/include/string.h:495, from external/icu/icu4c/source/common/cmemory.h:32, from external/icu/icu4c/source/common/charstr.h:20, from external/icu/icu4c/source/common/uloc_tag.cpp:18: In function 'char strncpy(char, const char, size_t)', inlined from 'ULanguageTag ultag_parse(const char, int32_t, int32_t, UErrorCode)' at external/icu/icu4c/source/common/uloc_tag.cpp:2117:21, inlined from 'void ulocimp_forLanguageTag_64(const char, int32_t, icu_64::ByteSink&, int32_t, UErrorCode)' at external/icu/icu4c/source/common/uloc_tag.cpp:2781:88: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: warning: 'char __builtin_strncpy(char, const char, long unsigned int)' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return builtin___strncpy_chk (dest, src, len, bos (dest)); | ~~~~~~^~~~~~~~ In file included from external/icu/icu4c/source/common/uloc_tag.cpp:20: external/icu/icu4c/source/common/uloc_tag.cpp: In function 'void ulocimp_forLanguageTag_64(const char, int32_t, icu_64::ByteSink&, int32_t, UErrorCode)': external/icu/icu4c/source/common/cstring.h:37:57: note: length computed here 37 | #define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str) | ^ external/icu/icu4c/source/common/uloc_tag.cpp:2116:46: note: in expansion of macro 'uprv_strlen' 2116 | size_t preferredTagLen = uprv_strlen(preferredTag); | ^~~ INFO: From Compiling icu4c/source/common/ucnv2022.cpp: In file included from /usr/include/string.h:495, from external/icu/icu4c/source/common/cmemory.h:32, from external/icu/icu4c/source/common/cstring.h:31, from external/icu/icu4c/source/common/ucnv2022.cpp:44: In function 'char strncpy(char, const char, size_t)', inlined from 'void _ISO2022Open(UConverter, UConverterLoadArgs, UErrorCode)' at external/icu/icu4c/source/common/ucnv2022.cpp:496:13: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: warning: 'char __builtin_strncpy(char, const char, long unsigned int)' specified bound 6 equals destination size [-Wstringop-truncation] 106 | return builtin___strncpy_chk (dest, src, len, bos (dest)); | ~~~~~~^~~~~~~~ INFO: From Compiling icu4c/source/common/ucurr.cpp: In file included from /usr/include/string.h:495, from external/icu/icu4c/source/common/cmemory.h:32, from external/icu/icu4c/source/common/charstr.h:20, from external/icu/icu4c/source/common/ucurr.cpp:23: In function 'char strncpy(char, const char, size_t)', inlined from 'CReg::CReg(const UChar, const char)' at external/icu/icu4c/source/common/ucurr.cpp:386:9, inlined from 'static const void CReg::reg(const UChar, const char, UErrorCode)' at external/icu/icu4c/source/common/ucurr.cpp:395:41, inlined from 'const void ucurr_register_64(const UChar, const char, UErrorCode)' at external/icu/icu4c/source/common/ucurr.cpp:467:25: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:34: warning: 'char __builtin_strncpy(char, const char, long unsigned int)' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 106 | return builtin___strncpy_chk (dest, src, len, bos (dest)); | ~~~~~~^~~~~~~~ In file included from external/icu/icu4c/source/common/ucurr.cpp:25: external/icu/icu4c/source/common/ucurr.cpp: In function 'const void ucurr_register_64(const UChar, const char, UErrorCode)': external/icu/icu4c/source/common/cstring.h:37:57: note: length computed here 37 | #define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str) external/icu/icu4c/source/common/ucurr.cpp:382:32: note: in expansion of macro 'uprv_strlen' 382 | int32_t len = (int32_t)uprv_strlen(_id); | ^~~ INFO: From Compiling icu4c/source/common/ucptrie.cpp: external/icu/icu4c/source/common/ucptrie.cpp: In function 'UChar32 {anonymous}::getRange(const void, UChar32, uint32_t ()(const void, uint32_t), const void, uint32_t)': external/icu/icu4c/source/common/ucptrie.cpp:404:5: warning: 'value' may be used uninitialized in this function [-Wmaybe-uninitialized] 404 | if (maybeFilterValue(highValue, trie->nullValue, nullValue, | ^~ ERROR: /home/yugen/.cache/bazel/_bazel_yugen/fe14b09d080f8a728f2bfca5cae280b8/external/pytorch/BUILD.bazel:2:8: Executing genrule @pytorch//:patched_libgomp failed: (Exit 127): bash failed: error executing command (cd /home/yugen/.cache/bazel/_bazel_yugen/fe14b09d080f8a728f2bfca5cae280b8/sandbox/linux-sandbox/198/execroot/com_gitlab_tiro_is_tiro_speech_core && \ exec env - \ LD_LIBRARY_PATH='' \ PATH=/usr/local/bin:/usr/bin:/bin \ /bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; cp external/pytorch/lib/libgomp-75eea7e8.so.1 bazel-out/k8-opt/bin/external/pytorch/libgomp-75eea7e8.so.1 && patchelf --remove-needed libgomp.so.1 --set-soname libgomp-75eea7e8.so.1 bazel-out/k8-opt/bin/external/pytorch/libgomp-75eea7e8.so.1') Execution platform: @local_config_platform//:host

Use --sandbox_debug to see verbose messages from the sandbox /bin/bash: line 1: patchelf: command not found Target //:tiro_speech_server failed to build INFO: Elapsed time: 105.010s, Critical Path: 85.71s INFO: 199 processes: 9 internal, 190 linux-sandbox. FAILED: Build did NOT complete successfully