Closed hedgepigdaniel closed 5 years ago
Another error:
[11505/16794] CXX obj/media/learning/impl/impl/random_tree_trainer.o
FAILED: obj/media/learning/impl/impl/random_tree_trainer.o
ccache /home/daniel/arch/aur/chromium-wayland-igalia/src/src/third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/media/learning/impl/impl/random_tree_trainer.o.d -DIS_LEARNING_IMPL_IMPL -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DOFFICIAL_BUILD -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DCR_CLANG_REVISION=\"352138-2\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -I../.. -Igen -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -Igen/shim_headers/zlib_shim -fprofile-sample-use=../../chrome/android/profiles/afdo.prof -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -flto=thin -fsplit-lto-unit -fwhole-program-vtables -m64 -march=x86-64 -Wall -Wextra -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fsanitize=cfi-vcall -fsanitize-blacklist=../../tools/cfi/blacklist.txt -fsanitize=cfi-icall -fvisibility=hidden -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -std=c++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -D_FORTIFY_SOURCE=2 -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -g -Og -fdebug-prefix-map=/home/daniel/arch/aur/chromium-wayland-igalia/src=/usr/src/debug -Wno-builtin-macro-redefined -c ../../media/learning/impl/random_tree_trainer.cc -o obj/media/learning/impl/impl/random_tree_trainer.o
In file included from ../../media/learning/impl/random_tree_trainer.cc:11:
../../base/optional.h:348:61: error: no member named 'value' in 'std::is_constructible<media::learning::Value, const base::Optional<media::learning::Value> &>'
std::is_constructible<T, const Optional<U>&>::value ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../../base/optional.h:451:39: note: in instantiation of template class 'base::internal::IsConvertibleFromOptional<media::learning::Value, media::learning::Value>' requested here
!internal::IsConvertibleFromOptional<T, U>::value &&
^
../../base/optional.h:454:3: note: while substituting prior template arguments into non-type template parameter [with U = media::learning::Value]
Optional(const Optional<U>& other) : internal::OptionalBase<T>(other) {}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/type_traits:921:56: note: while substituting deduced template arguments into function template 'Optional' [with U = media::learning::Value, $1 = (no value)]
: public __bool_constant<__is_constructible(_Tp, _Args...)>
^
../../base/optional.h:540:16: note: in instantiation of template class 'std::is_constructible<media::learning::Value, const base::Optional<media::learning::Value> &>' requested here
std::is_constructible<T, U>::value &&
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/type_traits:1049:56: note: while substituting deduced template arguments into function template 'operator=' [with U = const base::Optional<media::learning::Value> &]
: public __bool_constant<__is_assignable(_Tp, _Up)>
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/type_traits:1061:14: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
: public is_assignable<_Tp&, const _Tp&>
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/bits/stl_uninitialized.h:579:33: note: in instantiation of template class 'std::is_copy_assignable<base::Optional<media::learning::Value> >' requested here
const bool __assignable = is_copy_assignable<_ValueType>::value;
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/bits/stl_uninitialized.h:645:19: note: in instantiation of function template specialization 'std::__uninitialized_default_n<base::Optional<media::learning::Value> *, unsigned long>' requested here
{ return std::__uninitialized_default_n(__first, __n); }
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/bits/vector.tcc:596:8: note: in instantiation of function template specialization 'std::__uninitialized_default_n_a<base::Optional<media::learning::Value> *, unsigned long, base::Optional<media::learning::Value> >' requested here
std::__uninitialized_default_n_a(this->_M_impl._M_finish,
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/bits/stl_vector.h:827:4: note: in instantiation of member function 'std::vector<base::Optional<media::learning::Value>, std::allocator<base::Optional<media::learning::Value> > >::_M_default_append' requested here
_M_default_append(__new_size - size());
^
../../media/learning/impl/random_tree_trainer.cc:190:18: note: in instantiation of member function 'std::vector<base::Optional<media::learning::Value>, std::allocator<base::Optional<media::learning::Value> > >::resize' requested here
feature_values.resize(training_data[0].features.size());
^
In file included from ../../media/learning/impl/random_tree_trainer.cc:11:
../../base/optional.h:360:44: error: no member named 'value' in 'base::internal::IsConvertibleFromOptional<media::learning::Value, media::learning::Value>'
IsConvertibleFromOptional<T, U>::value ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../../base/optional.h:552:31: note: in instantiation of template class 'base::internal::IsAssignableFromOptional<media::learning::Value, media::learning::Value>' requested here
std::enable_if_t<!internal::IsAssignableFromOptional<T, U>::value &&
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/type_traits:1049:56: note: while substituting deduced template arguments into function template 'operator=' [with U = media::learning::Value]
: public __bool_constant<__is_assignable(_Tp, _Up)>
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/type_traits:1061:14: note: in instantiation of template class 'std::is_assignable<base::Optional<media::learning::Value> &, const base::Optional<media::learning::Value> &>' requested here
: public is_assignable<_Tp&, const _Tp&>
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/type_traits:1067:14: note: in instantiation of template class 'std::__is_copy_assignable_impl<base::Optional<media::learning::Value>, true>' requested here
: public __is_copy_assignable_impl<_Tp>
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/bits/stl_uninitialized.h:579:33: note: in instantiation of template class 'std::is_copy_assignable<base::Optional<media::learning::Value> >' requested here
const bool __assignable = is_copy_assignable<_ValueType>::value;
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/bits/stl_uninitialized.h:645:19: note: in instantiation of function template specialization 'std::__uninitialized_default_n<base::Optional<media::learning::Value> *, unsigned long>' requested here
{ return std::__uninitialized_default_n(__first, __n); }
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/bits/vector.tcc:596:8: note: in instantiation of function template specialization 'std::__uninitialized_default_n_a<base::Optional<media::learning::Value> *, unsigned long, base::Optional<media::learning::Value> >' requested here
std::__uninitialized_default_n_a(this->_M_impl._M_finish,
^
/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../include/c++/8.2.1/bits/stl_vector.h:827:4: note: in instantiation of member function 'std::vector<base::Optional<media::learning::Value>, std::allocator<base::Optional<media::learning::Value> > >::_M_default_append' requested here
_M_default_append(__new_size - size());
^
../../media/learning/impl/random_tree_trainer.cc:190:18: note: in instantiation of member function 'std::vector<base::Optional<media::learning::Value>, std::allocator<base::Optional<media::learning::Value> > >::resize' requested here
feature_values.resize(training_data[0].features.size());
^
2 errors generated.
I’m sorry, this issue is not about Wayland support, but rather about gcc support. Currently, chromium officially supports clang, but we and other guys from the community try to keep gcc builds also working, but it requires some time.
Please, switch to clang instead.
Well yes so far, although the reason I'm doing this is to try and put together a PKGBUILD for building chromium with wayland support on arch. My idea is to get the non-wayland build working first and then turn on the wayland flags.
I am already using clang, at least the second error error happens both with the bundled clang (9.0.0) and my system clang (7.0.0).
Please report about that issue to the upstream - crbug.com
I'm trying to build from a011df391c95d05da092c2468fe231c8911e5e82
Indeed, changing the
std::sqrtf
to just::sqrtf
does fix it, although I'm a bit confused as to why, since that file does includecmath
(https://en.cppreference.com/w/cpp/numeric/math/sqrt)The use of
std:sqrtf
was introduced recently in 4aad48c08d9d3. Not sure if bug or build configuration error.My build flags: