I'm building Chromium at version 70.0.3507.0 (master #578961) on an Ubuntu 14.04 64-bit host machine using the below GN args [1]. Link commands are failing with the following error message:
[9/18009] LINK ./flatc
FAILED: flatc
python "../../build/toolchain/gcc_link_wrapper.py" --output="./flatc" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,--icf=all -Wl,--color-diagnostics -flto=thin -Wl,--thinlto-jobs=8 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy,cache_size=10\%:cache_size_bytes=10g:cache_size_files=100000 -Wl,--lto-O0 -fwhole-program-vtables -m64 -Werror -Wl,-O2 -Wl,--gc-sections -nostdlib++ --sysroot=../../build/linux/debian_sid_amd64-sysroot -L../../build/linux/debian_sid_amd64-sysroot/usr/local/lib/x86_64-linux-gnu -Wl,-rpath-link=../../build/linux/debian_sid_amd64-sysroot/usr/local/lib/x86_64-linux-gnu -L../../build/linux/debian_sid_amd64-sysroot/lib/x86_64-linux-gnu -Wl,-rpath-link=../../build/linux/debian_sid_amd64-sysroot/lib/x86_64-linux-gnu -L../../build/linux/debian_sid_amd64-sysroot/usr/lib/x86_64-linux-gnu -Wl,-rpath-link=../../build/linux/debian_sid_amd64-sysroot/usr/lib/x86_64-linux-gnu -fsanitize=cfi-vcall -fsanitize=cfi-icall -rdynamic -Wl,-rpath-link=. -Wl,--disable-new-dtags -o "./flatc" -Wl,--start-group @"./flatc.rsp" -Wl,--end-group -ldl -lpthread -lrt
/var/build/chromium/src/out/Debug_GN_x64/../../third_party/llvm-build/Release+Asserts/bin/ld.lld: error: linking module flags 'ProfileSummary': IDs have conflicting values
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The failure does not reproduce when building Chromium version 69.0.3497.0 (master #576753) or older using the same GN args.
I tried googling the error message but find get any useful results. Does anyone know what might be causing this?
clang_use_chrome_plugins=false
dcheck_always_on=true
enable_linux_installer=false
enable_nacl=false
enable_vulkan=false
fatal_linker_warnings=false
is_component_build=false
is_debug=false
is_official_build=true
symbol_level=1
target_cpu="x64"
use_allocator="none"
use_bundled_fontconfig=false
use_gtk3=false
use_sysroot=true