Comments (11)
It seems like clang is not finding your C++ standard library includes. Here are some suggestions, but maybe you need to re-install the headers?
from lyra.
It seems like clang is not finding your C++ standard library includes. Here are some suggestions, but maybe you need to re-install the headers?
I always get compilation errors in the " bazel build -c opt :encoder_main" step, can you provide a suitable version of Ubuntu, Bazel, compiler, etc? , because I don't know if it is because of the version problem that the compilation errors have been occurring
from lyra.
This isn't obviously the only supported ones, but personally I am using Debian, Bazel release 4.2.1, and as a compiler I use GCC 10.3.0.
from lyra.
This isn't obviously the only supported ones, but personally I am using Debian, Bazel release 4.2.1, and as a compiler I use GCC 10.3.0.
I changed the bazel and compiler to the same version as you, but I use Ubuntu. When compiling the last few packages, there are some errors, and I can't solve it.
The following error occurred:
ERROR: /home/w/lyra-0.0.2/BUILD:228:11: Compiling wavegru_model_impl.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 61 argument(s) skipped)
from lyra.
Can you post the full compiler error? It should be near the message you posted, which is just the failure notice but not the actual error.
from lyra.
你能发布完整的编译器错误吗?它应该靠近您发布的消息,这只是失败通知,而不是实际错误。
Sorry, I can't find the exact error. This is all the information displayed. I hope it's useful to you
ERROR: /home/w/lyra-0.0.2/BUILD:228:11: Compiling wavegru_model_impl.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 61 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
In file included from ./sparse_matmul/numerics/fixed_types.h:27:0,
from ./sparse_matmul/numerics/fast_transcendentals.h:31,
from ./sparse_matmul/compute/gru_gates_arm.h:26,
from ./sparse_matmul/compute/gru_gates.h:25,
from sparse_matmul/sparse_matmul.h:21,
from dsp_util.h:24,
from causal_convolutional_conditioning.h:26,
from wavegru_model_impl.h:28,
from wavegru_model_impl.cc:15:
./sparse_matmul/vector/cache_aligned_vector.h: In member function 'int csrblocksparse::CacheAlignedVector::ScalarSample(float, std::minstd_rand*, csrblocksparse::CacheAlignedVector, int, int, int, csrblocksparse::SpinBarrier) const':
./sparse_matmul/vector/cache_aligned_vector.h:448:27: warning: comparison of constant '0' with boolean expression is always true [-Wbool-compare]
DCHECK(size_ > mindex >= 0);
~~~~~~~~~~~~~~~^~~~
bazel-out/k8-opt/bin/external/com_google_glog/_virtual_includes/glog/glog/logging.h:669:5: note: in definition of macro 'LOG_IF'
!(condition) ? (void) 0 : google::LogMessageVoidify() & LOG(severity)
^~~~~~~~~
bazel-out/k8-opt/bin/external/com_google_glog/_virtual_includes/glog/glog/logging.h:684:21: note: in expansion of macro 'GOOGLE_PREDICT_BRANCH_NOT_TAKEN'
LOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN(!(condition)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/k8-opt/bin/external/com_google_glog/virtual_includes/glog/glog/logging.h:1332:29: note: in expansion of macro 'CHECK'
GLOG_MSVC_POP_WARNING() CHECK(condition)
^~~~~
./sparse_matmul/vector/cache_aligned_vector.h:448:5: note: in expansion of macro 'DCHECK'
DCHECK(size > mindex >= 0);
^~~~~~
In file included from /usr/include/c++/7/bits/move.h:54:0,
from /usr/include/c++/7/bits/stl_pair.h:59,
from /usr/include/c++/7/bits/stl_algobase.h:64,
from /usr/include/c++/7/memory:62,
from wavegru_model_impl.h:21,
from wavegru_model_impl.cc:15:
/usr/include/c++/7/type_traits: In substitution of 'template<class _Tp, class> static std::true_type std::__do_is_default_constructible_impl::__test(int) [with _Tp = chromemedia::codec::LayerParams::FromDisk; = ]':
/usr/include/c++/7/type_traits:889:35: required from 'struct std::__is_default_constructible_implchromemedia::codec::LayerParams::FromDisk'
/usr/include/c++/7/type_traits:143:12: required from 'struct std::_and<std::_not<std::is_voidchromemedia::codec::LayerParams::FromDisk >, std::__is_default_constructible_implchromemedia::codec::LayerParams::FromDisk >'
/usr/include/c++/7/type_traits:893:12: required from 'struct std::__is_default_constructible_atomchromemedia::codec::LayerParams::FromDisk'
/usr/include/c++/7/type_traits:914:12: required from 'struct std::__is_default_constructible_safe<chromemedia::codec::LayerParams::FromDisk, false>'
/usr/include/c++/7/type_traits:920:12: required from 'struct std::is_default_constructiblechromemedia::codec::LayerParams::FromDisk'
/usr/include/c++/7/type_traits:2979:25: required from 'constexpr const bool std::is_default_constructible_vchromemedia::codec::LayerParams::FromDisk'
/usr/include/c++/7/variant:889:2: required from 'class std::variant<chromemedia::codec::LayerParams::FromDisk, chromemedia::codec::LayerParams::FromConstant>'
layer_wrapper_interface.h:82:56: required from here
/usr/include/c++/7/type_traits:878:48: error: constructor required before non-static data member for 'chromemedia::codec::LayerParams::FromDisk::path' has been parsed
template<typename _Tp, typename = decltype(_Tp())>
^~~~~
/usr/include/c++/7/type_traits:878:48: error: constructor required before non-static data member for 'chromemedia::codec::LayerParams::FromDisk::zipped' has been parsed
In file included from wavegru_model_impl.h:32:0,
from wavegru_model_impl.cc:15:
lyra_wavegru.h: In instantiation of 'static std::unique_ptr<chromemedia::codec::LyraWavegru > chromemedia::codec::LyraWavegru::Create(int, const ghc::filesystem::path&, const string&) [with WeightTypeKind = float; std::__cxx11::string = std::__cxx11::basic_string]':
wavegru_model_impl.cc:50:44: required from here
lyra_wavegru.h:83:17: sorry, unimplemented: non-trivial designated initializers not supported
LayerParams ar_to_gates_params{.num_input_channels = kNumSplitBands,
^~~~~~~~~~~~~~~~~~
lyra_wavegru.h:83:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:83:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:83:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:83:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:83:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:83:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:83:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:105:17: sorry, unimplemented: non-trivial designated initializers not supported
LayerParams gru_params{.num_input_channels = kNumGruHiddens,
^~~~~~~~~~
lyra_wavegru.h:105:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:105:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:105:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:105:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:105:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:105:17: sorry, unimplemented: non-trivial designated initializers not supported
lyra_wavegru.h:105:17: sorry, unimplemented: non-trivial designated initializers not supported
In file included from wavegru_model_impl.h:28:0,
from wavegru_model_impl.cc:15:
causal_convolutional_conditioning.h: In instantiation of 'static chromemedia::codec::LayerParams chromemedia::codec::CausalConvolutionalConditioning::Conv1DParams(int, int, int, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes; std::__cxx11::string = std::__cxx11::basic_string]':
causal_convolutional_conditioning.h:293:51: required from 'void chromemedia::codec::CausalConvolutionalConditioning::CreateLayers() [with Types = chromemedia::codec::ConditioningTypes]'
causal_convolutional_conditioning.h:121:17: required from 'chromemedia::codec::CausalConvolutionalConditioning::CausalConvolutionalConditioning(int, int, int, int, int, int, float, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes; std::__cxx11::string = std::__cxx11::basic_string]'
/usr/include/c++/7/bits/unique_ptr.h:821:30: required from 'typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes >; _Args = {int&, int&, int, const int&, int&, int, float&, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes > >]'
wavegru_model_impl.cc:93:65: required from here
causal_convolutional_conditioning.h:189:53: sorry, unimplemented: non-trivial designated initializers not supported
.prefix = prefix + "conv1d"};
^
causal_convolutional_conditioning.h:189:53: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:189:53: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:189:53: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:189:53: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:189:53: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:189:53: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:189:53: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h: In instantiation of 'static chromemedia::codec::LayerParams chromemedia::codec::CausalConvolutionalConditioning::DilatedParams(int, int, int, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes; std::__cxx11::string = std::__cxx11::basic_string]':
causal_convolutional_conditioning.h:299:22: required from 'void chromemedia::codec::CausalConvolutionalConditioning::CreateLayers() [with Types = chromemedia::codec::ConditioningTypes]'
causal_convolutional_conditioning.h:121:17: required from 'chromemedia::codec::CausalConvolutionalConditioning::CausalConvolutionalConditioning(int, int, int, int, int, int, float, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes; std::__cxx11::string = std::__cxx11::basic_string]'
/usr/include/c++/7/bits/unique_ptr.h:821:30: required from 'typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes >; _Args = {int&, int&, int, const int&, int&, int, float&, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&}; typename std::_MakeUniq<_Tp>::_single_object = std::unique_ptr<chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes > >]'
wavegru_model_impl.cc:93:65: required from here
causal_convolutional_conditioning.h:212:77: sorry, unimplemented: non-trivial designated initializers not supported
.prefix = prefix + absl::StrFormat("conditioning_stack%d", level)};
^
causal_convolutional_conditioning.h:212:77: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:212:77: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:212:77: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:212:77: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:212:77: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:212:77: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:212:77: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h: In instantiation of 'static chromemedia::codec::LayerParams chromemedia::codec::CausalConvolutionalConditioning::TransposeParams(int, int, int, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes; std::__cxx11::string = std::__cxx11::basic_string]':
causal_convolutional_conditioning.h:314:24: required from 'void chromemedia::codec::CausalConvolutionalConditioning::CreateLayers() [with Types = chromemedia::codec::ConditioningTypes]'
causal_convolutional_conditioning.h:121:17: required from 'chromemedia::codec::CausalConvolutionalConditioning::CausalConvolutionalConditioning(int, int, int, int, int, int, float, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes; std::__cxx11::string = std::__cxx11::basic_string]'
/usr/include/c++/7/bits/unique_ptr.h:821:30: required from 'typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes >; _Args = {int&, int&, int, const int&, int&, int, float&, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&}; typename std::_MakeUniq<_Tp>::_single_object = std::unique_ptr<chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes > >]'
wavegru_model_impl.cc:93:65: required from here
causal_convolutional_conditioning.h:241:68: sorry, unimplemented: non-trivial designated initializers not supported
.prefix = prefix + absl::StrFormat("transpose%d", level)};
^
causal_convolutional_conditioning.h:241:68: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:241:68: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:241:68: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:241:68: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:241:68: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:241:68: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:241:68: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h: In instantiation of 'static chromemedia::codec::LayerParams chromemedia::codec::CausalConvolutionalConditioning::ConvCondParams(int, int, int, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes; std::__cxx11::string = std::__cxx11::basic_string]':
causal_convolutional_conditioning.h:328:56: required from 'void chromemedia::codec::CausalConvolutionalConditioning::CreateLayers() [with Types = chromemedia::codec::ConditioningTypes]'
causal_convolutional_conditioning.h:121:17: required from 'chromemedia::codec::CausalConvolutionalConditioning::CausalConvolutionalConditioning(int, int, int, int, int, int, float, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes; std::__cxx11::string = std::__cxx11::basic_string]'
/usr/include/c++/7/bits/unique_ptr.h:821:30: required from 'typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes >; _Args = {int&, int&, int, const int&, int&, int, float&, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes > >]'
wavegru_model_impl.cc:93:65: required from here
causal_convolutional_conditioning.h:266:56: sorry, unimplemented: non-trivial designated initializers not supported
.prefix = prefix + "conv_cond"};
^
causal_convolutional_conditioning.h:266:56: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:266:56: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:266:56: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:266:56: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:266:56: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:266:56: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:266:56: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h: In instantiation of 'static chromemedia::codec::LayerParams chromemedia::codec::CausalConvolutionalConditioning::ConvToGatesParams(int, int, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes; std::__cxx11::string = std::__cxx11::basic_string]':
causal_convolutional_conditioning.h:334:26: required from 'void chromemedia::codec::CausalConvolutionalConditioning::CreateLayers() [with Types = chromemedia::codec::ConditioningTypes]'
causal_convolutional_conditioning.h:121:17: required from 'chromemedia::codec::CausalConvolutionalConditioning::CausalConvolutionalConditioning(int, int, int, int, int, int, float, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes; std::__cxx11::string = std::__cxx11::basic_string]'
/usr/include/c++/7/bits/unique_ptr.h:821:30: required from 'typename std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp = chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes >; _Args = {int&, int&, int, const int&, int&, int, float&, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&}; typename std::_MakeUniq<_Tp>::_single_object = std::unique_ptr<chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes > >]'
wavegru_model_impl.cc:93:65: required from here
causal_convolutional_conditioning.h:288:60: sorry, unimplemented: non-trivial designated initializers not supported
.prefix = prefix + "conv_to_gates"};
^
causal_convolutional_conditioning.h:288:60: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:288:60: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:288:60: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:288:60: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:288:60: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:288:60: sorry, unimplemented: non-trivial designated initializers not supported
causal_convolutional_conditioning.h:288:60: sorry, unimplemented: non-trivial designated initializers not supported
In file included from ./sparse_matmul/numerics/fixed_types.h:27:0,
from ./sparse_matmul/numerics/fast_transcendentals.h:31,
from ./sparse_matmul/compute/gru_gates_arm.h:26,
from ./sparse_matmul/compute/gru_gates.h:25,
from sparse_matmul/sparse_matmul.h:21,
from dsp_util.h:24,
from causal_convolutional_conditioning.h:26,
from wavegru_model_impl.h:28,
from wavegru_model_impl.cc:15:
./sparse_matmul/vector/cache_aligned_vector.h: In instantiation of 'int csrblocksparse::CacheAlignedVector::ScalarSample(float, std::minstd_rand*, csrblocksparse::CacheAlignedVector, int, int, int, csrblocksparse::SpinBarrier) const [with DataType = float; std::minstd_rand = std::linear_congruential_engine<long unsigned int, 48271, 0, 2147483647>]':
project_and_sample.h:216:27: required from 'void chromemedia::codec::ProjectAndSample::MolSamples(int, std::minstd_rand*, int, int*) [with Types = chromemedia::codec::ProjectAndSampleTypes<float, 2, 3, 3, 4, 4, void>; std::minstd_rand = std::linear_congruential_engine<long unsigned int, 48271, 0, 2147483647>]'
project_and_sample.h:146:15: required from 'void chromemedia::codec::ProjectAndSample::GetSamples(const csrblocksparse::MutableVectorView&, int, std::minstd_rand*, csrblocksparse::CacheAlignedVector, int, int) [with Types = chromemedia::codec::ProjectAndSampleTypes<float, 2, 3, 3, 4, 4, void>; typename Types::ProjRhsType = float; std::minstd_rand = std::linear_congruential_engine<long unsigned int, 48271, 0, 2147483647>; typename Types::ScratchType = float]'
lyra_wavegru.h:291:7: required from 'int chromemedia::codec::LyraWavegru::SamplingBody(csrblocksparse::SpinBarrier*, int, chromemedia::codec::LyraWavegru::ConditioningType*, std::vector<std::vector >, const std::function<void(short int, int, int, int)>&) [with WeightTypeKind = float; chromemedia::codec::LyraWavegru::ConditioningType = chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes >]'
lyra_wavegru.h:165:43: required from 'int chromemedia::codec::LyraWavegru::SampleThreaded(int, chromemedia::codec::LyraWavegru::ConditioningType*, std::vector<std::vector >*, int) [with WeightTypeKind = float; chromemedia::codec::LyraWavegru::ConditioningType = chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes >]'
wavegru_model_impl.cc:131:58: required from here
./sparse_matmul/vector/cache_aligned_vector.h:448:27: warning: comparison of constant '0' with boolean expression is always true [-Wbool-compare]
DCHECK(size > mindex >= 0);
bazel-out/k8-opt/bin/external/com_google_glog/_virtual_includes/glog/glog/logging.h:669:5: note: in definition of macro 'LOG_IF'
!(condition) ? (void) 0 : google::LogMessageVoidify() & LOG(severity)
^~~~~~~~~
bazel-out/k8-opt/bin/external/com_google_glog/virtual_includes/glog/glog/logging.h:684:21: note: in expansion of macro 'GOOGLE_PREDICT_BRANCH_NOT_TAKEN'
LOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN(!(condition)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/k8-opt/bin/external/com_google_glog/virtual_includes/glog/glog/logging.h:1332:29: note: in expansion of macro 'CHECK'
GLOG_MSVC_POP_WARNING() CHECK(condition)
^~~~~
./sparse_matmul/vector/cache_aligned_vector.h:448:5: note: in expansion of macro 'DCHECK'
DCHECK(size > mindex >= 0);
^~~~~~
./sparse_matmul/vector/cache_aligned_vector.h:448:18: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
DCHECK(size > mindex >= 0);
~~~~~~^~~
bazel-out/k8-opt/bin/external/com_google_glog/_virtual_includes/glog/glog/logging.h:669:5: note: in definition of macro 'LOG_IF'
!(condition) ? (void) 0 : google::LogMessageVoidify() & LOG(severity)
^~~~~~~~~
bazel-out/k8-opt/bin/external/com_google_glog/virtual_includes/glog/glog/logging.h:684:21: note: in expansion of macro 'GOOGLE_PREDICT_BRANCH_NOT_TAKEN'
LOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN(!(condition)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/k8-opt/bin/external/com_google_glog/virtual_includes/glog/glog/logging.h:1332:29: note: in expansion of macro 'CHECK'
GLOG_MSVC_POP_WARNING() CHECK(condition)
^~~~~
./sparse_matmul/vector/cache_aligned_vector.h:448:5: note: in expansion of macro 'DCHECK'
DCHECK(size > mindex >= 0);
^~~~~~
./sparse_matmul/vector/cache_aligned_vector.h:449:33: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
DCHECK((maxdex == -1) || (0 <= mindex < maxdex < size));
^~~~
bazel-out/k8-opt/bin/external/com_google_glog/_virtual_includes/glog/glog/logging.h:669:5: note: in definition of macro 'LOG_IF'
!(condition) ? (void) 0 : google::LogMessageVoidify() & LOG(severity)
^~~~~~~~~
bazel-out/k8-opt/bin/external/com_google_glog/virtual_includes/glog/glog/logging.h:684:21: note: in expansion of macro 'GOOGLE_PREDICT_BRANCH_NOT_TAKEN'
LOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN(!(condition)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/k8-opt/bin/external/com_google_glog/virtual_includes/glog/glog/logging.h:1332:29: note: in expansion of macro 'CHECK'
GLOG_MSVC_POP_WARNING() CHECK(condition)
^~~~~
./sparse_matmul/vector/cache_aligned_vector.h:449:5: note: in expansion of macro 'DCHECK'
DCHECK((maxdex == -1) || (0 <= mindex < maxdex < size));
^~~~~~
./sparse_matmul/vector/cache_aligned_vector.h:449:43: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
DCHECK((maxdex == -1) || (0 <= mindex < maxdex < size));
~~~~~~~~~~~~^
bazel-out/k8-opt/bin/external/com_google_glog/_virtual_includes/glog/glog/logging.h:669:5: note: in definition of macro 'LOG_IF'
!(condition) ? (void) 0 : google::LogMessageVoidify() & LOG(severity)
^~~~~~~~~
bazel-out/k8-opt/bin/external/com_google_glog/_virtual_includes/glog/glog/logging.h:684:21: note: in expansion of macro 'GOOGLE_PREDICT_BRANCH_NOT_TAKEN'
LOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN(!(condition)))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bazel-out/k8-opt/bin/external/com_google_glog/virtual_includes/glog/glog/logging.h:1332:29: note: in expansion of macro 'CHECK'
GLOG_MSVC_POP_WARNING() CHECK(condition)
^~~~~
./sparse_matmul/vector/cache_aligned_vector.h:449:5: note: in expansion of macro 'DCHECK'
DCHECK((maxdex == -1) || (0 <= mindex < maxdex < size));
^~~~~~
Target //:encoder_main failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 27.856s, Critical Path: 11.17s
INFO: 6 processes: 5 internal, 1 linux-sandbox.
FAILED: Build did NOT complete successfully
from lyra.
This is the first error:
/usr/include/c++/7/type_traits:878:48: error: constructor required before non-static data member for 'chromemedia::codec::LayerParams::FromDisk::path' has been parsed
template<typename _Tp, typename = decltype(_Tp())>
^~~~~
I think this might mean that you are using an old version of gcc.
What version of gcc are you building with? If you type gcc --version
what do you get?
I have gcc 10.3.0. You might try upgrading gcc if you have an old one.
from lyra.
My gcc version is 10.3.0 just like yours
This is the first error:
/usr/include/c++/7/type_traits:878:48: error: constructor required before non-static data member for 'chromemedia::codec::LayerParams::FromDisk::path' has been parsed
template<typename _Tp, typename = decltype(_Tp())>
^~~~~I think this might mean that you are using an old version of gcc.
What version of gcc are you building with? If you typegcc --version
what do you get?
I have gcc 10.3.0. You might try upgrading gcc if you have an old one.
My gcc version is 10.3.0 just like yours.If I type GCC -- version, it looks like this
gcc (GCC) 10.3.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
from lyra.
Ok, so the next thing to look at is how you are calling gcc via bazel. Also, we should confirm that you haven't modified .bazelrc. Can you build with the -s flag (e.g. bazel build -s -c opt :encoder_main
? This will print the full gcc invocation out. You can paste the gcc invocation with all the flags here and I'll take a look.
from lyra.
Ok, so the next thing to look at is how you are calling gcc via bazel. Also, we should confirm that you haven't modified .bazelrc. Can you build with the -s flag (e.g.
bazel build -s -c opt :encoder_main
? This will print the full gcc invocation out. You can paste the gcc invocation with all the flags here and I'll take a look.
I tried to reinstall the Ubuntu system and upgrade GCC to 10.3.0. This time, I succeeded. I don't know the reason for the previous problems. Thank you very much for your kind help to me.
from lyra.
No problem, glad you were able to resolve it.
from lyra.
Related Issues (20)
- About crash problem with kInternalSampleRateHz set to 32k
- Android app built as per readme crashes (on Samsung S23) HOT 1
- how to read the encoded data in the sample1_16kHz.lyra file into python/numpy array?
- Directly provide the executable download address HOT 3
- Is that possible to release the model coeffs with codebook size=1024?
- Is it possible to still run the V1 model with the latest API? Or only V2
- LMCodec HOT 2
- Build fails on MacOS due to bad Tensorflow link HOT 1
- Noise is being added to generated speech in Python E2E flow (TFLite Models) HOT 2
- The Lyra Parameters
- bazel build -c opt lyra/cli_example:encoder_main
- support of sdk 34 and ndk
- Why does the sampling result need to be multiplied by 256?
- cannot build --config=android_arm64
- the first step: bazel build -c opt lyra/cli_example:encoder_main
- How to use in raspberry pi zero 2w HOT 2
- desktop/mobile player
- Enhance Lyra Quality on μ-Law Decoded Audio Stream
- Use Lyra without Building
- lyra_android_example.apk crashed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lyra.