New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 817911 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Jun 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug
Build-Toolchain



Sign in to add a comment

LLD cannot link chrome.

Project Member Reported by yunlian@chromium.org, Mar 1 2018

Issue description

FAILED: host/transport_security_state_generator
python "../../../../../chromeos-cache/distfiles/target/chrome-src-internal/src/build/toolchain/gcc\
_link_wrapper.py" --output="host/transport_security_state_generator" -- x86_64-pc-linux-gnu-clang+\
+ -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-nee\
ded -lpthread -Wl,--as-needed -fuse-ld=lld -Wl,--icf=all -m64 -Wl,-O2 -Wl,--gc-sections -Wl,--gdb-\
index -Wl,--fatal-warnings -nostdlib++ -Wl,-rpath-link=host -Wl,--disable-new-dtags -o "host/trans\
port_security_state_generator" -Wl,--start-group @"host/transport_security_state_generator.rsp"  -\
Wl,--end-group   -ldl -lpthread -lrt -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4
/usr/bin/ld.lld: error: found local symbol 'NSS_3.9.3' in global part of symbol table in file /usr\
/bin/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.8' in global part of symbol table in file /usr/b\
in/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.4' in global part of symbol table in file /usr/b\
in/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.6' in global part of symbol table in file /usr/b\
in/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.2' in global part of symbol table in file /usr/b\
in/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.9' in global part of symbol table in file /usr/b\
in/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.15' in global part of symbol table in file /usr/\
bin/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.13' in global part of symbol table in file /usr/\
bin/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.7' in global part of symbol table in file /usr/b\
in/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.3' in global part of symbol table in file /usr/b\
in/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.2.1' in global part of symbol table in file /usr\
/bin/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.18' in global part of symbol table in file /usr/\
bin/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.10' in global part of symbol table in file /usr/\
bin/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
/usr/bin/ld.lld: error: found local symbol 'NSS_3.12.10' in global part of symbol table in file /u\
sr/bin/../lib64/gcc/x86_64-pc-linux-gnu/4.9.x/../../../../lib64/libsmime3.so
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)

 
Project Member

Comment 1 by bugdroid1@chromium.org, Mar 2 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/43726d23e4bb84cf087062b25ee97b8e718609ca

commit 43726d23e4bb84cf087062b25ee97b8e718609ca
Author: Yunlian Jiang <yunlian@chromium.org>
Date: Fri Mar 02 21:25:21 2018

nss: set gold as the default linker.

When using bfd linker, it mixes local symols and gobal symbols.
This makes LLD fail when it tries to link the library to other
binaries.

BUG= chromium:817911 
TEST=cbuildbot chromiumos-sdk
     USE="-gold lld" emerge-caroline chromeos-chrome

Change-Id: I5fe8a0ad329e95f5c2be46b0e8a0e7828cb8e951
Reviewed-on: https://chromium-review.googlesource.com/944266
Commit-Ready: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/43726d23e4bb84cf087062b25ee97b8e718609ca/dev-libs/nss/nss-3.30.2.ebuild
[rename] https://crrev.com/43726d23e4bb84cf087062b25ee97b8e718609ca/dev-libs/nss/nss-3.30.2-r4.ebuild

Status: Verified (was: Untriaged)

Sign in to add a comment