Steps to reproduce the problem:
1. ninja -C out/path chrome_public_apk
2.
3.
What is the expected behavior?
no errors
What went wrong?
[285/34364] CXX obj/base/base/histogram.o
FAILED: obj/base/base/histogram.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/base/base/histogram.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r12b_1 -DCR_CLANG_REVISION=\"318667-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D__GNU_SOURCE=1 -DCHROMIUM_CXX_TWEAK_INLINES -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBASE_IMPLEMENTATION -I../.. -Igen -Igen/base/base_jni_headers -Igen/base/base_jni_headers/base -Igen/base/android_runtime_jni_headers/base -I../../third_party/android_tools/ndk/sources/android/cpufeatures -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -fcolor-diagnostics -no-canonical-prefixes -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -mfpu=neon -mthumb -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch -Wno-tautological-unsigned-zero-compare -Wno-null-pointer-arithmetic -Wno-tautological-constant-compare -Wtautological-constant-out-of-range-compare -fomit-frame-pointer -g0 -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-char-subscripts -Wexit-time-destructors -Wshadow -Wexit-time-destructors -O2 -fno-ident -fdata-sections -ffunction-sections -std=gnu++14 -fno-exceptions -fno-rtti -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libcxx/include -isystem../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/include -isystem../../third_party/android_tools/ndk/sources/android/support/include --sysroot=../../third_party/android_tools/ndk/platforms/android-16/arch-arm -fvisibility-inlines-hidden -c ../../base/metrics/histogram.cc -o obj/base/base/histogram.o
../../base/metrics/histogram.cc:440:5: error: use of undeclared identifier 'UmaHistogramSparse'; did you mean 'UmaHistogramTimes'?
UmaHistogramSparse("Histogram.BadConstructionArguments",
^~~~~~~~~~~~~~~~~~
UmaHistogramTimes
../../base/metrics/histogram_functions.h:97:18: note: 'UmaHistogramTimes' declared here
BASE_EXPORT void UmaHistogramTimes(const std::string& name, TimeDelta sample);
^
../../base/metrics/histogram.cc:441:24: error: no viable conversion from 'base::HistogramBase::Sample' (aka 'int') to 'base::TimeDelta'
static_cast<Sample>(HashMetricName(name)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../base/time/time.h:107:19: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'base::HistogramBase::Sample' (aka 'int') to 'const base::TimeDelta &' for 1st argument
class BASE_EXPORT TimeDelta {
^
../../base/metrics/histogram_functions.h:97:71: note: passing argument to parameter 'sample' here
BASE_EXPORT void UmaHistogramTimes(const std::string& name, TimeDelta sample);
^
2 errors generated.
Building continues,
Ubuntu 17.10 64-bit,
target_os = "android"
is_debug = false
dcheck_always_on = false
is_component_build = false
symbol_level = 0
enable_nacl = false
remove_webcore_debug_symbols = true
target_cpu = "arm"
Did this work before? Yes
Chrome version: 65.0.3299.5 Channel: canary
OS Version: 7
Flash Version:
Comment 1 by pnangunoori@chromium.org
, Jan 10 2018