New issue
Advanced search Search tips

Issue 840462 link

Starred by 3 users

Issue metadata

Status: Unconfirmed
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Build of crashpad_tests for android fails when using gold linker

Reported by djordje....@mips.com, May 7 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Steps to reproduce the problem:
1. Fetch chromium source
2. gn gen out/Release --args=" target_os=\"android\" target_cpu=\"arm\" is_debug=false use_gold=true use_lld=false"
3. ninja -C out/Release crashpad_tests

What is the expected behavior?

What went wrong?
Build fails with following message from gold:
warning: Cannot export local symbol 'ElfImageReaderTestExportedSymbol'

Did this work before? N/A 

Chrome version: <Copy from: 'about:version'>  Channel: n/a
OS Version: 
Flash Version: Shockwave Flash 29.0 r0

To bypass this problem, we use the patch attached here.

Warning seems to be caused by following two conflicting linker options which are given to crashpad_tests target:
    -Wl,--dynamic-list,../../third_party/crashpad/crashpad/snapshot/elf/test_exported_symbols.sym
    -Wl,--version-script=.../chromium/src/build/android/android_only_jni_exports.lst

This conflicting scenario doesn't cause warning in lld.
 
chromium_crashpad_gold_issue_bypass.patch
513 bytes Download
Components: Internals>CrashReporting

Sign in to add a comment