* kbuild not creating output dirs
@ 2013-04-03 23:28 Geoff Levand
2013-04-03 23:34 ` Christoffer Dall
0 siblings, 1 reply; 3+ messages in thread
From: Geoff Levand @ 2013-04-03 23:28 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kbuild, Marc Zyngier, kvmarm
Hi Michal,
I was building Marc's kvm development kernel outside of the
sources (make O=), and I got the following build error:
arch/arm64/kvm/../../../arch/arm/kvm/mmio.c: fatal error: opening dependency file arch/arm64/kvm/../../../arch/arm/kvm/.mmio.o.d: No such file or directory
The cause was that kbuild did not create the output directory
arch/arm64/kvm/../../../arch/arm/kvm, and so gcc failed.
Here is what was in his makefile:
obj-$(CONFIG_KVM_ARM_HOST) += $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
I changed this to build a composite and kbuild then created
the output directories:
obj-$(CONFIG_KVM_ARM_HOST) += kvm.o
kvm-$(CONFIG_KVM_ARM_HOST) += $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
I guess kbuild used some other rules and saw the dependency on
the output directory.
So, my questions are:
Is it expected that the original rule should fail?
Is my fix the correct way?
Can I use some other way to get those output directories created?
Just FYI, the original source is here:
https://git.kernel.org/cgit/linux/kernel/git/maz/arm-platforms.git/tree/arch/arm64/kvm/Makefile?h=kvm-arm64/kvm-for-next
Thanks for your help.
-Geoff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kbuild not creating output dirs
2013-04-03 23:28 kbuild not creating output dirs Geoff Levand
@ 2013-04-03 23:34 ` Christoffer Dall
2013-04-04 11:05 ` Marc Zyngier
0 siblings, 1 reply; 3+ messages in thread
From: Christoffer Dall @ 2013-04-03 23:34 UTC (permalink / raw)
To: Geoff Levand; +Cc: Michal Marek, kvmarm, linux-kbuild
there was a similar problem with the kvm 32-bit makefile at some
point, the fix looks ok to me.
-Christoffer
On Wed, Apr 3, 2013 at 4:28 PM, Geoff Levand <geoff@infradead.org> wrote:
> Hi Michal,
>
> I was building Marc's kvm development kernel outside of the
> sources (make O=), and I got the following build error:
>
> arch/arm64/kvm/../../../arch/arm/kvm/mmio.c: fatal error: opening dependency file arch/arm64/kvm/../../../arch/arm/kvm/.mmio.o.d: No such file or directory
>
> The cause was that kbuild did not create the output directory
> arch/arm64/kvm/../../../arch/arm/kvm, and so gcc failed.
>
> Here is what was in his makefile:
>
> obj-$(CONFIG_KVM_ARM_HOST) += $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
>
> I changed this to build a composite and kbuild then created
> the output directories:
>
> obj-$(CONFIG_KVM_ARM_HOST) += kvm.o
> kvm-$(CONFIG_KVM_ARM_HOST) += $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
>
> I guess kbuild used some other rules and saw the dependency on
> the output directory.
>
> So, my questions are:
>
> Is it expected that the original rule should fail?
> Is my fix the correct way?
> Can I use some other way to get those output directories created?
>
> Just FYI, the original source is here:
>
> https://git.kernel.org/cgit/linux/kernel/git/maz/arm-platforms.git/tree/arch/arm64/kvm/Makefile?h=kvm-arm64/kvm-for-next
>
> Thanks for your help.
>
> -Geoff
>
>
>
> _______________________________________________
> kvmarm mailing list
> kvmarm@lists.cs.columbia.edu
> https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kbuild not creating output dirs
2013-04-03 23:34 ` Christoffer Dall
@ 2013-04-04 11:05 ` Marc Zyngier
0 siblings, 0 replies; 3+ messages in thread
From: Marc Zyngier @ 2013-04-04 11:05 UTC (permalink / raw)
To: Christoffer Dall, Geoff Levand; +Cc: Michal Marek, kvmarm, linux-kbuild
On Wed, 3 Apr 2013 16:34:45 -0700, Christoffer Dall
<cdall@cs.columbia.edu>
wrote:
> there was a similar problem with the kvm 32-bit makefile at some
> point, the fix looks ok to me.
>
> -Christoffer
>
> On Wed, Apr 3, 2013 at 4:28 PM, Geoff Levand <geoff@infradead.org>
wrote:
>> Hi Michal,
>>
>> I was building Marc's kvm development kernel outside of the
>> sources (make O=), and I got the following build error:
>>
>> arch/arm64/kvm/../../../arch/arm/kvm/mmio.c: fatal error: opening
>> dependency file arch/arm64/kvm/../../../arch/arm/kvm/.mmio.o.d: No
such
>> file or directory
>>
>> The cause was that kbuild did not create the output directory
>> arch/arm64/kvm/../../../arch/arm/kvm, and so gcc failed.
>>
>> Here is what was in his makefile:
>>
>> obj-$(CONFIG_KVM_ARM_HOST) += $(addprefix ../../../virt/kvm/,
>> kvm_main.o coalesced_mmio.o)
>>
>> I changed this to build a composite and kbuild then created
>> the output directories:
>>
>> obj-$(CONFIG_KVM_ARM_HOST) += kvm.o
>> kvm-$(CONFIG_KVM_ARM_HOST) += $(addprefix ../../../virt/kvm/,
>> kvm_main.o coalesced_mmio.o)
>>
>> I guess kbuild used some other rules and saw the dependency on
>> the output directory.
>>
>> So, my questions are:
>>
>> Is it expected that the original rule should fail?
>> Is my fix the correct way?
>> Can I use some other way to get those output directories created?
Yeah, this looks like the thing to do. I'll fix the KVM/arm64 makefile.
Thanks for investigating.
M.
--
Fast, cheap, reliable. Pick two.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-04 11:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03 23:28 kbuild not creating output dirs Geoff Levand
2013-04-03 23:34 ` Christoffer Dall
2013-04-04 11:05 ` Marc Zyngier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox