Skip to contentSkip to conversation

2.6.20-rc7 (today's git) + -rt3 compilation problem

DISCUSSION Pieter Palmers 2 participants 2 messages Feb 2, 2007

lore
Share & tools
lore
#0 lore raw

The following occurred when compiling today's git with the patch-2.6.20-rc7-rt3 patch applied:

arch/i386/mm/built-in.o: In function `flush_cr3_cache':
arch/i386/mm/pgtable.c:303: undefined reference to paravirt_enabled' arch/i386/mm/pgtable.c:306: undefined reference to hypercall'
make: *** [.tmp_vmlinux1] Error 1

Adding
#include <linux/paravirt.h>
to pgtable.c fixed the compilation issue, but is that the correct way to go?

Greets,

Pieter Palmers

#1 lore raw

Another workaround is to modify the config:
CONFIG_PARAVIRT=y

(There was similar problems with SMP a while ago, a hint to enable functionality related to compile errors should possibly be mentioned in the wiki?

/Gerhard

Quoted 15 lines · Pieter Palmers

The following occurred when compiling today's git with the patch-2.6.20-rc7-rt3 patch applied:

arch/i386/mm/built-in.o: In function `flush_cr3_cache':
arch/i386/mm/pgtable.c:303: undefined reference to paravirt_enabled' arch/i386/mm/pgtable.c:306: undefined reference to hypercall'
make: *** [.tmp_vmlinux1] Error 1

Adding
#include <linux/paravirt.h>
to pgtable.c fixed the compilation issue, but is that the correct way to go?

Greets,

Pieter Palmers