Chrome simple chrome build failing with --board=kevin |
|||
Issue descriptionBuild fails on --board=kevin. Build succeeds for --board=link. $ cros chrome-sdk --board=kevin $ gn gen out_$SDK_BOARD/Release --args="$GN_ARGS" $ ninja -C out_$SDK_BOARD/Release -j1000 chrome chrome_sandbox nacl_helper FAILED: v8_snapshot/mksnapshot python "../../build/toolchain/gcc_link_wrapper.py" --output="v8_snapshot/mksnapshot" -- /work2/chrome/src/third_party/llvm-build/Release+Asserts/bin/clang++ -pie -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -fuse-ld=gold -B../../third_party/binutils/Linux_x64/Release/bin -Wl,--threads -Wl,--thread-count=4 -Wl,--icf=all -m32 -Wl,--gdb-index -nostdlib++ -Wl,-rpath-link=v8_snapshot -Wl,--disable-new-dtags -Wl,-O1 -Wl,--gc-sections -o "v8_snapshot/mksnapshot" -Wl,--start-group @"v8_snapshot/mksnapshot.rsp" -Wl,--end-group -ldl -lpthread -lrt ../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: cannot open crtbeginS.o: No such file or directory ../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: cannot open crtendS.o: No such file or directory ../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: cannot find -lgcc_s ../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: cannot find -lgcc ../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: cannot find -lgcc_s ../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: cannot find -lgcc ../../v8/src/date.h:57: error: undefined reference to '__divdi3' ../../v8/src/date.h:57: error: undefined reference to '__divdi3' ../../v8/src/date.h:57: error: undefined reference to '__divdi3' ../../v8/src/date.h:57: error: undefined reference to '__divdi3' ../../v8/src/fixed-dtoa.cc:336: error: undefined reference to '__udivdi3' ../../v8/src/fixed-dtoa.cc:337: error: undefined reference to '__umoddi3' ../../v8/src/fixed-dtoa.cc:340: error: undefined reference to '__udivdi3' ../../v8/src/fixed-dtoa.cc:341: error: undefined reference to '__umoddi3' ../../v8/src/fixed-dtoa.cc:140: error: undefined reference to '__umoddi3' ../../v8/src/fixed-dtoa.cc:140: error: undefined reference to '__udivdi3' ../../v8/src/fixed-dtoa.cc:142: error: undefined reference to '__umoddi3' ../../v8/src/fixed-dtoa.cc:143: error: undefined reference to '__udivdi3' ../../v8/src/wasm/wasm-external-refs.cc:178: error: undefined reference to '__moddi3' ../../v8/src/wasm/wasm-interpreter.cc:275: error: undefined reference to '__moddi3' ../../buildtools/third_party/libc++/trunk/src/hash.cpp:159: error: undefined reference to '_Unwind_Resume' ../../buildtools/third_party/libc++/trunk/include/istream:0: error: undefined reference to '_Unwind_Resume' ../../buildtools/third_party/libc++/trunk/include/__std_stream:76: error: undefined reference to '_Unwind_Resume' ../../buildtools/third_party/libc++/trunk/include/__std_stream:76: error: undefined reference to '_Unwind_Resume' ../../buildtools/third_party/libc++/trunk/src/iostream.cpp:76: error: undefined reference to '__dso_handle' ../../buildtools/third_party/libc++/trunk/src/ios.cpp:71: error: undefined reference to '__dso_handle' ../../buildtools/third_party/libc++abi/trunk/src/cxa_exception.cpp:223: error: undefined reference to '_Unwind_RaiseException' ../../buildtools/third_party/libc++abi/trunk/src/cxa_exception.cpp:493: error: undefined reference to '_Unwind_DeleteException' ../../buildtools/third_party/libc++abi/trunk/src/cxa_exception.cpp:551: error: undefined reference to '_Unwind_RaiseException' ../../buildtools/third_party/libc++abi/trunk/src/cxa_personality.cpp:526: error: undefined reference to '_Unwind_SetGR' ../../buildtools/third_party/libc++abi/trunk/src/cxa_personality.cpp:528: error: undefined reference to '_Unwind_SetGR' ../../buildtools/third_party/libc++abi/trunk/src/cxa_personality.cpp:526: error: undefined reference to '_Unwind_SetGR' ../../buildtools/third_party/libc++abi/trunk/src/cxa_personality.cpp:528: error: undefined reference to '_Unwind_SetGR' ../../buildtools/third_party/libc++abi/trunk/src/cxa_personality.cpp:530: error: undefined reference to '_Unwind_SetIP' ../../buildtools/third_party/libc++abi/trunk/src/cxa_personality.cpp:596: error: undefined reference to '_Unwind_GetLanguageSpecificData' ../../buildtools/third_party/libc++abi/trunk/src/cxa_personality.cpp:606: error: undefined reference to '_Unwind_GetIP' ../../buildtools/third_party/libc++abi/trunk/src/cxa_personality.cpp:609: error: undefined reference to '_Unwind_GetRegionStart' ../../v8/src/base/platform/time.cc:381: error: undefined reference to '__moddi3' ../../third_party/icu/source/i18n/digitlst.cpp:246: error: undefined reference to '__moddi3' /usr/lib32/libc_nonshared.a(atexit.oS):function atexit: error: undefined reference to '__dso_handle' ../../buildtools/third_party/libc++/trunk/src/locale.cpp:4520: error: undefined reference to '__dso_handle' clang: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. $ /work2/chrome/src/third_party/llvm-build/Release+Asserts/bin/clang++ -v -m32 clang version 6.0.0 (trunk 310694) Target: i386-unknown-linux-gnu Thread model: posix InstalledDir: /work2/chrome/src/third_party/llvm-build/Release+Asserts/bin Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6 Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/6.3.0 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.3.0
,
Aug 23 2017
Works for me, however, I have different gcc libraries. Where is the gcc-6.3 from? ./third_party/llvm-build/Release+Asserts/bin/clang++ -v -m32clang version 6.0.0 (trunk 310694) Target: i386-unknown-linux-gnu Thread model: posix InstalledDir: /usr/local/google/home/yunlian/chrome/src/./third_party/llvm-build/Release+Asserts/bin Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8 Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.4 Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9 Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.3 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.3 Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Candidate multilib: x32;@mx32 Selected multilib: 32;@m32
,
Aug 23 2017
Ah, I forgot to mention I'm using glinux.
,
Aug 23 2017
Can you install g++-multilib using apt-get? I hope that should fix the problem. If that does fix the problem, Please file a bug against gLinux so that g++ mutlilib is installed as default.
,
Aug 23 2017
Hmm. This succeeded for me locally with a ToT build from this morning Can you try the following and report the output? cros chrome-sdk --log-level=info --board=kevin --clear-sdk-cache You should see the following output: 11:33:51: INFO: RunCommand: /usr/local/google/home/stevenjb/Work/chrome/.cros_cache/common/gsutil_4.19.tar.gz/gsutil/gsutil -o 'Boto:num_retries=10' cat gs://chromeos-image-archive/kevin-release/LATEST-9864.0.0 11:33:53: INFO: SDK: Fetching gs://chromeos-image-archive/kevin-release/R62-9864.0.0/environment_chromeos-base_chromeos-chrome.tar.xz 11:33:54: INFO: SDK: Fetching gs://chromeos-image-archive/kevin-release/R62-9864.0.0/sysroot_chromeos-base_chromeos-chrome.tar.xz 11:34:09: INFO: SDK: Fetching gs://chromiumos-sdk/2017/08/armv7a-cros-linux-gnueabi-2017.08.17.102013.tar.xz
,
Aug 23 2017
Ah, nevermind, I suspect that gLinux may be the problem.
,
Aug 23 2017
Looks like installing g++-multilib did the trick, thanks. Filed a bug against gLinux at https://b.corp.google.com/u/0/issues/64978243.
,
Jan 22 2018
|
|||
►
Sign in to add a comment |
|||
Comment 1 by yunlian@chromium.org
, Aug 23 2017