Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3960992pxu; Wed, 9 Dec 2020 05:11:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJz901rvUfm/EcGvQ+CIMc4GHLfi9M2jI0Prnyt5wF0CZNt7uNYIrASd2rd8CS4A+wqY7/q3 X-Received: by 2002:a05:6402:2041:: with SMTP id bc1mr1886668edb.369.1607519490240; Wed, 09 Dec 2020 05:11:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607519490; cv=none; d=google.com; s=arc-20160816; b=QZaqBTyzaL3LFuXvFLtQGIAQEq7dOQ/+sD4hYatgVlnYbddIe3MFWFE0o9Mf4/MOu9 tYq7c8H0DPw+5S3S/QE3iR2ZhfLF5121PHoRLGQz6HPOVI/WQpC17ThCTMPP+PKVmPKH R0Yj3vJ6tp5rHUFYM46H60wIOLdS9Eecq2+oWpD9ZiUVG/GShEfoZ3MgSJaQWJY6ztCd YOL0PVCbmF1Yq0z0xvE+Hh7AuWUCQHp9c6ZBafvjD9E4glx3XMiXDmtJobTbcuAszkZg 36q/oSMLHfN2VrtMWgRUK0QXkaxuc4ZjDtV9J7AyrJLE5DYzSkIP2mhvxZFbyO8nOxyA Q89w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=XWg47bgxAj8nQZjE0IGan2QQPTetflZ/x0QygfsXtHw=; b=q9HCetCjjOYqN++KAtH6a0F8zwNTcG/GGQKTdcSL+ubxhWbcAIoxv4HFM6ao9ZzNqD 7MF9NPyLm/I1WGF4ZWMdoxpD5pXxtOfK8eP+ATDL8vPtastziZDvgsMPIRv9RgBJJlo1 KqE2b7PxG5J4GZDzwz8Atv9XDvURLTW7yc0O4HAL5bswrAfnz2HbbNwk+cqDdOXNWrdA +R4ZftFAlUXgeL5Fegkgqg2m4ux66+EiJQjqWU5q4sVQcB12Ukc5mjCff2LjMIlb+56H u8jgWnAHJ8cDZqg30+Cnygccjgbl6D7JYXpJvIPM1ohDwS526mNeFI03uURc30u3mKdY QHsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=H9bt2Gda; 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=codewreck.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si733305ejo.364.2020.12.09.05.11.07; Wed, 09 Dec 2020 05:11:30 -0800 (PST) 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=@codewreck.org header.s=2 header.b=H9bt2Gda; 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=codewreck.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732184AbgLINIU (ORCPT + 99 others); Wed, 9 Dec 2020 08:08:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732177AbgLINIG (ORCPT ); Wed, 9 Dec 2020 08:08:06 -0500 Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC95BC0613CF; Wed, 9 Dec 2020 05:07:25 -0800 (PST) Received: by nautica.notk.org (Postfix, from userid 1001) id B056CC01B; Wed, 9 Dec 2020 14:07:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1607519244; bh=XWg47bgxAj8nQZjE0IGan2QQPTetflZ/x0QygfsXtHw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H9bt2GdanC69DfdfCbF7ucTssXSoXeC+arfv7Hl3DbXxw3pk3DxadlTliEllMecCc 3A5N8Y6ROH2vD879DWIk5kSKpeelX+1TbC4GtNN3npmGpgnF72Cr4DOQsem0ZbLkm1 OhWEk3BkQu4yoYdc4ZEl/yix524KAPOs2wLyAMmdVCmML1VYiS8bbtHkisbboX0KOx UQKGdCNXk4dP6Gy/IvV845woK3e72Nxypix//fuV1jELNcd+JjchnW+3VjX6EVuPdD NzJZuWZUJzOMdVXYG5Q31deQ3ghgT1omRSzVxslcG2vtdvdA+ScBcy+zcZV+f1xqQ1 ozR1YvgeFmJPA== Date: Wed, 9 Dec 2020 14:07:09 +0100 From: Dominique Martinet To: Krzysztof Kozlowski Cc: Masahiro Yamada , linux-kernel@vger.kernel.org, Michal Marek , linux-kbuild@vger.kernel.org Subject: Re: Broken /usr/bin/env (invalid option) Message-ID: <20201209130709.GB15469@nautica> References: <20201209122437.GA26815@kozik-lap> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201209122437.GA26815@kozik-lap> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Krzysztof Kozlowski wrote on Wed, Dec 09, 2020: > Your commit ece075366294 ("ld-version: use /usr/bin/env awk for > shebank") breaks current linux-next on Ubuntu 16.04: > > $ make defconfig > > make[1]: Entering directory '/mnt/data2/linux/linux-upstream/out' > GEN Makefile > *** Default configuration is based on 'multi_v7_defconfig' > /usr/bin/env: invalid option -- 'S' > Try '/usr/bin/env --help' for more information. > init/Kconfig:39: syntax error > init/Kconfig:38: invalid statement > ../scripts/kconfig/Makefile:80: recipe for target 'defconfig' failed > make[2]: *** [defconfig] Error 1 > /mnt/data2/linux/linux-upstream/Makefile:602: recipe for target 'defconfig' failed > make[1]: *** [defconfig] Error 2 > make[1]: Leaving directory '/mnt/data2/linux/linux-upstream/out' > Makefile:185: recipe for target '__sub-make' failed > make: *** [__sub-make] Error 2 > > https://krzk.eu/#/builders/12/builds/1170/steps/4/logs/stdio > > It's not possible to build anything... Hm, what version of env is that? I only checked on a couple of systems that env -S exists, but it might not be available (e.g. now I'm looking, at least busybox env does not provide -S) OTOH, we need -S to split arguments because the kernel splits the shebang as [binary, single argument], so without it awk wouldn't work. Apparently gawk can work without an explicit -f is invoked as gawk (so could be used without -S), but that won't be much better wrt compatibility in my opinion. I don't see any way to make this work out of the box for me (awk not in /usr/bin) and you (env not supporting -S), but I guess I can keep that patch around locally... Sorry for the trouble. -- Dominique