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

Issue 817573 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug
Build-Toolchain



Sign in to add a comment

Kevin chrome build broken on ToT

Project Member Reported by khorimoto@chromium.org, Feb 28 2018

Issue description

Adding sheriffs/gardeners to CC.

This is a local build:

(sdk kevin R66-10445.0.0) > ninja -C out_kevin/Release -j500 -l 10 chrome chrome_sandbox
ninja: Entering directory `out_kevin/Release'
[5/7037] LINK v8_snapshot/mksnapshot
FAILED: v8_snapshot/mksnapshot 
python "../../build/toolchain/gcc_link_wrapper.py" --output="v8_snapshot/mksnapshot" -- /usr/local/google/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang++ -pie -Wl,--build-id=sha1 -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 -Wl,--fatal-warnings -nostdlib++ -Wl,-rpath-link=v8_snapshot -Wl,--disable-new-dtags -Wl,-O2 -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
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/ios.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/iostream.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
../../third_party/binutils/Linux_x64/Release/bin/ld.gold: error: v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o: relocation R_386_GOTOFF against undefined symbol __dso_handle cannot be used when making a shared object
v8_snapshot/obj/v8/v8_base/asm-js.o:asm-js.cc:function v8::internal::AsmJsCompilationJob::FinalizeJobImpl(v8::internal::Isolate*): error: undefined reference to '__divdi3'
v8_snapshot/obj/v8/v8_base/builtins-date.o:builtins-date.cc:function v8::internal::Builtin_Impl_DatePrototypeSetDate(v8::internal::BuiltinArguments, v8::internal::Isolate*): error: undefined reference to '__divdi3'
v8_snapshot/obj/v8/v8_base/builtins-date.o:builtins-date.cc:function v8::internal::Builtin_Impl_DatePrototypeSetFullYear(v8::internal::BuiltinArguments, v8::internal::Isolate*): error: undefined reference to '__divdi3'
v8_snapshot/obj/v8/v8_base/builtins-date.o:builtins-date.cc:function v8::internal::Builtin_Impl_DatePrototypeSetHours(v8::internal::BuiltinArguments, v8::internal::Isolate*): error: undefined reference to '__divdi3'
../../v8/src/date.cc:1281: error: undefined reference to '__udivdi3'
v8_snapshot/obj/v8/v8_base/fixed-dtoa.o:fixed-dtoa.cc:function v8::internal::FastFixedDtoa(double, int, v8::internal::Vector<char>, int*, int*): error: undefined reference to '__udivdi3'
v8_snapshot/obj/v8/v8_base/fixed-dtoa.o:fixed-dtoa.cc:function v8::internal::FastFixedDtoa(double, int, v8::internal::Vector<char>, int*, int*): error: undefined reference to '__udivdi3'
v8_snapshot/obj/v8/v8_base/fixed-dtoa.o:fixed-dtoa.cc:function v8::internal::FastFixedDtoa(double, int, v8::internal::Vector<char>, int*, int*): error: undefined reference to '__udivdi3'
v8_snapshot/obj/v8/v8_base/fixed-dtoa.o:fixed-dtoa.cc:function v8::internal::FastFixedDtoa(double, int, v8::internal::Vector<char>, int*, int*): error: undefined reference to '__umoddi3'
v8_snapshot/obj/v8/v8_base/fixed-dtoa.o:fixed-dtoa.cc:function v8::internal::FillDigits64(unsigned long long, v8::internal::Vector<char>, int*): error: undefined reference to '__umoddi3'
v8_snapshot/obj/v8/v8_base/wasm-external-refs.o:wasm-external-refs.cc:function v8::internal::wasm::int64_mod_wrapper(long long*, long long*): error: undefined reference to '__moddi3'
v8_snapshot/obj/v8/v8_base/wasm-external-refs.o:wasm-external-refs.cc:function v8::internal::wasm::uint64_mod_wrapper(unsigned long long*, unsigned long long*): error: undefined reference to '__umoddi3'
../../v8/src/wasm/wasm-interpreter.cc:237348: error: undefined reference to '__umoddi3'
v8_snapshot/obj/v8/v8_base/wasm-interpreter.o:wasm-interpreter.cc:function v8::internal::wasm::(anonymous namespace)::ThreadImpl::Execute(v8::internal::wasm::(anonymous namespace)::InterpreterCode*, unsigned int, int): error: undefined reference to '__moddi3'
v8_snapshot/obj/buildtools/third_party/libc++/libc++/hash.o:hash.cpp:function std::__1::__next_prime(unsigned int): error: undefined reference to '_Unwind_Resume'
v8_snapshot/obj/buildtools/third_party/libc++/libc++/iostream.o:iostream.cpp:function std::__1::ios_base::Init::Init(): error: undefined reference to '_Unwind_Resume'
v8_snapshot/obj/buildtools/third_party/libc++/libc++/iostream.o:iostream.cpp:function std::__1::__stdoutbuf<char>::__stdoutbuf(_IO_FILE*, __mbstate_t*): error: undefined reference to '_Unwind_Resume'
v8_snapshot/obj/buildtools/third_party/libc++/libc++/iostream.o:iostream.cpp:function std::__1::__stdoutbuf<wchar_t>::__stdoutbuf(_IO_FILE*, __mbstate_t*): error: undefined reference to '_Unwind_Resume'
v8_snapshot/obj/buildtools/third_party/libc++/libc++/iostream.o:iostream.cpp:function _GLOBAL__sub_I_iostream.cpp: error: undefined reference to '__dso_handle'
v8_snapshot/obj/buildtools/third_party/libc++/libc++/ios.o:ios.cpp:function std::__1::ios_base::clear(unsigned int): error: undefined reference to '__dso_handle'
v8_snapshot/obj/buildtools/third_party/libc++abi/libc++abi/cxa_exception.o:cxa_exception.cpp:function __cxa_throw: error: undefined reference to '_Unwind_RaiseException'
v8_snapshot/obj/buildtools/third_party/libc++abi/libc++abi/cxa_exception.o:cxa_exception.cpp:function __cxa_end_catch: error: undefined reference to '_Unwind_DeleteException'
v8_snapshot/obj/buildtools/third_party/libc++abi/libc++abi/cxa_exception.o:cxa_exception.cpp:function __cxa_rethrow: error: undefined reference to '_Unwind_RaiseException'
v8_snapshot/obj/buildtools/third_party/libc++abi/libc++abi/cxa_personality.o:cxa_personality.cpp:function __gxx_personality_v0: error: undefined reference to '_Unwind_SetGR'
v8_snapshot/obj/buildtools/third_party/libc++abi/libc++abi/cxa_personality.o:cxa_personality.cpp:function __gxx_personality_v0: error: undefined reference to '_Unwind_SetGR'
v8_snapshot/obj/buildtools/third_party/libc++abi/libc++abi/cxa_personality.o:cxa_personality.cpp:function __gxx_personality_v0: error: undefined reference to '_Unwind_SetGR'
v8_snapshot/obj/buildtools/third_party/libc++abi/libc++abi/cxa_personality.o:cxa_personality.cpp:function __gxx_personality_v0: error: undefined reference to '_Unwind_SetGR'
v8_snapshot/obj/buildtools/third_party/libc++abi/libc++abi/cxa_personality.o:cxa_personality.cpp:function __gxx_personality_v0: error: undefined reference to '_Unwind_SetIP'
../../buildtools/third_party/libc++abi/trunk/src/cxa_personality.cpp:7429: error: undefined reference to '_Unwind_GetLanguageSpecificData'
v8_snapshot/obj/buildtools/third_party/libc++abi/libc++abi/cxa_personality.o:cxa_personality.cpp:function __cxxabiv1::scan_eh_tab(__cxxabiv1::(anonymous namespace)::scan_results&, _Unwind_Action, bool, _Unwind_Exception*, _Unwind_Context*): error: undefined reference to '_Unwind_GetIP'
v8_snapshot/obj/buildtools/third_party/libc++abi/libc++abi/cxa_personality.o:cxa_personality.cpp:function __cxxabiv1::scan_eh_tab(__cxxabiv1::(anonymous namespace)::scan_results&, _Unwind_Action, bool, _Unwind_Exception*, _Unwind_Context*): error: undefined reference to '_Unwind_GetRegionStart'
v8_snapshot/obj/third_party/icu/libicui18n.a(digitlst.o):digitlst.cpp:function icu_60::DigitList::set(int): error: undefined reference to '__moddi3'
v8_snapshot/obj/third_party/icu/libicui18n.a(digitlst.o):digitlst.cpp:function icu_60::DigitList::set(long long): error: undefined reference to '__moddi3'
/usr/lib/i386-linux-gnu/libc_nonshared.a(atexit.oS):function atexit: error: undefined reference to '__dso_handle'
v8_snapshot/obj/buildtools/third_party/libc++/libc++/locale.o:locale.cpp:function std::__1::__time_get_c_storage<char>::__weeks() const: 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.

 
Labels: OS-Chrome
BTW, my args are here:

use_ozone = true
arm_arch = "armv8-a+crc"
arm_float_abi = "hard"
use_vaapi = false
ozone_platform_gbm = true
ozone_platform = "gbm"
custom_toolchain = "//build/toolchain/cros:target"
cros_v8_snapshot_cc = "/usr/local/google/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang"
cros_target_cxx = "armv7a-cros-linux-gnueabi-clang++ -B/usr/local/google/chromium/.cros_cache/chrome-sdk/tarballs/kevin+10445.0.0+target_toolchain/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/binutils-bin/2.27.0-gold -Wno-unknown-warning-option"
use_system_libsync = true
use_v4lplugin = true
use_lld = false
cros_v8_snapshot_ar = "/usr/local/google/chromium/src/third_party/binutils/Linux_x64/Release/bin/ar"
cros_host_cc = "/usr/local/google/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang"
use_cups = true
use_system_harfbuzz = true
arm_use_neon = true
cros_target_extra_cppflags = ""
use_evdev_gestures = true
use_goma = true
cros_host_ar = "/usr/local/google/chromium/src/third_party/binutils/Linux_x64/Release/bin/ar"
cros_target_extra_cxxflags = "-pipe -march=armv8-a+crc -mtune=cortex-a57.cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -fno-split-dwarf-inlining -fdebug-info-for-profiling -D__google_stl_debug_vector=1 -Wno-unknown-warning-option -stdlib=libc++ -Wno-inline-asm"
cros_v8_snapshot_extra_cxxflags = " -Wno-unknown-warning-option"
target_sysroot = "/usr/local/google/chromium/.cros_cache/chrome-sdk/tarballs/kevin+10445.0.0+sysroot_chromeos-base_chromeos-chrome.tar.xz"
clang_use_chrome_plugins = false
symbol_level = 2 
cros_host_extra_cppflags = ""
cros_host_is_clang = true
cros_target_extra_cflags = "-pipe -march=armv8-a+crc -mtune=cortex-a57.cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard -fno-split-dwarf-inlining -fdebug-info-for-profiling -Wno-unknown-warning-option -Wno-inline-asm"
cros_v8_snapshot_extra_cflags = " -Wno-unknown-warning-option"
system_libdir = "lib"
use_cras = true
use_jumbo_build = false
blink_symbol_level = -1
cros_v8_snapshot_cxx = "/usr/local/google/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang++"
is_clang = true
cros_v8_snapshot_is_clang = true
use_v4l2_codec = true
cros_host_extra_cflags = " -Wno-unknown-warning-option"
host_toolchain = "//build/toolchain/cros:host"
use_xkbcommon = true
treat_warnings_as_errors = false
icu_use_data_file = true
use_system_libdrm = true
cros_v8_snapshot_extra_ldflags = ""
enable_nacl = true
linux_use_bundled_binutils = true
cros_v8_snapshot_ld = "/usr/local/google/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang++"
enable_remoting = true
ozone_auto_platforms = false
cros_target_ld = "armv7a-cros-linux-gnueabi-clang++ -B/usr/local/google/chromium/.cros_cache/chrome-sdk/tarballs/kevin+10445.0.0+target_toolchain/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/binutils-bin/2.27.0-gold -Wno-unknown-warning-option"
target_os = "chromeos"
use_system_minigbm = true
cros_host_extra_cxxflags = " -Wno-unknown-warning-option"
cros_target_ar = "llvm-ar"
use_debug_fission = true
cros_host_extra_ldflags = ""
target_cpu = "arm"
remove_webcore_debug_symbols = false
v8_snapshot_toolchain = "//build/toolchain/cros:v8_snapshot"
host_pkg_config = "pkg-config"
is_asan = false
is_debug = false
cros_host_cxx = "/usr/local/google/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang++"
cros_host_ld = "/usr/local/google/chromium/src/third_party/llvm-build/Release+Asserts/bin/clang++"
cros_v8_snapshot_extra_cppflags = ""
use_system_freetype = true
goma_dir = "/usr/local/google/chromium/.cros_cache/common/goma+2"
cros_target_cc = "armv7a-cros-linux-gnueabi-clang -B/usr/local/google/chromium/.cros_cache/chrome-sdk/tarballs/kevin+10445.0.0+target_toolchain/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/binutils-bin/2.27.0-gold -Wno-unknown-warning-option"
cros_target_extra_ldflags = "-Wl,-O1 -Wl,-O2 -Wl,--as-needed -stdlib=libc++ "
use_thin_lto = false
I was able to reproduce this. Did you try any other boards?
I tried Eve, and it compiled successfully. I have not tried other boards besides that.
Owner: llozano@chromium.org
Summary: Kevin chrome build broken on ToT (was: Kevin build broken on ToT)
Might be a cross-compiler issue? Assigning to llozano from toolchain team.
Components: Tools>ChromeOS-Toolchain
it looks like cross compilation isnt happening somewhere like it's using the x86 linker

notice the mention of this linker -- which is for x86_64
../../third_party/binutils/Linux_x64/Release/bin/ld.gold

maybe the v8 build code is broken somehow?

Comment 8 by osh...@chromium.org, Feb 28 2018

Cc: erosky@chromium.org
So it's arm specific. I rolled chromite today and I'm wondering if it's related.
I'm currently gardening from home and don't have arm machine. 

Evan, can you test before/after chromite roll?


To #7, The v8_snapshot/mksnapshot is a host binary so it is right to use x86 linker.
this is your local build right and not a bot that's failing ?

have you run build/install-build-deps.sh ?
Actually, I don't need a device. Let me try...
I think you are missing 32-bit gcc libaries.

"sudo apt-get install g++-multilib" should fix the problem. I think  build/install-build-deps.sh does it automatically.
Did you upgrade to glinux (rodete) recently? If so, please see xiyuan@'s PSA (Rodete chromium setup)
Status: WontFix (was: Untriaged)
Ah, I see. Yes, I have recently upgraded to Rodete. Running that script fixed the problem! Thank you :)

Sign in to add a comment