Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp945739ybg; Wed, 3 Jun 2020 18:54:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziyVs3hgWB1QLF2mfxZvZQdsujPsQusIivA366Yeky7aRcDeQGpBDcGgOxTVA03KpDN7OP X-Received: by 2002:aa7:da17:: with SMTP id r23mr2223844eds.261.1591235684325; Wed, 03 Jun 2020 18:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591235684; cv=none; d=google.com; s=arc-20160816; b=IMOKrzOip+b3kAcipKMDrUQVnblKCVnebC2EFl11VMW8wIGKNQ4rbPJIfHRIK6Cb7t LkONJmo3ppFgukeMc1fI1FxdImzlxrwTqitwQzP4uppRSTKR8NkPgg4bZjGBuJgGq/wn 8duJ51NkT0/CGCTadRY5zge5ZjRhCiZH0TyMhA0ro1rmo91TaKvImz4PnaCrArdlKIXw 4zmJtL4TsgSVqguElgdkJx/1zv7cJfHHpg56vKS5V7L49qZkGZcaOHDnEY/BkJTELxXx I/xhN2iPZQF9FHDN0GdioWgwqhGQHSveTTAffnibJ9AWadrENqN77/JPFvMyrCx7+Fk1 Ibiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=bLUoWeC/HMd6TVBBN77lrqngZcxjikvtaTQJilz/QFc=; b=Ck2Gx2AdBE1nRVBkFePWOSvP33isuDPFIHrNbuTzk5oruGCCYANzSCnLeNWRj3ruxk e/IRr1R41+7e5P0h3W2s+TjsawRc5ayrvbERgpfOZumj7OOuNQlsI/6b66dygjYcOT6c FHQvcSbHW9VLkDfNdvdRfNoFP2pvEs64I8AuB7wWAW8HCuCkrr9sotoCuWHXG6ylK1ae LScabK590wrCEjUdqDrIlOWkmdLi5VvM/98Q95p/BcXNt8hMart7heKkyyfBfxsY0CHW V1tumFTDJnXgQceA915mszAKWEYsSQncmQ8MmXTJE+NLnQAa9+FONgZlAaH6UTu19x2l 4uMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=WtseokXh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si789306edq.264.2020.06.03.18.54.21; Wed, 03 Jun 2020 18:54:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=WtseokXh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726450AbgFDBIV (ORCPT + 99 others); Wed, 3 Jun 2020 21:08:21 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:54085 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbgFDBIV (ORCPT ); Wed, 3 Jun 2020 21:08:21 -0400 Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 054186RS030408 for ; Thu, 4 Jun 2020 10:08:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 054186RS030408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1591232887; bh=bLUoWeC/HMd6TVBBN77lrqngZcxjikvtaTQJilz/QFc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WtseokXhFXXu8TyT8OuDqEUkqDYWnfpDAq+COVc2ZdBKQCgupNWzIiKQAhvtoOEMJ D9t9gt/umx/QcxacEKWaZmApRhIQoaN8OKn0JOWUJSr/qzATp6xDYVgWmM0U+6uT55 i1vVqEFYyempxyWx0VzjqsC1EFZXn/wGyfGH6GJNoy5OyVWeov0gorZ+PbAJXjAeRp WarDS6YsMJDLLY/fCBWqI4Krohq4dns/8wcUT0otW9h6zPePqJP5JDFhoyeT8ahbX4 tmOW/DuQlzK8ON5TjUsmSXcWl1Lr495tGkPo8e8nWm/IY0p0aSpRSbWACLPgQ/yrw9 gerLGWS8A2zBw== X-Nifty-SrcIP: [209.85.222.41] Received: by mail-ua1-f41.google.com with SMTP id a10so1503620uan.8 for ; Wed, 03 Jun 2020 18:08:07 -0700 (PDT) X-Gm-Message-State: AOAM532kXrTYiOcYSzFnzmJJFsDF1qc9DdztOohdH6enzLYc/DsylDol 2YnEcNjFQX85h5l3o/InOnkYQhiYjESryjbqndM= X-Received: by 2002:ab0:3ae:: with SMTP id 43mr2050774uau.25.1591232885980; Wed, 03 Jun 2020 18:08:05 -0700 (PDT) MIME-Version: 1.0 References: <4627b565-0a5c-080e-726a-01b773c985e8@landley.net> <20200603170357.GG1079@brightrain.aerifal.cx> In-Reply-To: From: Masahiro Yamada Date: Thu, 4 Jun 2020 10:07:29 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: headers_install builds break on a lot of targets? To: Arnd Bergmann Cc: Rich Felker , Rob Landley , "linux-kernel@vger.kernel.org" , David Woodhouse Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 4, 2020 at 2:59 AM Arnd Bergmann wrote: > > On Wed, Jun 3, 2020 at 7:04 PM Rich Felker wrote: > > On Wed, Jun 03, 2020 at 08:49:54AM -0500, Rob Landley wrote: > > > make ARCH=3D$i distclean defconfig headers_install \ > > > > > > On the bright side, the resulting fruitbasket.tar.xz is 1.5 megabytes= . The > > > downside is I have no idea how broken the resulting header files are = after this > > > error-fest: > > > > > > alpha > > > arc > > > gcc: error: unrecognized command line option =E2=80=98-mmedium-calls= =E2=80=99 > > > gcc: error: unrecognized command line option =E2=80=98-mno-sdata=E2= =80=99; did you mean > > > =E2=80=98-fno-stats=E2=80=99? > > > gcc: error: unrecognized command line option =E2=80=98-mmedium-calls= =E2=80=99 > > > gcc: error: unrecognized command line option =E2=80=98-mno-sdata=E2= =80=99; did you mean > > > =E2=80=98-fno-stats=E2=80=99? > > > [...] > > > > Uhg. Surely there should be some fix for whatever mistaken dep is > > behind this? Headers shouldn't actually depend on any config/compiler > > output, should they?? > > The first one of the two comes from "make defconfig", which definitely ne= eds > a working $TARGET compiler, but isn't actually needed before > "make headers_install" as I just checked. > > > Or is that machinery somehow involved in > > generating the syscall lists and similar? > > The syscall list for ARC is still not generated (that's on my todo list),= but > something does call it even for "make headers_install". > > What it does is to set Makefile variables such as > > CC_VERSION_TEXT =3D $(shell $(CC) --version 2>/dev/null | head -n 1) > and trying out all kinds of gcc options that may or may not be supported > such as "$(call cc-option,-fno-tree-loop-im)". > > Setting CC=3D: avoids this, like > > make -s CC=3D: ARCH=3D$i headers_install INSTALL_HDR_PATH=3D"$PWD/fruitb= asket/$i" > > Arnd You can do headers_install without the .config file. 'make defconfig' is unneeded. headers_install should be independent of $(CC) too. linux-next has some progress about this. You can get clean headers_install without CROSS_COMPILE for parisc, h8300, hexagon. You still get warnings for ia64 and arc. Our goal is to not require $(CC) for non-dot-config target like 'make headers_install', 'make help', etc. -- Best Regards Masahiro Yamada