Skip to contentSkip to conversation

main.c:674: undefined reference to `xen_init_mtrr'

DISCUSSION Nathan Stratton 2 participants 7 messages Aug 5, 2009 – Aug 7, 2009

lore
Share & tools
lore
#0 lore raw

Trying to compile the latest bleeding edge rebase/master from the Jeremy git tree and ran into:

arch/x86/built-in.o: In function `mtrr_bp_init':
/usr/local/src/linux-2.6-xen/arch/x86/kernel/cpu/mtrr/main.c:674: undefined reference to `xen_init_mtrr'
make: *** [.tmp_vmlinux1] Error 1

I would go back a few versions, but I also need Infiniband support that is in the latest kernel.

Quoted 1 line

<>

Nathan Stratton                                CTO, BlinkMind, Inc.
nathan at robotics.net                         nathan at blinkmind.com
http://www.robotics.net                        http://www.blinkmind.com
#1 lore raw
Quoted 8 lines · Nathan Stratton

Trying to compile the latest bleeding edge rebase/master from the Jeremy git tree and ran into:

arch/x86/built-in.o: In function `mtrr_bp_init':
/usr/local/src/linux-2.6-xen/arch/x86/kernel/cpu/mtrr/main.c:674:
undefined reference to `xen_init_mtrr'
make: *** [.tmp_vmlinux1] Error 1

Thanks, that's a bug, bug the workaround is to also enable CONFIG_XEN_DOM0.

However, rebase/master is *very* bleeding edge at the moment, so I don't think it will help solve your problem.

J

#2 lore raw
Quoted 11 lines · Jeremy Fitzhardinge
Quoted 8 lines · Nathan Stratton

Trying to compile the latest bleeding edge rebase/master from the Jeremy git tree and ran into:

arch/x86/built-in.o: In function `mtrr_bp_init':
/usr/local/src/linux-2.6-xen/arch/x86/kernel/cpu/mtrr/main.c:674:
undefined reference to `xen_init_mtrr'
make: *** [.tmp_vmlinux1] Error 1

Thanks, that's a bug, bug the workaround is to also enable CONFIG_XEN_DOM0.

Actually, CONFIG_XEN_DOM0 was enabled, I ended up having to disable CONFIG_MTRR to get it to compile. Not sure what damage that does, but so far things look good.

Quoted 2 lines

However, rebase/master is *very* bleeding edge at the moment, so I don't think it will help solve your problem.

I know, grasping at straws, trying to fix that kernel_panic and I also need a newer xen kernel then 2.6.18 that also has Infiniband.

-Nathan

#3 lore raw
Quoted 3 lines · Nathan Stratton

Actually, CONFIG_XEN_DOM0 was enabled, I ended up having to disable CONFIG_MTRR to get it to compile. Not sure what damage that does, but so far things look good.

Hm, OK. I wouldn't have thought it would be compiling that without CONFIG_MTRR. Anyway, that's useful to have in general; it may get you a performance kick.

Quoted 5 lines
Quoted 2 lines

However, rebase/master is *very* bleeding edge at the moment, so I don't think it will help solve your problem.

I know, grasping at straws, trying to fix that kernel_panic and I also need a newer xen kernel then 2.6.18 that also has Infiniband.

Try xen-tip/master.

J

#4 lore raw
Quoted 4 lines · Jeremy Fitzhardinge
Quoted 2 lines

I know, grasping at straws, trying to fix that kernel_panic and I also need a newer xen kernel then 2.6.18 that also has Infiniband.

Try xen-tip/master.

No infiniband. :(

-Nathan

#5 lore raw
Quoted 8 lines · Nathan Stratton
Quoted 4 lines · Jeremy Fitzhardinge
Quoted 2 lines

I know, grasping at straws, trying to fix that kernel_panic and I also need a newer xen kernel then 2.6.18 that also has Infiniband.

Try xen-tip/master.

No infiniband. :(

What version did ib come in?

J

#6 lore raw
Quoted 11 lines · Jeremy Fitzhardinge
Quoted 8 lines · Nathan Stratton
Quoted 4 lines · Jeremy Fitzhardinge
Quoted 2 lines

I know, grasping at straws, trying to fix that kernel_panic and I also need a newer xen kernel then 2.6.18 that also has Infiniband.

Try xen-tip/master.

No infiniband. :(

What version did ib come in?

2.6.31

-nathan