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

Issue 722488 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: May 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

amd64-generic-tot-asan-informational:13044 failed

Project Member Reported by afakhry@chromium.org, May 15 2017

Issue description

amd64-generic-tot-asan-informational:13044 failed

Builders failed on: 
- amd64-generic-tot-asan-informational: 
  https://luci-milo.appspot.com/buildbot/chromiumos.chromium/amd64-generic-tot-asan-informational/13044


We have two different failures in BuildPackages:
(1) in libweave: <gmock/gmock.h> is mysteriously not found.
(2) in libchaps: Link error: /build/amd64-generic/usr/lib/../lib64/libsystem_api-chaps-protos.a(system_api-chaps-protos.ck_structs.pb.o): requires dynamic R_X86_64_PC32 reloc against '_ZSt9make_pairIRjbESt4pairINSt17__decay_and_stripIT_E6__typeENS2_IT0_E6__typeEEOS3_OS6_' which may overflow at runtime; recompile with -fPIC


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
(1)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
libweave-0.0.1-r280: [59/61] CXX weave/libweave/src/test/libweave-test-395517.mock_command.o
libweave-0.0.1-r280: FAILED: weave/libweave/src/test/libweave-test-395517.mock_command.o 
libweave-0.0.1-r280: x86_64-cros-linux-gnu-clang++ -MMD -MF weave/libweave/src/test/libweave-test-395517.mock_command.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/include -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/third_party/modp_b64/modp_b64 -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/third_party/libuweave -Iweave/libweave/libweave-test-395517.gen/include -Igen/include -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/platform2 -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/platform -I/build/amd64-generic/usr/include -Wall -Wno-psabi -ggdb3 -fstack-protector-strong -Wformat=2 -fvisibility=internal -Wa,--noexecstack -Werror --sysroot=/build/amd64-generic -Wno-c++11-extensions -Wno-unused-local-typedefs -DBASE_VER=395517 -pthread -I/build/amd64-generic/usr/include/base-395517 -I/build/amd64-generic/usr/include/glib-2.0 -I/build/amd64-generic/usr/lib64/glib-2.0/include -I/build/amd64-generic/usr/include/nss -I/build/amd64-generic/usr/include/nspr -I/build/amd64-generic/usr/include/dbus-1.0 -I/build/amd64-generic/usr/lib64/dbus-1.0/include -fPIE -std=gnu++11 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -pipe -O2 -pipe -O2 -pipe -march=x86-64 -msse3 -g -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -clang-syntax -fsanitize=address -fsanitize=alignment -fsanitize=shift -clang-syntax -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables  -c ../../../../../../../tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/src/test/mock_command.cc -o weave/libweave/src/test/libweave-test-395517.mock_command.o
libweave-0.0.1-r280: In file included from ../../../../../../../tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/src/test/mock_command.cc:5:
libweave-0.0.1-r280: /build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/include/weave/test/mock_command.h:14:10: fatal error: 'gmock/gmock.h' file not found
libweave-0.0.1-r280: #include <gmock/gmock.h>
libweave-0.0.1-r280:          ^~~~~~~~~~~~~~~
libweave-0.0.1-r280: 1 error generated.
libweave-0.0.1-r280: 
libweave-0.0.1-r280: [60/61] CXX weave/libweave/src/test/libweave-test-395517.fake_stream.o
libweave-0.0.1-r280: FAILED: weave/libweave/src/test/libweave-test-395517.fake_stream.o 
libweave-0.0.1-r280: x86_64-cros-linux-gnu-clang++ -MMD -MF weave/libweave/src/test/libweave-test-395517.fake_stream.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/include -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/third_party/modp_b64/modp_b64 -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/third_party/libuweave -Iweave/libweave/libweave-test-395517.gen/include -Igen/include -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/platform2 -I/build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/platform -I/build/amd64-generic/usr/include -Wall -Wno-psabi -ggdb3 -fstack-protector-strong -Wformat=2 -fvisibility=internal -Wa,--noexecstack -Werror --sysroot=/build/amd64-generic -Wno-c++11-extensions -Wno-unused-local-typedefs -DBASE_VER=395517 -pthread -I/build/amd64-generic/usr/include/base-395517 -I/build/amd64-generic/usr/include/glib-2.0 -I/build/amd64-generic/usr/lib64/glib-2.0/include -I/build/amd64-generic/usr/include/nss -I/build/amd64-generic/usr/include/nspr -I/build/amd64-generic/usr/include/dbus-1.0 -I/build/amd64-generic/usr/lib64/dbus-1.0/include -fPIE -std=gnu++11 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -pipe -O2 -pipe -O2 -pipe -march=x86-64 -msse3 -g -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -clang-syntax -fsanitize=address -fsanitize=alignment -fsanitize=shift -clang-syntax -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables  -c ../../../../../../../tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/src/test/fake_stream.cc -o weave/libweave/src/test/libweave-test-395517.fake_stream.o
libweave-0.0.1-r280: In file included from ../../../../../../../tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/src/test/fake_stream.cc:5:
libweave-0.0.1-r280: /build/amd64-generic/tmp/portage/chromeos-base/libweave-0.0.1-r280/work/libweave-0.0.1/weave/libweave/include/weave/test/fake_stream.h:13:10: fatal error: 'gmock/gmock.h' file not found
libweave-0.0.1-r280: #include <gmock/gmock.h>
libweave-0.0.1-r280:          ^~~~~~~~~~~~~~~
libweave-0.0.1-r280: 1 error generated.
libweave-0.0.1-r280: ninja: build stopped: subcommand failed.


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
(2)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
chaps-0.0.1-r1973: [2/5] SOLINK lib/libchaps.so
chaps-0.0.1-r1973: FAILED: lib/libchaps.so lib/libchaps.so.TOC 
chaps-0.0.1-r1973: if [ ! -e lib/libchaps.so -o ! -e lib/libchaps.so.TOC ]; then flock linker.lock x86_64-cros-linux-gnu-clang++ -shared -Wl,-O1 -Wl,-O2 -Wl,--as-needed -fsanitize=address -fsanitize=alignment -fsanitize=shift -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed --sysroot=/build/amd64-generic -pthread -o lib/libchaps.so -Wl,-soname=libchaps.so -Wl,--whole-archive obj/chaps/libchaps.attributes.o obj/chaps/libchaps.chaps.o obj/chaps/libchaps.chaps_proxy.o obj/chaps/libchaps.chaps_utility.o obj/chaps/libchaps.isolate_chromeos.o obj/chaps/libchaps.proto_conversion.o obj/chaps/libchaps.token_manager_client.o obj/chaps/libchaps-protos.a  -Wl,--no-whole-archive -ldbus-c++-1 -ldbus-1 -lsystem_api-power_manager-protos -lsystem_api-cryptohome-protos -lsystem_api-authpolicy-protos -lsystem_api-biod-protos -lsystem_api-protos -lsystem_api-login_manager-protos -lsystem_api-chaps-protos -lprotobuf-lite -lpthread -lssl -lcrypto -lbrillo-395517 -lbase-395517 && { readelf -d lib/libchaps.so | grep SONAME ; nm -gD -f p lib/libchaps.so | cut -f1-2 -d' '; } > lib/libchaps.so.TOC; else flock linker.lock x86_64-cros-linux-gnu-clang++ -shared -Wl,-O1 -Wl,-O2 -Wl,--as-needed -fsanitize=address -fsanitize=alignment -fsanitize=shift -Wl,-z,relro -Wl,-z,noexecstack -Wl,-z,now -Wl,--as-needed --sysroot=/build/amd64-generic -pthread -o lib/libchaps.so -Wl,-soname=libchaps.so -Wl,--whole-archive obj/chaps/libchaps.attributes.o obj/chaps/libchaps.chaps.o obj/chaps/libchaps.chaps_proxy.o obj/chaps/libchaps.chaps_utility.o obj/chaps/libchaps.isolate_chromeos.o obj/chaps/libchaps.proto_conversion.o obj/chaps/libchaps.token_manager_client.o obj/chaps/libchaps-protos.a  -Wl,--no-whole-archive -ldbus-c++-1 -ldbus-1 -lsystem_api-power_manager-protos -lsystem_api-cryptohome-protos -lsystem_api-authpolicy-protos -lsystem_api-biod-protos -lsystem_api-protos -lsystem_api-login_manager-protos -lsystem_api-chaps-protos -lprotobuf-lite -lpthread -lssl -lcrypto -lbrillo-395517 -lbase-395517 && { readelf -d lib/libchaps.so | grep SONAME ; nm -gD -f p lib/libchaps.so | cut -f1-2 -d' '; } > lib/libchaps.so.tmp && if ! cmp -s lib/libchaps.so.tmp lib/libchaps.so.TOC; then mv lib/libchaps.so.tmp lib/libchaps.so.TOC ; fi; fi
chaps-0.0.1-r1973: /usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.25.51/ld.gold.real: error: /build/amd64-generic/usr/lib/../lib64/libsystem_api-chaps-protos.a(system_api-chaps-protos.ck_structs.pb.o): requires dynamic R_X86_64_PC32 reloc against '_ZSt9make_pairIRjbESt4pairINSt17__decay_and_stripIT_E6__typeENS2_IT0_E6__typeEEOS3_OS6_' which may overflow at runtime; recompile with -fPIC
chaps-0.0.1-r1973: clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
chaps-0.0.1-r1973: 
chaps-0.0.1-r1973: [3/5] LINK chapsd
chaps-0.0.1-r1973: [4/5] LINK chaps_client
chaps-0.0.1-r1973: ninja: build stopped: subcommand failed.
chaps-0.0.1-r1973: Traceback (most recent call last):
chaps-0.0.1-r1973:   File "/mnt/host/source/src/platform2/common-mk/platform2.py", line 333, in <module>
chaps-0.0.1-r1973:     main(sys.argv[1:])
chaps-0.0.1-r1973:   File "/mnt/host/source/src/platform2/common-mk/platform2.py", line 329, in main
chaps-0.0.1-r1973:     getattr(p2, options.action)(options.args)
chaps-0.0.1-r1973:   File "/mnt/host/source/src/platform2/common-mk/platform2.py", line 270, in compile
chaps-0.0.1-r1973:     % ' '.join(map(repr, ninja_args)))
chaps-0.0.1-r1973: AssertionError: Error running: 'ninja' '-C' '/build/amd64-generic/var/cache/portage/chromeos-base/chaps/out/Default' '-j' '32' 'all'
 
