Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5940980pxb; Mon, 14 Feb 2022 11:14:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9HxmesLaW5qdMxwIbZPLkcOKE/QL3Q8+rKUuaGZIJ3rIoAmD8VWviHfHfN4vZWuozVpb6 X-Received: by 2002:a17:90b:4a08:: with SMTP id kk8mr105704pjb.116.1644866042769; Mon, 14 Feb 2022 11:14:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644866042; cv=none; d=google.com; s=arc-20160816; b=k6DSTA81e9xNyv1GWl/Fzg+6uWVTckGdOi/tym9xkmRPWKqld1QJvrtaMLwbtXLQQr is8L3p2DSDQZUYxs917XKYEfLIZrbEsXJF9eoIDv+ftyTm8Hf2XN5SH0Jnxi22sZ6W2z ugrAPx9cEP0RH6lspNnM19oGjxaeM1PJSvlCUWJInNNGS87EEGjb2iz0xJZ01NhcCMMk PQMy+q+xc++TMIMudOkqaSwUVGUtLx95y8PxJRpgErg9uUQZJW/eX3CHCMt2lTGlhQMM ruUm2JyahSvqO9E8C4TLrodHvKCxAiFvKyJ2SZvPD5ursCbcAAzj4k0SgwA0U+yxwUfn 2IVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iSzoE/dBtyasT2BnJpIwUu2rMSPkqh/hGHEQuNqLzdk=; b=iP5VJBUHSRUaBcVljw+55HQ0LyUxND9C5nD+KKWlYMQGNj/nR3GNIOYz8NIVhgxJUI 2rQA0Oi+job5Lvhmz+bOA9HqTea3ruEK8BWP8rIhTE2r7AZHZpNagU60qF8MEELLLBoG qEI6cJ3ziamDxildb7diW0gRWEMa6/eXeQvC84HcXVMDKzHhTENHeSu4qbdwwEZ7WUM0 2hCWv2Ax2A+eSqgd1/APPbG0BOV/cRCAYMTzFARNs2VPLX5BQryTcNy7UvnpNg2iyJRw YDhTXhlon5hSFn7PW5Kju/0oUjlryEXxtq8k66OFrhQmcasKwdV0roWA1cKBo2mXpYW9 RWYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=C+WZ+eH1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c5si21558739pfr.99.2022.02.14.11.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:14:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=C+WZ+eH1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CFE769FC2; Mon, 14 Feb 2022 11:07:31 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234339AbiBMIIP (ORCPT + 99 others); Sun, 13 Feb 2022 03:08:15 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbiBMIIO (ORCPT ); Sun, 13 Feb 2022 03:08:14 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF7A95E763; Sun, 13 Feb 2022 00:08:07 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id w10so4042054edd.11; Sun, 13 Feb 2022 00:08:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=iSzoE/dBtyasT2BnJpIwUu2rMSPkqh/hGHEQuNqLzdk=; b=C+WZ+eH1c/+ZuI4bD3UmYtajl4ZhNZQkoGDJ2ebynTyte6r48567RNcKVOXLCLKJSF bj64exCerPJDd0ksl1zgJU+3iNaYQ4Y7Qn+vuIiDWFkDIFRGDIXXvMHHhjG/bjp2g21G okS825jPbfmVMoSR4nqId8nzfiSYLWa4cItItHI0jGpNG4ZWSNchk6lw+6OD/vA9pyay g06o1Y7d1Bhqc/KlTC4OT/9Ts/13WeRNAE1yAVb7Ln00gWGxBGWHozj9jaPam0Sqk96N dwaydeg87xKdS6QFjiF5hPtn3WCZ1I1pdwHdvKd11aVHk1MicLYJykTC3E3oRpVhuVMh ZO/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=iSzoE/dBtyasT2BnJpIwUu2rMSPkqh/hGHEQuNqLzdk=; b=n23kJr545kbUWfE8czSsRfCmpq/g09dlfamH0at7utKwBLqY1BU67ikENdoLM1uVw3 o7uWoGFmSPQ2BX4vshF3vOexKupHz1ejV5A9rzHtoYa1iZBBzD7mdq0LwuKtufTyZa92 FRtozETOqvz7EfHFs1XfR5hNVyANiKcUoceks98JC4T8rIx8OBtGFjSJQ8jBllJ/ZiRQ fNSOzSZVeiDrVHahbkX0aD0x55UdtsFnHUpU1Rae3hIDufqIyZwFlj1obsNOrOOX3qbH 2r1/2zwCRfPRws2ddJyqNc7GwlUv8QXHDRzIZ20kYc1jrVCviVTJHb+OgLllcwTd+V97 AgUA== X-Gm-Message-State: AOAM530gD/AnVteg9j3U/gh+8mdSfaJuACelItO3ez7OJ53TX3qXWuhg LhzRaXAGzUI/TZ2bZ2Gf5b3GypaIsEHYoZeBqDU= X-Received: by 2002:a05:6402:1c8f:: with SMTP id cy15mr8632318edb.130.1644739686394; Sun, 13 Feb 2022 00:08:06 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Zhouyi Zhou Date: Sun, 13 Feb 2022 16:07:55 +0800 Message-ID: Subject: Re: Set environment variable `KVM` makes build fail To: Paul Menzel Cc: Paolo Bonzini , kvm@vger.kernel.org, Masahiro Yamada , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel , rcu , "Paul E. McKenney" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Paul Thank you for your trust in me. I think the following patch has a good explanation of what happened ;-) https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/= tools/testing/selftests/rcutorture/bin/torture.sh?id=3Da7d89cfb8e1269cb6d22= 453adba56b8d0218589f "The torture-test scripting's long-standing use of KVM as the environment variable tracking the pathname of the rcutorture directory now conflicts with allmodconfig builds due to the virt/kvm/Makefile.kvm file's use of this as a makefile variable" Thanks Zhouyi On Sun, Feb 13, 2022 at 2:03 PM Paul Menzel wrote: > > Dear Linux folks, > > > Playing with rcutorture > (`tools/testing/selftests/rcutorture/bin/torture.sh`), a Linux kernel > build failed, because the script sets and exports the environment > variable `KVM`. I was able to reproduce that manually (on x86_64): > > $ make defconfig > $ scripts/config -m KVM > $ scripts/config -m KVM_INTEL > $ scripts/config -d KVM_AMD > $ scripts/config -d KVM_XEN > $ scripts/config -d KVM_MMU_AUDIT > $ export KVM=3DXXX > $ make arch/x86/kvm/kvm.o > [=E2=80=A6] > LINK /dev/shm/linux-kvm/tools/objtool/objtool > make[2]: *** No rule to make target 'arch/x86/kvm/XXX/kvm_main.o', > needed by 'arch/x86/kvm/kvm.o'. Stop. > make[1]: *** [scripts/Makefile.build:550: arch/x86/kvm] Error 2 > make: *** [Makefile:1831: arch/x86] Error 2 > > The directory `arch/x86/kvm/XXX` is created somehow. > > Is that expected? Do you know what is going on? I wasn=E2=80=99t able to > reproduce this with other variables like `SND_HDA` for example. > > > Kind regards, > > Paul