Closed wzhlovepy closed 3 years ago
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?
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
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.
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.
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)
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.
你能发布完整的编译器错误吗?它应该靠近您发布的消息,这只是失败通知,而不是实际错误。
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
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; <template-parameter-1-2> = <missing>]':
/usr/include/c++/7/type_traits:889:35: required from 'struct std::__is_default_constructible_impl<chromemedia::codec::LayerParams::FromDisk>'
/usr/include/c++/7/type_traits:143:12: required from 'struct std::__and_<std::__not_<std::is_void<chromemedia::codec::LayerParams::FromDisk> >, std::__is_default_constructible_impl<chromemedia::codec::LayerParams::FromDisk> >'
/usr/include/c++/7/type_traits:893:12: required from 'struct std::__is_default_constructible_atom<chromemedia::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_constructible<chromemedia::codec::LayerParams::FromDisk>'
/usr/include/c++/7/type_traits:2979:25: required from 'constexpr const bool std::is_default_constructible_v<chromemedia::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<WeightTypeKind> > chromemedia::codec::LyraWavegru<WeightTypeKind>::Create(int, const ghc::filesystem::path&, const string&) [with WeightTypeKind = float; std::__cxx11::string = std::__cxx11::basic_string<char>]':
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<Types>::Conv1DParams(int, int, int, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes<float>; std::__cxx11::string = std::__cxx11::basic_string<char>]':
causal_convolutional_conditioning.h:293:51: required from 'void chromemedia::codec::CausalConvolutionalConditioning<Types>::CreateLayers() [with Types = chromemedia::codec::ConditioningTypes<float>]'
causal_convolutional_conditioning.h:121:17: required from 'chromemedia::codec::CausalConvolutionalConditioning<Types>::CausalConvolutionalConditioning(int, int, int, int, int, int, float, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes<float>; std::__cxx11::string = std::__cxx11::basic_string<char>]'
/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<float> >; _Args = {int&, int&, int, const int&, int&, int, float&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes<float> > >]'
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<Types>::DilatedParams(int, int, int, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes<float>; std::__cxx11::string = std::__cxx11::basic_string<char>]':
causal_convolutional_conditioning.h:299:22: required from 'void chromemedia::codec::CausalConvolutionalConditioning<Types>::CreateLayers() [with Types = chromemedia::codec::ConditioningTypes<float>]'
causal_convolutional_conditioning.h:121:17: required from 'chromemedia::codec::CausalConvolutionalConditioning<Types>::CausalConvolutionalConditioning(int, int, int, int, int, int, float, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes<float>; std::__cxx11::string = std::__cxx11::basic_string<char>]'
/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<float> >; _Args = {int&, int&, int, const int&, int&, int, float&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes<float> > >]'
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<Types>::TransposeParams(int, int, int, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes<float>; std::__cxx11::string = std::__cxx11::basic_string<char>]':
causal_convolutional_conditioning.h:314:24: required from 'void chromemedia::codec::CausalConvolutionalConditioning<Types>::CreateLayers() [with Types = chromemedia::codec::ConditioningTypes<float>]'
causal_convolutional_conditioning.h:121:17: required from 'chromemedia::codec::CausalConvolutionalConditioning<Types>::CausalConvolutionalConditioning(int, int, int, int, int, int, float, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes<float>; std::__cxx11::string = std::__cxx11::basic_string<char>]'
/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<float> >; _Args = {int&, int&, int, const int&, int&, int, float&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes<float> > >]'
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<Types>::ConvCondParams(int, int, int, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes<float>; std::__cxx11::string = std::__cxx11::basic_string<char>]':
causal_convolutional_conditioning.h:328:56: required from 'void chromemedia::codec::CausalConvolutionalConditioning<Types>::CreateLayers() [with Types = chromemedia::codec::ConditioningTypes<float>]'
causal_convolutional_conditioning.h:121:17: required from 'chromemedia::codec::CausalConvolutionalConditioning<Types>::CausalConvolutionalConditioning(int, int, int, int, int, int, float, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes<float>; std::__cxx11::string = std::__cxx11::basic_string<char>]'
/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<float> >; _Args = {int&, int&, int, const int&, int&, int, float&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes<float> > >]'
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<Types>::ConvToGatesParams(int, int, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes<float>; std::__cxx11::string = std::__cxx11::basic_string<char>]':
causal_convolutional_conditioning.h:334:26: required from 'void chromemedia::codec::CausalConvolutionalConditioning<Types>::CreateLayers() [with Types = chromemedia::codec::ConditioningTypes<float>]'
causal_convolutional_conditioning.h:121:17: required from 'chromemedia::codec::CausalConvolutionalConditioning<Types>::CausalConvolutionalConditioning(int, int, int, int, int, int, float, const string&, const string&) [with Types = chromemedia::codec::ConditioningTypes<float>; std::__cxx11::string = std::__cxx11::basic_string<char>]'
/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<float> >; _Args = {int&, int&, int, const int&, int&, int, float&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&}; typename std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes<float> > >]'
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<DataType>::ScalarSample(float, std::minstd_rand*, csrblocksparse::CacheAlignedVector<float>*, 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<Types>::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<Types>::GetSamples(const csrblocksparse::MutableVectorView<typename Types::ProjRhsType>&, int, std::minstd_rand*, csrblocksparse::CacheAlignedVector<typename Types::ScratchType>*, 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<WeightTypeKind>::SamplingBody(csrblocksparse::SpinBarrier*, int, chromemedia::codec::LyraWavegru<WeightTypeKind>::ConditioningType*, std::vector<std::vector<short int> >*, const std::function<void(short int*, int, int, int)>&) [with WeightTypeKind = float; chromemedia::codec::LyraWavegru<WeightTypeKind>::ConditioningType = chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes<float> >]'
lyra_wavegru.h:165:43: required from 'int chromemedia::codec::LyraWavegru<WeightTypeKind>::SampleThreaded(int, chromemedia::codec::LyraWavegru<WeightTypeKind>::ConditioningType*, std::vector<std::vector<short int> >*, int) [with WeightTypeKind = float; chromemedia::codec::LyraWavegru<WeightTypeKind>::ConditioningType = chromemedia::codec::CausalConvolutionalConditioning<chromemedia::codec::ConditioningTypes<float> >]'
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
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.
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 type
gcc --version
what do you get? I have gcc 10.3.0. You might try upgrading gcc if you have an old one.
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.
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.
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.
No problem, glad you were able to resolve it.
when use bazel build -c opt :encoder_main, some error has occur
ERROR: /home/w/lyra-main/BUILD:860:10: Compiling encoder_main.cc failed: undeclared inclusion(s) in rule '//:encoder_main': this rule is missing dependency declarations for the following files included by 'encoder_main.cc': '/usr/local/lib/clang/14.0.0/include/stddef.h' '/usr/local/lib/clang/14.0.0/include/__stddef_max_align_t.h' '/usr/local/lib/clang/14.0.0/include/stdarg.h' '/usr/local/lib/clang/14.0.0/include/stdint.h' '/usr/local/lib/clang/14.0.0/include/limits.h' Target //:encoder_main failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 6.123s, Critical Path: 4.18s INFO: 3 processes: 3 internal. FAILED: Build did NOT complete successfully