New issue
Advanced search Search tips

Issue 841887 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: May 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug
Build-Toolchain

Blocking:
issue 840995



Sign in to add a comment

ldb does not buid with sanitizer flags

Project Member Reported by manojgupta@chromium.org, May 10 2018

Issue description

[ 6/80] Linking default/lib/replace/libreplace-ldb.so
11:26:45 runner x86_64-cros-linux-gnu-clang default/lib/replace/replace_2.o default/lib/replace/cwrap_2.o -o /build/amd64-generic/tmp/portage/sys-libs/ldb-1.1.29-r2/work/ldb-1.1.29-abi_x86_64.amd64/bin/default/lib/replace/libreplace-ldb.so -fsanitize=address -fsanitize=fuzzer-no-link -Wl,-O2 -Wl,--as-needed -fsanitize=address -fsanitize=fuzzer-no-link -Wl,-O2 -Wl,--as-needed -lpthread -Wl,-no-undefined -fstack-protector -shared -Wl,--version-script=/build/amd64-generic/tmp/portage/sys-libs/ldb-1.1.29-r2/work/ldb-1.1.29-abi_x86_64.amd64/bin/default/lib/replace/replace.vscript -L/usr/local/lib -Wl,-Bdynamic -lbsd -lcrypt -lattr
../lib/replace/replace.c:41: error: undefined reference to '__asan_init'
../lib/replace/replace.c:41: error: undefined reference to '__asan_version_mismatch_check_v8'
default/lib/replace/replace_2.o:replace.c:function sancov.module_ctor: error: undefined reference to '__sanitizer_cov_8bit_counters_init'
default/lib/replace/replace_2.o:replace.c:function sancov.module_ctor: error: undefined reference to '__sanitizer_cov_pcs_init'
../lib/replace/cwrap.c:45: error: undefined reference to '__asan_init'
../lib/replace/cwrap.c:45: error: undefined reference to '__asan_version_mismatch_check_v8'
clang-7: error: linker command failed with exit code 1 (use -v to see invocation
 
Project Member

Comment 1 by bugdroid1@chromium.org, May 11 2018

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

commit cfded6197564673721b6420694eeb005a70c7f1a
Author: Manoj Gupta <manojgupta@google.com>
Date: Fri May 11 02:40:31 2018

ldb: Filter sanitizer flags.

ldb does not build with sanitizers. Filter it for now.

BUG= chromium:841887 
TEST=ldb builds.

CQ-DEPEND=CL:1052678

Change-Id: I98ece4e808a0bfbc4a75f13752c1ef2e6f1d8af4
Reviewed-on: https://chromium-review.googlesource.com/1054254
Commit-Ready: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Caroline Tice <cmtice@chromium.org>

[add] https://crrev.com/cfded6197564673721b6420694eeb005a70c7f1a/chromeos/config/env/sys-libs/ldb

Status: Verified (was: Untriaged)

Sign in to add a comment