New issue
Advanced search Search tips

Issue 674267 link

Starred by 1 user

Issue metadata

Status: Verified
Owner: ----
Closed: Dec 2016
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

ebuild glibc 2.19 currently fails

Reported by rich...@sentimentron.co.uk, Dec 14 2016

Issue description

Chrome Version: 57.0.2950.0
Chrome OS Version: 9079.0 developer-build       
Chrome OS Platform: daisy
Network info: 

Please specify Cr-* of the system to which this bug/feature applies (add
the label below).
Build-Toolchain

I've noticed that it used to be possible to run `ebuild-daisy /mnt/host/source/src/third_party/chromiumos-overlay/sys-libs/glibc/glibc-2.19-r13.ebuild clean compile` to get a freshly-compiled glibc, but this currently fails to build due to an autoconf error (see attached build.log):

checking version of armv7a-cros-linux-gnueabi-clang  -B/build/veyron_jerry/tmp/portage/sys-libs/glibc-2.19-r13/temp/bfd-linker... 3.9.0, bad

The issue stems from the ./configure script finding Clang instead of GCC during setup, and interpreting the Clang version as an old version of GCC. Bisecting the tree, I found the following commit that starts causing the issue:

commit 980af0a2ccdd3489edf5cb59dc1998eb32066ee8
Author: Yunlian Jiang <yunlian@google.com>
Date:   Thu Nov 17 13:01:31 2016 -0800
    profile: set the default compiler to LLVM for arm-boards.

    This sets the default compiler to LLVM for arm-boards.
    We have finished the performance test and correctness test
    on different types of amd64 boards.
    BUG= chromium:537368 
    TEST=cros_sdk --boostrap
         cbuild_board peppy-release
 
    Change-Id: I2502d80d42bc408a42dae53f6a18c5f63d9f48a7
    Reviewed-on: https://chromium-review.googlesource.com/412303
    Commit-Ready: Yunlian Jiang <yunlian@chromium.org>
    Tested-by: Yunlian Jiang <yunlian@chromium.org>
    Reviewed-by: Ting-Yuan Huang <laszio@chromium.org>
 
I've currently tried:
1) Inserting cros_use_gcc inserted into config/env/sys-libs/glibc and into the ebuild
2) Adding CC=armv7a-cros-linux-gnueabi-gcc to EXTRA_ECONF within the ebuild - gives the correct compiler, but it tries to use the gold linker instead of the bfd linker. Adding the bfd linker inside a -B flag alongside CC seems not to work. tc-ld-disable-gold also has no effect.
3) Using USE=-clang before the ebuild command.

The upcoming commit of https://chromium-review.googlesource.com/#/c/339261/ also seems to be affected by this problem.


 

Comment 1 Deleted

Comment 2 by richard....@arm.com, Dec 14 2016

Apologies, I raised this bug from the wrong Google account. Please either reassign the issue to this account or close it and I will raise it from the other account instead.
glibc is supposed to be built on sdk buidlbot and you are not supposed to do
emerge-daisy glibc.

To upgrade glibc for daisy. You need to do the following inside chroot.

sudo emerge cross-armv7a-cros-linux-gnueabi/glibc

after that, you need to 
do 
setup_board --board daisy --force to copy the new glibc into the daisy sysroot.

Or 
You can do setup_board --board daisy --nousepkg

Comment 5 by vapier@chromium.org, Dec 15 2016

Labels: Build-Toolchain

Comment 6 by richard....@arm.com, Dec 15 2016

OK - I just verified that the commands do indeed work. Feel free to close this issue.

Thanks very much for your help!
Status: Fixed (was: Unconfirmed)

Comment 8 by dchan@google.com, Mar 4 2017

Labels: VerifyIn-58

Comment 9 by dchan@google.com, Apr 17 2017

Labels: VerifyIn-59

Comment 10 by dchan@google.com, May 30 2017

Labels: VerifyIn-60
Labels: VerifyIn-61
Status: Verified (was: Fixed)
Closing. Please reopen it if its not fixed. Thanks!

Sign in to add a comment