Skip to contentSkip to conversation

linux-next: build failure after merge of the final tree

DISCUSSION Mark Brown 3 participants 3 messages Mar 11 Linux-next tree

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

During the final build, today's linux-next build (arm64 allyesconfig) failed like this:

/tmp/next/build/arch/arm64/kvm/hyp/nvhe/trace.c:16:10: fatal error: simple_ring_buffer.c: No such file or directory
16 | #include "simple_ring_buffer.c"

      |          ^~~~~~~~~~~~~~~~~~~~~~

Caused by commit

680a04c333fa2 (KVM: arm64: Add tracing capability for the nVHE/pKVM hyp)

It's not clear to me how this is supposed to work for O= builds like -next does, the Makefile does:

   CFLAGS_trace.nvhe.o += -I$(objtree)/kernel/trace/

which is pointing at the object directory but simple_ring_buffer.c isn't generated so I'd expect to be looking for it relative to $(src). I have ignored this for today for the purposes of -next.

#1 lore raw
Quoted 14 lines · Mark Brown

Hi all,

During the final build, today's linux-next build (arm64 allyesconfig) failed like this:

/tmp/next/build/arch/arm64/kvm/hyp/nvhe/trace.c:16:10: fatal error: simple_ring_buffer.c: No such file or directory
16 | #include "simple_ring_buffer.c"

      |          ^~~~~~~~~~~~~~~~~~~~~~

Caused by commit

680a04c333fa2 (KVM: arm64: Add tracing capability for the nVHE/pKVM hyp)

Quoted 8 lines

It's not clear to me how this is supposed to work for O= builds like -next does, the Makefile does:

   CFLAGS_trace.nvhe.o += -I$(objtree)/kernel/trace/

which is pointing at the object directory but simple_ring_buffer.c isn't generated so I'd expect to be looking for it relative to $(src). I have ignored this for today for the purposes of -next.

Arg of course, it should be

-CFLAGS_trace.nvhe.o += -I$(objtree)/kernel/trace/ +CFLAGS_trace.nvhe.o += -I$(srctree)/kernel/trace/

Marc, how do you want to proceed for that one?

#2 lore raw
Quoted 30 lines · Vincent Donnefort
Quoted 14 lines · Mark Brown

Hi all,

During the final build, today's linux-next build (arm64 allyesconfig) failed like this:

/tmp/next/build/arch/arm64/kvm/hyp/nvhe/trace.c:16:10: fatal error: simple_ring_buffer.c: No such file or directory
16 | #include "simple_ring_buffer.c"

      |          ^~~~~~~~~~~~~~~~~~~~~~

Caused by commit

680a04c333fa2 (KVM: arm64: Add tracing capability for the nVHE/pKVM hyp)

Quoted 8 lines

It's not clear to me how this is supposed to work for O= builds like -next does, the Makefile does:

   CFLAGS_trace.nvhe.o += -I$(objtree)/kernel/trace/

which is pointing at the object directory but simple_ring_buffer.c isn't generated so I'd expect to be looking for it relative to $(src). I have ignored this for today for the purposes of -next.

Arg of course, it should be

(quoted diff) +1 -1
-CFLAGS_trace.nvhe.o += -I$(objtree)/kernel/trace/
+CFLAGS_trace.nvhe.o += -I$(srctree)/kernel/trace/
Quoted 1 line

Marc, how do you want to proceed for that one?

Patch on top of kvmarm/next, please.

Thanks,

	M.
Signature · 1 line
Without deviation from the norm, progress is not possible.