New issue
Advanced search Search tips

Issue 762199 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Sep 2017
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 724628



Sign in to add a comment

Building compiler-rt cross packages errors out with libc++.

Project Member Reported by manojgupta@chromium.org, Sep 5 2017

Issue description

https://uberchromegw.corp.google.com/i/chromiumos.tryserver/builders/chromiumos-sdk/builds/2519

-- Check for working C compiler: /usr/bin/aarch64-cros-linux-gnu-clang
-- Check for working C compiler: /usr/bin/aarch64-cros-linux-gnu-clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/aarch64-cros-linux-gnu-clang++
-- Check for working CXX compiler: /usr/bin/aarch64-cros-linux-gnu-clang++ -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:44 (message):
  The C++ compiler "/usr/bin/aarch64-cros-linux-gnu-clang++" is not able to
  compile a simple test program.

Root cause is libc++ libraries are built after compiler-rt in crossdev.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Sep 6 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/90dcfbc5bfb3d2638b42c2da7de1303729f9b1ba

commit 90dcfbc5bfb3d2638b42c2da7de1303729f9b1ba
Author: Manoj Gupta <manojgupta@google.com>
Date: Wed Sep 06 04:28:12 2017

compiler-rt: Use libstdc++ to avoid CMake complains.

In crossdev, libc++ is built after compiler-rt. As a result, CMake
complains about a non-working C++ compiler. Use libstdc++ to keep CMake
happy.

Avoids following error:
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:44 (message):
  The C++ compiler "/usr/bin/armv7a-cros-linux-gnueabi-clang++" is not able
  to compile a simple test program.

This does not imnpact compiler-rt builtins since they are C only.

BUG= chromium:762199 
TEST=sudo emerge cross-{armv7a,aarch64}-cros-linux-gnu/compiler-rt works when
     cross-{armv7a/aarch64}-cros-linux-gnu/libcxx is not installed.

Change-Id: I6b7f0a9d0b151dd1b515d1dd30b2935f29617def
Reviewed-on: https://chromium-review.googlesource.com/651573
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Trybot-Ready: Manoj Gupta <manojgupta@chromium.org>

[rename] https://crrev.com/90dcfbc5bfb3d2638b42c2da7de1303729f9b1ba/sys-libs/compiler-rt/compiler-rt-5.0_pre305632-r3.ebuild

Status: Verified (was: Untriaged)

Sign in to add a comment