Build test target for code coverage failed.

110 views
Skip to first unread message

Gary Chine

unread,
Apr 6, 2022, 10:18:05 PM4/6/22
to Chromium-dev
Hi Team, 

I am following the document https://chromium.googlesource.com/chromium/src.git/+/HEAD/docs/testing/code_coverage.md to build my test target for code coverage report and link error reports as below:
[274/302] SOLINK ./libcomponents_unittests__library.so
FAILED: libcomponents_unittests__library.so libcomponents_unittests__library.so.TOC lib.unstripped/libcomponents_unittests__library.so
python3 "../../build/toolchain/gcc_solink_wrapper.py" --readelf="../../third_party/llvm-build/Release+Asserts/bin/llvm-readelf" --nm="../../third_party/llvm-build/Release+Asserts/bin/llvm-nm" --strip=../../third_party/llvm-build/Release+Asserts/bin/llvm-strip  --sofile="./lib.unstripped/libcomponents_unittests__library.so" --tocfile="./libcomponents_unittests__library.so.TOC" --output="./libcomponents_unittests__library.so" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-soname="libcomponents_unittests__library.so" -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--color-diagnostics -Wl,--no-rosegment -Wl,--no-call-graph-profile-sort -Wl,--exclude-libs=libvpx_assembly_arm.a --unwindlib=none --target=arm-linux-androideabi23 -no-canonical-prefixes -Wl,--warn-shared-textrel -Wl,-O2 -Wl,--gc-sections -nostdlib++ --sysroot=../../third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Wl,--warn-shared-textrel -Wl,-z,defs -Wl,--as-needed -fprofile-instr-generate -Wl,--version-script=../../build/android/android_only_jni_exports.lst -Wl,-wrap,calloc -Wl,-wrap,free -Wl,-wrap,malloc -Wl,-wrap,memalign -Wl,-wrap,posix_memalign -Wl,-wrap,pvalloc -Wl,-wrap,realloc -Wl,-wrap,valloc -Wl,-wrap,realpath -Wl,-wrap,strdup -Wl,-wrap,strndup -Wl,-wrap,getcwd -Wl,-wrap,asprintf -Wl,-wrap,vasprintf -Wl,--dynamic-linker,/system/bin/linker -o "./lib.unstripped/libcomponents_unittests__library.so" @"./libcomponents_unittests__library.so.rsp"
ld.lld: error: output file too large: 5341449556 bytes
section sizes:
.note.android.ident 152
.note.crashpad.info 28
.note.gnu.build-id 24
.dynsym 22016
.gnu.version 2752
.gnu.version_r 96
.gnu.hash 6656
.dynstr 112419
.rel.dyn 6661624
.ARM.exidx 14332296
.rel.plt 3496
.rodata 15807410
__llvm_prf_names 148454691
.ARM.extab 265740
.text 397223200
malloc_hook 464
.plt 7024
.data.rel.ro 4440544
.fini_array 8
.init_array 8120
.dynamic 248
.got 83256
.got.plt 1760
__llvm_prf_cnts 55001896
__llvm_prf_data 141280560
.data 295700
.bss 8347908
.comment 278
.ARM.attributes 42
__llvm_covfun 290565967
__llvm_covmap 10186116
.debug_abbrev 10336483
.debug_info 484910809
.debug_aranges 55583672
.debug_ranges 624602080
.debug_str 877343559
.debug_frame 194472588
.debug_line 969106313
.debug_loc 30123
.symtab 199267904
.shstrtab 486
.strtab 841028742
Could you please give me some advice recovering from that?

Thanks,
Gary

Takuto Ikuta

unread,
Apr 6, 2022, 10:23:54 PM4/6/22
to xiaod...@gmail.com, Chromium-dev

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/cb70e765-8dca-41d3-95f4-5a9c8c16fb0an%40chromium.org.

Gary Chine

unread,
Apr 6, 2022, 10:29:04 PM4/6/22
to Chromium-dev, tik...@chromium.org, Chromium-dev, Gary Chine
Not yet, since I don't know it's a bug or there is some configure we can set to recover.

Gary Chine

unread,
Apr 8, 2022, 8:03:00 AM4/8/22
to Chromium-dev, tik...@chromium.org, Chromium-dev, Gary Chine
file a bug here:https://bugs.chromium.org/p/chromium/issues/detail?id=1314648 .Please feel free to let me supply more details once you need. 

在2022年4月7日星期四 UTC+8 10:23:54<tik...@chromium.org> 写道:
Reply all
Reply to author
Forward
0 new messages