New issue
Advanced search Search tips

Issue 794486 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

android_compile_mips_dbg on tryserver.chromium.android is broken

Project Member Reported by rsesek@chromium.org, Dec 13 2017

Issue description

android_compile_mips_dbg on tryserver.chromium.android consistently fails to compile-without-patch: 

python "../../build/toolchain/gcc_solink_wrapper.py" --readelf="../../third_party/android_tools/ndk/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/mipsel-linux-android-readelf" --nm="../../third_party/android_tools/ndk/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/mipsel-linux-android-nm" --strip=../../third_party/eu-strip/bin/eu-strip --sofile="./lib.unstripped/libservice_manager_mojom_constants_shared.cr.so" --tocfile="./libservice_manager_mojom_constants_shared.cr.so.TOC" --output="./libservice_manager_mojom_constants_shared.cr.so"  -- ../../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=../../third_party/android_tools/ndk/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64 -Wl,--no-undefined -Wl,--exclude-libs=libgcc.a -Wl,--exclude-libs=libc++_static.a -Wl,--exclude-libs=libvpx_assembly_arm.a --target=mipsel-linux-android --target=mipsel-linux-android -Werror -Wl,--strip-debug -nostdlib --sysroot=../../third_party/android_tools/ndk/platforms/android-16/arch-mips -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 -L../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libs/mips -o "./lib.unstripped/libservice_manager_mojom_constants_shared.cr.so" -Wl,-soname="libservice_manager_mojom_constants_shared.cr.so" @"./libservice_manager_mojom_constants_shared.cr.so.rsp"
../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libs/mips/libc++abi.a(cxa_new_delete.o): In function `operator new(unsigned int)':
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/cxa_new_delete.cpp:44: undefined reference to `__wrap_malloc'
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/cxa_new_delete.cpp:44: undefined reference to `__wrap_malloc'
../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libs/mips/libc++abi.a(cxa_new_delete.o): In function `operator delete(void*)':
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/cxa_new_delete.cpp:144: undefined reference to `__wrap_free'
../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libs/mips/libc++abi.a(cxa_exception.o): In function `__cxxabiv1::do_malloc(unsigned int)':
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/cxa_exception.cpp:111: undefined reference to `__wrap_malloc'
../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libs/mips/libc++abi.a(cxa_exception.o): In function `__cxxabiv1::do_free(void*)':
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/cxa_exception.cpp:118: undefined reference to `__wrap_free'
../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libs/mips/libc++abi.a(cxa_exception_storage.o): In function `__cxa_get_globals':
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/cxa_exception_storage.cpp:80: undefined reference to `__wrap_calloc'
../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libs/mips/libc++abi.a(cxa_exception_storage.o): In function `__cxxabiv1::(anonymous namespace)::destruct_(void*)':
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/cxa_exception_storage.cpp:61: undefined reference to `__wrap_free'
../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libs/mips/libc++abi.a(cxa_demangle.o): In function `__cxxabiv1::(anonymous namespace)::arena<4096u>::allocate(unsigned int)':
/usr/local/google/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/cxa_demangle.cpp:4745: undefined reference to `__wrap_malloc'

https://ci.chromium.org/buildbot/tryserver.chromium.android/android_compile_mips_dbg/95

I think this bot has always been broken, but before https://chromium-review.googlesource.com/c/chromium/src/+/797439, analyze caused nothing to actually get compiled, so earlier builds are green because they didn't do anything.

The downstream Android MIPS bot doesn't have this issue, so I'm not sure if the bot is misconfigured: https://ci.chromium.org/buildbot/chromium.android/Android%20MIPS%20Builder%20%28dbg%29/
 

Comment 1 by rsesek@chromium.org, Dec 13 2017

Components: -Infra Build
Seems like a build issue actually: https://chromium-review.googlesource.com/c/chromium/src/+/823905

Comment 2 by rsesek@chromium.org, Dec 13 2017

Labels: -Restrict-View-Google
Project Member

Comment 3 by bugdroid1@chromium.org, Dec 19 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/71279763dbdd0d8d3a3cb1fb038587ab752ace47

commit 71279763dbdd0d8d3a3cb1fb038587ab752ace47
Author: Gordana Cmiljanovic <gordana.cmiljanovic@mips.com>
Date: Tue Dec 19 15:18:23 2017

[MIPS] Fix ld.bfd linker issue for mipsel

Adding -Wl,--start-group, -Wl,--end-group so that ld.bfd
can resolve library dependencies in case of Android
component build for mipsel.

Bug:  794486 
Change-Id: I9ce1867b614aea51382637bc59aa7c7b8c2adbde
Reviewed-on: https://chromium-review.googlesource.com/823905
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#525039}
[modify] https://crrev.com/71279763dbdd0d8d3a3cb1fb038587ab752ace47/build/toolchain/gcc_toolchain.gni

Comment 4 by rsesek@chromium.org, Dec 20 2017

Status: Fixed (was: Untriaged)

Sign in to add a comment