New issue
Advanced search Search tips

Issue 882503 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Dec 3
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug
Build-Toolchain



Sign in to add a comment

lld errors out when linking libmojo on ARM64 (when building Chrome)

Project Member Reported by manojgupta@chromium.org, Sep 10

Issue description

https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/buildDetails?buildbucketId=8935761118298483744

chromeos-chrome-71.0.3544.0_rc-r2: [8020/41376] SOLINK ./libmojo_core.so
chromeos-chrome-71.0.3544.0_rc-r2: FAILED: libmojo_core.so libmojo_core.so.TOC 
chromeos-chrome-71.0.3544.0_rc-r2: python "../../../../../../../home/chrome-bot/chrome_root/src/build/toolchain/gcc_solink_wrapper.py" --readelf="readelf" --nm="aarch64-cros-linux-gnu-nm" --sofile="./libmojo_core.so" --tocfile="./libmojo_core.so.TOC" --output="./libmojo_core.so" -- aarch64-cros-linux-gnu-clang++ -fuse-ld=lld -shared -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,-z,max-page-size=4096 -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-O2 -fwhole-program-vtables --target=aarch64-linux-gnu -Wl,-O2 -Wl,--gc-sections -Wl,--gdb-index --sysroot=../../../../../../../build/kevin64 -L../../../../../../../build/kevin64/lib64 -Wl,-rpath-link=../../../../../../../build/kevin64/lib64 -L../../../../../../../build/kevin64/usr/lib64 -Wl,-rpath-link=../../../../../../../build/kevin64/usr/lib64 -L../../../../../../../build/kevin64/usr/local/lib64 -Wl,-rpath-link=../../../../../../../build/kevin64/usr/local/lib64 -L../../../../../../../build/kevin64/lib -Wl,-rpath-link=../../../../../../../build/kevin64/lib -L../../../../../../../build/kevin64/usr/lib -Wl,-rpath-link=../../../../../../../build/kevin64/usr/lib -L../../../../../../../build/kevin64/usr/local/lib -Wl,-rpath-link=../../../../../../../build/kevin64/usr/local/lib -L../../../../../../../build/kevin64/usr/aarch64-cros-linux-gnu/lib -Wl,-rpath-link=../../../../../../../build/kevin64/usr/aarch64-cros-linux-gnu/lib -fsanitize=cfi-vcall -fsanitize=cfi-derived-cast -fsanitize=cfi-unrelated-cast -Wl,--version-script=../../../../../../../home/chrome-bot/chrome_root/src/mojo/core/export_only_thunks_api.lst -Wl,-O1 -Wl,-O2 -Wl,--as-needed -stdlib=libc++ -Wl,-plugin-opt,-import-instr-limit=30 -o "./libmojo_core.so" -Wl,-soname="libmojo_core.so" @"./libmojo_core.so.rsp"
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.9.3' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.8' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.4' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.6' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.2' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.9' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.15' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.13' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.7' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.3' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.2.1' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.18' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.10' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol 'NSS_3.12.10' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libsmime3.so
chromeos-chrome-71.0.3544.0_rc-r2: clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
 
Should we switch arm64 binutils to use gold linker as default instead of bfd?
Swtich to gold fixed the nss error but still failed because of other libraries.

https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/buildDetails?buildbucketId=8935656996958826896
chromeos-chrome-71.0.3544.0_rc-r2: [28819/41376] LINK ./jpeg_decode_accelerator_unittest
chromeos-chrome-71.0.3544.0_rc-r2: FAILED: jpeg_decode_accelerator_unittest 
chromeos-chrome-71.0.3544.0_rc-r2: python "../../../../../../../home/chrome-bot/chrome_root/src/build/toolchain/gcc_link_wrapper.py" --output="./jpeg_decode_accelerator_unittest" -- aarch64-cros-linux-gnu-clang++ -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -fuse-ld=lld -Wl,-z,max-page-size=4096 -Wl,--icf=all -Wl,--color-diagnostics --target=aarch64-linux-gnu -Wl,-O2 -Wl,--gc-sections -Wl,--gdb-index --sysroot=../../../../../../../build/kevin64 -L../../../../../../../build/kevin64/lib64 -Wl,-rpath-link=../../../../../../../build/kevin64/lib64 -L../../../../../../../build/kevin64/usr/lib64 -Wl,-rpath-link=../../../../../../../build/kevin64/usr/lib64 -L../../../../../../../build/kevin64/usr/local/lib64 -Wl,-rpath-link=../../../../../../../build/kevin64/usr/local/lib64 -L../../../../../../../build/kevin64/lib -Wl,-rpath-link=../../../../../../../build/kevin64/lib -L../../../../../../../build/kevin64/usr/lib -Wl,-rpath-link=../../../../../../../build/kevin64/usr/lib -L../../../../../../../build/kevin64/usr/local/lib -Wl,-rpath-link=../../../../../../../build/kevin64/usr/local/lib -L../../../../../../../build/kevin64/usr/aarch64-cros-linux-gnu/lib -Wl,-rpath-link=../../../../../../../build/kevin64/usr/aarch64-cros-linux-gnu/lib -Wl,-rpath-link=. -Wl,--disable-new-dtags -L/build/kevin64/usr/lib64 -L/build/kevin64/usr/lib -Wl,-O1 -Wl,-O2 -Wl,--as-needed -stdlib=libc++  -o "./jpeg_decode_accelerator_unittest" -Wl,--start-group @"./jpeg_decode_accelerator_unittest.rsp"  -Wl,--end-group   -ldl -lpthread -lrt -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lasound -lcras -ldbus-1 -lexpat -lfontconfig -ldrm -lsync -lm -lz -lresolv -lEGL -lGLESv2 -lxkbcommon -lgestures -levdev -lgbm -lpci 
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol '__bss_start__' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libEGL.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol '__end__' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libEGL.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol '__bss_end__' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libEGL.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol '__bss_start' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libEGL.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol '_bss_end__' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libEGL.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol '_end' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libEGL.so
chromeos-chrome-71.0.3544.0_rc-r2: /usr/bin/lld.real: error: found local symbol '_edata' in global part of symbol table in file ../../../../../../../build/kevin64/usr/lib64/libEGL.so
chromeos-chrome-71.0.3544.0_rc-r2: clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
Owner: manojgupta@chromium.org
Assigning to Manoj as he is working on ARM64.
Status: WontFix (was: Untriaged)
Does not repro anymore.

Sign in to add a comment