From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBF7BC4332F for ; Sun, 13 Feb 2022 06:03:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233924AbiBMGDX (ORCPT ); Sun, 13 Feb 2022 01:03:23 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233868AbiBMGDU (ORCPT ); Sun, 13 Feb 2022 01:03:20 -0500 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2587F5E778; Sat, 12 Feb 2022 22:03:14 -0800 (PST) Received: from [192.168.0.2] (ip5f5aebcd.dynamic.kabel-deutschland.de [95.90.235.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 05C8D61E64846; Sun, 13 Feb 2022 07:03:11 +0100 (CET) Message-ID: Date: Sun, 13 Feb 2022 07:03:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Content-Language: en-US To: Paolo Bonzini Cc: kvm@vger.kernel.org, Masahiro Yamada , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rcu@vger.kernel.org, "Paul E. McKenney" , Zhouyi Zhou From: Paul Menzel Subject: Set environment variable `KVM` makes build fail Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=XXX $ make arch/x86/kvm/kvm.o […] 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’t able to reproduce this with other variables like `SND_HDA` for example. Kind regards, Paul