Cc: yunlian@chromium.org ejcaruso@chromium.org
+yunlian@, and +ejcaruso@ who seem to have touched libchaps recently.

Comment 2 by vapier@chromium.org, May 15 2017

Owner: benchan@chromium.org
there's a patch in flight for the chaps error

Ben has been cleaning up gmock/gtest deps lately
It seems like we build libweave-test, which depends on gmock, even outside USE=test. We could either make libweave-test conditionally built when USE=test, or add DEPEND=gmock unconditionally for libweave

Comment 4 by vapier@chromium.org, May 15 2017

for libweave, since its future is up in the air, i would just add gmock to the DEPEND and leave a note
Cc: -vitalyb...@chromium.org
Status: Assigned (was: Untriaged)

Comment 7 by derat@chromium.org, May 15 2017

Yeah, I was about to suggest that we drop the buffet and wifi_bootstrapping USE flags from all of the -generic overlays if they aren't actually needed. I think that that's the path by which we pull in the buffet package, which pulls in libweave.

Comment 8 by vapier@chromium.org, May 15 2017

the reason we still keep them in the generics is to help with test coverage.  the only devices using those otherwise are jetstream systems.  if we have a precq compile-only jetstream bot though, we should be fine with pulling them.
Project Member

Comment 9 by bugdroid1@chromium.org, May 16 2017

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

commit 09d0ae49978a1ba9b0609cce4acaa8abde0032a1
Author: Ben Chan <benchan@chromium.org>
Date: Tue May 16 07:09:21 2017

libweave: add back dev-cpp/gmock dependency

The libweave-test library target, which depends on gmock, is built
outside USE=test. This CL adds back the dev-cpp/gmock dependency, which
was removed by CL:505207.

BUG= chromium:722488 
TEST=`equery-$BOARD g libweave` includes dev-cpp/gmock.
TEST=Remote trybot runs.

Change-Id: Ia26681327969d64dc89171a5bbc6ea5a80df815f
Reviewed-on: https://chromium-review.googlesource.com/506409
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/09d0ae49978a1ba9b0609cce4acaa8abde0032a1/chromeos-base/libweave/libweave-9999.ebuild

Status: Fixed (was: Assigned)
Status: Assigned (was: Fixed)
vapier, libchaps is still failing to link. You mentioned earlier that there was a CL in flight. Can you please post a pointer, and assign to the owner?
Status: Fixed (was: Assigned)
Labels: VerifyIn-61

Comment 15 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment