New issue
Advanced search Search tips

Issue 921653 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Jan 14
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug
Build-Toolchain



Sign in to add a comment

ld.gold.real: error: cannot find -lc++

Project Member Reported by xiaochu@chromium.org, Jan 14

Issue description

After a fresh repo sync and running 'USE="asan fuzzer" ./build_packages --board=kefka --skip_chroot_upgrade update_engine', I get following errors:

libchrome-462023-r1: [274/284] SOLINK libbase-core-462023.so
libchrome-462023-r1: FAILED: lib/libbase-core-462023.so 
libchrome-462023-r1: x86_64-cros-linux-gnu-clang++ -shared -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/kefka -o ./lib/libbase-core-462023.so -Wl,-soname=libbase-core-462023.so @lib/libbase-core-462023.so.rsp
libchrome-462023-r1: /usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0/ld.gold.real: error: cannot find -lc++
libchrome-462023-r1: clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
libchrome-462023-r1: ninja: build stopped: subcommand failed.
libchrome-462023-r1: platform2.py: Unhandled exception:
libchrome-462023-r1: Traceback (most recent call last):
libchrome-462023-r1:   File "/build/kefka/tmp/portage/chromeos-base/libchrome-462023-r1/work/libchrome-462023/platform2/common-mk/platform2.py", line 449, in <module>
libchrome-462023-r1:     commandline.ScriptWrapperMain(lambda _: main)
libchrome-462023-r1:   File "/usr/lib64/python2.7/site-packages/chromite/lib/commandline.py", line 912, in ScriptWrapperMain
libchrome-462023-r1:     ret = target(argv[1:])
libchrome-462023-r1:   File "/build/kefka/tmp/portage/chromeos-base/libchrome-462023-r1/work/libchrome-462023/platform2/common-mk/platform2.py", line 445, in main
libchrome-462023-r1:     getattr(p2, options.action)(options.args)
libchrome-462023-r1:   File "/build/kefka/tmp/portage/chromeos-base/libchrome-462023-r1/work/libchrome-462023/platform2/common-mk/platform2.py", line 387, in compile
libchrome-462023-r1:     cros_build_lib.RunCommand(ninja_args)
libchrome-462023-r1:   File "/usr/lib64/python2.7/site-packages/chromite/lib/cros_build_lib.py", line 646, in RunCommand
libchrome-462023-r1:     raise RunCommandError(msg, cmd_result)
libchrome-462023-r1: chromite.lib.cros_build_lib.RunCommandError: return code: 1; command: ninja -C /build/kefka/tmp/portage/chromeos-base/libchrome-462023-r1/work/build/out/Default -j 56 libchrome:all
libchrome-462023-r1: cmd=['ninja', '-C', '/build/kefka/tmp/portage/chromeos-base/libchrome-462023-r1/work/build/out/Default', '-j', '56', 'libchrome:all']
libchrome-462023-r1:  * ERROR: chromeos-base/libchrome-462023-r1::chromiumos failed (compile phase):
libchrome-462023-r1:  *   (no error message)
libchrome-462023-r1:  * 

 
Hmm, libc++ seems to be missing in the board which is bizarre. 
Can you run setup_board once again before running build_packages? 

$ ./setup_board --board=kefka ---force
Status: Fixed (was: Untriaged)
thanks! that fixed my problem.

Sign in to add a comment