New issue
Advanced search Search tips

Issue 882499 link

Starred by 2 users

Issue metadata

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

Blocking:
issue 878565



Sign in to add a comment

Gold is not able to link ARM64 Chrome

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

Issue description

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

Gold is throwing an error when linkig Chrome:

chromeos-chrome-71.0.3544.0_rc-r2: [41459/41459] LINK ./chrome
chromeos-chrome-71.0.3544.0_rc-r2: FAILED: chrome 
chromeos-chrome-71.0.3544.0_rc-r2: python "../../../../../../../home/chrome-bot/chrome_root/src/build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- aarch64-cros-linux-gnu-clang++ -B/usr/x86_64-pc-linux-gnu/aarch64-cros-linux-gnu/binutils-bin/2.27.0-gold -pie -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed -flto=thin -Wl,-plugin-opt,jobs=8 -fwhole-program-vtables --target=aarch64-linux-gnu -Wl,-O2 -Wl,--gc-sections --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,-rpath-link=. -Wl,--disable-new-dtags -Wl,-rpath=\$ORIGIN/. -Wl,-rpath-link=. -L/build/kevin64/usr/lib64 -L/build/kevin64/usr/lib -Wl,-O1 -Wl,-O2 -Wl,--as-needed -stdlib=libc++ -Wl,-plugin-opt,-import-instr-limit=30 -o "./chrome" -Wl,--start-group @"./chrome.rsp"  -Wl,--end-group   -ldl -lpthread -lrt -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -lcups -lexpat -lfontconfig -lresolv -lm -lz -ldrm -lsync -lxkbcommon -lgestures -levdev -lasound -lcras -lgbm -lpci -lEGL -lGLESv2 -lffi 
chromeos-chrome-71.0.3544.0_rc-r2: /usr/x86_64-pc-linux-gnu/aarch64-cros-linux-gnu/binutils-bin/2.27.0/ld.gold.real: internal error in maybe_apply_stub, at /var/tmp/portage/cross-aarch64-cros-linux-gnu/binutils-2.27.0-r11/work/binutils-2.27.0/binutils-2.27/gold/aarch64.cc:5527
chromeos-chrome-71.0.3544.0_rc-r2: clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

Note that link succeeds if I disable both thinlto & cfi (https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/buildDetails?buildbucketId=8935803026475834672).
 
ideally, we should not spend any time on gold. 
Try to use LLD if possible. 
Yes, I tried lld but ran into another  bug 882503 .
Project Member

Comment 3 by bugdroid1@chromium.org, Sep 11

Owner: manojgupta@chromium.org
Assigning to Manoj as he is working on ARM64 now.
Status: WontFix (was: Untriaged)
Will focus on making lld work.
Project Member

Comment 6 by bugdroid1@chromium.org, Dec 14

Sign in to add a comment