New issue
Advanced search Search tips

Issue 822807 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug
Build-Toolchain

Blocking:
issue 815357



Sign in to add a comment

cross compiling linux-headers is failing

Project Member Reported by manojgupta@chromium.org, Mar 16 2018

Issue description

https://uberchromegw.corp.google.com/i/chromiumos.tryserver/builders/llvm_next_toolchain/builds/1482

I can also repro locally: 
$ sudo emerge cross-i686-pc-linux-gnu/linux-headers

>>> Compiling source in /var/tmp/portage/cross-i686-pc-linux-gnu/linux-headers-4.4-r15/work/gentoo-headers-base-4.4 ...
 * ERROR: cross-i686-pc-linux-gnu/linux-headers-4.4-r15::crossdev failed (compile phase):
 *   USE Flag 'crosscompile_opts_headers-only' not in IUSE for cross-i686-pc-linux-gnu/linux-headers-4.4-r15
 * 
 * Call stack:
 *          ebuild.sh, line  133:  Called src_compile
 *        environment, line 3224:  Called kernel-2_src_compile
 *        environment, line 2239:  Called compile_headers
 *        environment, line  686:  Called env_setup_xmakeopts
 *        environment, line 1192:  Called cross_pre_c_headers
 *        environment, line  884:  Called use 'crosscompile_opts_headers-only'
 *   phase-helpers.sh, line  200:  Called die
 * The specific snippet of code:
 *   				die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}"
 * 
 
Summary: cross compiling linux-headers is failing (was: cross compiling linux-headers is faling)
Cc: vapier@chromium.org
As I guessed, SDK builder has also started failing with same issue: https://uberchromegw.corp.google.com/i/chromiumos/builders/chromiumos-sdk/builds/8604
Project Member

Comment 4 by bugdroid1@chromium.org, Mar 17 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/portage-stable/+/2431473911c6b493fbf2f7f06c39568699078145

commit 2431473911c6b493fbf2f7f06c39568699078145
Author: Manoj Gupta <manojgupta@google.com>
Date: Sat Mar 17 01:31:25 2018

kernel-2.eclass: add crosscompile_opts_headers-only to IUSE

Cherry-pick upstream Gentoo change to kernel-2.eclass from:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0639f1e3a412852299e360b30d77d19fd0a8b679

Original CL description:
author	Mike Gilbert <floppym@gentoo.org>	2016-08-02 22:03:21 -0400
committer	Mike Gilbert <floppym@gentoo.org>	2016-08-02 22:05:13 -0400
commit	0639f1e3a412852299e360b30d77d19fd0a8b679 (patch)
tree	6609f43a21a8aeb29c09aa2f02b6751e2570b051

kernel-2.eclass: add crosscompile_opts_headers-only to IUSE
Fixes installation of cross headers for ebuilds using EAPI 5+.

BUG= chromium:822807 
TEST=sudo emerge cross-i686-pc-linux-gnu/linux-headers works.

Change-Id: Id26f98807fcc478045104b7873c4d8022a2d9e24
Reviewed-on: https://chromium-review.googlesource.com/967011
Commit-Ready: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Rahul Chaudhry <rahulchaudhry@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/2431473911c6b493fbf2f7f06c39568699078145/eclass/kernel-2.eclass

Status: Verified (was: Untriaged)

Sign in to add a comment