mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, Masahiro Yamada <masahiroy@kernel.org>,
	Michal Marek <michal.lkml@markovi.net>,
	linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
	rcu@vger.kernel.org, "Paul E. McKenney" <paulmck@kernel.org>,
	Zhouyi Zhou <zhouzhouyi@gmail.com>
Subject: Set environment variable `KVM` makes build fail
Date: Sun, 13 Feb 2022 07:03:10 +0100	[thread overview]
Message-ID: <d3e6a461-5b37-ecfb-d63c-d35af27f2682@molgen.mpg.de> (raw)

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

             reply	other threads:[~2022-02-13  6:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-13  6:03 Paul Menzel [this message]
2022-02-13  8:07 ` Zhouyi Zhou
2022-02-13  9:45   ` Paul Menzel
2022-02-13 14:43     ` Paul E. McKenney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d3e6a461-5b37-ecfb-d63c-d35af27f2682@molgen.mpg.de \
    --to=pmenzel@molgen.mpg.de \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=michal.lkml@markovi.net \
    --cc=paulmck@kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=rcu@vger.kernel.org \
    --cc=zhouzhouyi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®