New issue
Advanced search Search tips

Issue 679699 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 105388



Sign in to add a comment

No-compile tests doesn't work when cross-compiling

Project Member Reported by wychen@chromium.org, Jan 10 2017

Issue description

From https://codereview.chromium.org/2599243002/#msg24

This change broke cross-compile build for Chromium Linux.

Cross-compile failure for MIPS can be seen here:
http://www.rt-rk.com/mips-buildbot/builders/build_and_test_chromium_trunk_for_MIPS/builds/1445/steps/Build%20Chromium/logs/stdio

Same issue is present when cross-compiling for ARM Linux.

//build/nocompile.gni does not set --target option for Clang, which then
defaults to x86_64, but --sysroot is set according to target_cpu, and then Clang
tries to use appropriate sysroot (in MIPS case it is
//build/linux/debian_wheezy_mips-sysroot). This results in mismatch and missing
Clang internal include paths which lead to missing header files.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Jan 10 2017

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

commit 1e7c9add546d108518e9128cb9cd24b873f5afd4
Author: wychen <wychen@chromium.org>
Date: Tue Jan 10 15:38:56 2017

Disable no-compile tests when cross-compiling

BUG= 679699 

Review-Url: https://codereview.chromium.org/2623753003
Cr-Commit-Position: refs/heads/master@{#442592}

[modify] https://crrev.com/1e7c9add546d108518e9128cb9cd24b873f5afd4/build/nocompile.gni

Comment 2 by wychen@chromium.org, Jan 10 2017

Status: Fixed (was: Untriaged)

Sign in to add a comment