Linking failed when building for android
Reported by
eltonk...@gmail.com,
Apr 18 2018
|
|
Issue descriptionSteps to reproduce the problem: 1. Building using Android instructions specified at https://chromium.googlesource.com/chromium/src/+/master/docs/android_build_instructions.md 2. Code compiles fine 3. Linking fails What is the expected behavior? What went wrong? ninja -C out/Default chrome_modern_public_apk ninja: Entering directory `out/Default' [15/273] SOLINK ./libblink_core.cr.so FAILED: libblink_core.cr.so libblink_core.cr.so.TOC lib.unstripped/libblink_core.cr.so python "../../src/build/toolchain/gcc_solink_wrapper.py" --readelf="../../src/third_party/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-readelf" --nm="../../src/third_party/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-nm" --strip=../../src/third_party/eu-strip/bin/eu-strip --sofile="./lib.unstripped/libblink_core.cr.so" --tocfile="./libblink_core.cr.so.TOC" --output="./libblink_core.cr.so" -- ../../src/third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--as-needed --gcc-toolchain=../../src/third_party/android_ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -fuse-ld=lld -Wl,--icf=all -Wl,--no-undefined -Wl,--exclude-libs=libgcc.a -Wl,--exclude-libs=libc++_static.a -Wl,--exclude-libs=libvpx_assembly_arm.a --target=arm-linux-androideabi -Werror -nostdlib -Wl,--warn-shared-textrel --sysroot=../../src/third_party/android_ndk/platforms/android-16/arch-arm -Wl,--gdb-index -Wl,-wrap,calloc -Wl,-wrap,free -Wl,-wrap,malloc -Wl,-wrap,memalign -Wl,-wrap,posix_memalign -Wl,-wrap,pvalloc -Wl,-wrap,realloc -Wl,-wrap,valloc -Wl,--dynamic-linker,/system/bin/linker -L../../src/third_party/android_ndk/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a -o "./lib.unstripped/libblink_core.cr.so" -Wl,-soname="libblink_core.cr.so" @"./libblink_core.cr.so.rsp" /media/esk/Data/Engineering/Chromium/out/Default/../../src/third_party/llvm-build/Release+Asserts/bin/ld.lld: error: undefined symbol: blink::mojom::blink::InsecureInputServiceProxy::PasswordFieldVisibleInInsecureContext() >>> referenced by document.cc:4918 (../../src/third_party/blink/renderer/core/dom/document.cc:4918) >>> obj/third_party/blink/renderer/core/dom/dom/document.o:(blink::Document::SendSensitiveInputVisibilityInternal()) /media/esk/Data/Engineering/Chromium/out/Default/../../src/third_party/llvm-build/Release+Asserts/bin/ld.lld: error: undefined symbol: blink::mojom::blink::InsecureInputServiceProxy::AllPasswordFieldsInInsecureContextInvisible() >>> referenced by document.cc:4921 (../../src/third_party/blink/renderer/core/dom/document.cc:4921) >>> obj/third_party/blink/renderer/core/dom/dom/document.o:(blink::Document::SendSensitiveInputVisibilityInternal()) /media/esk/Data/Engineering/Chromium/out/Default/../../src/third_party/llvm-build/Release+Asserts/bin/ld.lld: error: undefined symbol: blink::mojom::blink::InsecureInputService::Name_ >>> referenced by interface_provider.h:0 (../../src/services/service_manager/public/cpp/interface_provider.h:0) >>> obj/third_party/blink/renderer/core/dom/dom/document.o:(void service_manager::InterfaceProvider::GetInterface<blink::mojom::blink::InsecureInputService>(mojo::InterfaceRequest<blink::mojom::blink::InsecureInputService>)) /media/esk/Data/Engineering/Chromium/out/Default/../../src/third_party/llvm-build/Release+Asserts/bin/ld.lld: error: undefined symbol: blink::mojom::blink::InsecureInputServiceProxy::DidEditFieldInInsecureContext() >>> referenced by document.cc:4932 (../../src/third_party/blink/renderer/core/dom/document.cc:4932) >>> obj/third_party/blink/renderer/core/dom/dom/document.o:(blink::Document::SendDidEditFieldInInsecureContext()) /media/esk/Data/Engineering/Chromium/out/Default/../../src/third_party/llvm-build/Release+Asserts/bin/ld.lld: error: undefined symbol: blink::mojom::blink::InsecureInputServiceProxy::InsecureInputServiceProxy(mojo::MessageReceiverWithResponder*) >>> referenced by memory:3026 (../../src/third_party/android_ndk/sources/cxx-stl/llvm-libc++/include/memory:3026) >>> obj/third_party/blink/renderer/core/dom/dom/document.o:(mojo::internal::InterfacePtrState<blink::mojom::blink::InsecureInputService>::ConfigureProxyIfNecessary()) /media/esk/Data/Engineering/Chromium/out/Default/../../src/third_party/llvm-build/Release+Asserts/bin/ld.lld: error: undefined symbol: blink::mojom::blink::InsecureInputService::Name_ >>> referenced by interface_ptr_state.h:0 (../../src/mojo/public/cpp/bindings/lib/interface_ptr_state.h:0) >>> obj/third_party/blink/renderer/core/dom/dom/document.o:(mojo::internal::InterfacePtrState<blink::mojom::blink::InsecureInputService>::ConfigureProxyIfNecessary()) clang: error: linker command failed with exit code 1 (use -v to see invocation) Did this work before? N/A Chrome version: <Copy from: 'about:version'> Channel: n/a OS Version: OS X 10.13.3 Flash Version: |
|
►
Sign in to add a comment |
|
Comment 1 by lushnikov@chromium.org
, Apr 18 2018