Skip to contentSkip to conversation

compile error with current xen/master

DISCUSSION Josip Rodin 1 participant 3 messages Nov 29, 2009 – Nov 30, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I updated my previously-working pvops kernel (git pull origin xen/master) and reran make oldconfig, where I made some fairly random choices for the new functionality that I'm not sure I want :) and then make failed with the following output (with CONFIG_DEBUG_SECTION_MISMATCH=y):

[...]
Kernel: arch/x86/boot/bzImage is ready (#3)
Building modules, stage 2.
MODPOST 1651 modules
WARNING: drivers/net/xen-netchannel2/netchannel2.o(.init.text+0x23): Section mismatch in reference from the function init_module() to the function .exit.text:netfront2_exit() The function __init init_module() references
a function __exit netfront2_exit().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
netfront2_exit() so it may be used outside an exit section.

WARNING: drivers/net/xen-netchannel2/netchannel2.o(.data+0x388): Section mismatch in reference from the variable netfront2 to the function .devinit.text:netfront_probe() The variable netfront2 references
the function __devinit netfront_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

WARNING: drivers/net/xen-netchannel2/netchannel2.o(.data+0x398): Section mismatch in reference from the variable netfront2 to the function .devexit.text:netfront_remove() The variable netfront2 references
the function __devexit netfront_remove()
If the reference is valid then annotate the
variable with __exit* (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

ERROR: "xen_gsi_from_irq" [drivers/xen/pciback/pciback.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
%

% grep -i xen .config
CONFIG_XEN=y
CONFIG_XEN_TIME_VSYSCALL=y
CONFIG_XEN_MAX_DOMAIN_MEMORY=32
CONFIG_XEN_SAVE_RESTORE=y
# CONFIG_XEN_DEBUG_FS is not set
CONFIG_XEN_DOM0=y
CONFIG_XEN_PRIVILEGED_GUEST=y
CONFIG_XEN_DOM0_PCI=y
CONFIG_MICROCODE_XEN=y
CONFIG_PCI_XEN=y
# CONFIG_XEN_PCIDEV_FRONTEND is not set
CONFIG_XEN_BLKDEV_FRONTEND=y
CONFIG_NETXEN_NIC=m
CONFIG_XEN_NETDEV_FRONTEND=y
CONFIG_XEN_NETCHANNEL2=m
CONFIG_XEN_NETDEV2_BACKEND=y
CONFIG_XEN_NETDEV2_FRONTEND=y
# CONFIG_XEN_NETDEV2_BYPASSABLE is not set
# CONFIG_XEN_NETDEV2_BYPASS_ENDPOINT is not set
CONFIG_XEN_KBDDEV_FRONTEND=y
CONFIG_HVC_XEN=y
CONFIG_XEN_FBDEV_FRONTEND=y
CONFIG_XEN_BALLOON=y
CONFIG_XEN_SCRUB_PAGES=y
CONFIG_XEN_DEV_EVTCHN=y
CONFIG_XEN_BACKEND=y
CONFIG_XEN_BLKDEV_BACKEND=y
CONFIG_XEN_NETDEV_BACKEND=y
CONFIG_XEN_PCIDEV_BACKEND=m
CONFIG_XEN_PCIDEV_BACKEND_VPCI=y
# CONFIG_XEN_PCIDEV_BACKEND_PASS is not set
# CONFIG_XEN_PCIDEV_BACKEND_SLOT is not set
# CONFIG_XEN_PCIDEV_BACKEND_CONTROLLER is not set
# CONFIG_XEN_PCIDEV_BE_DEBUG is not set
CONFIG_XENFS=y
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_XEN_SYS_HYPERVISOR=y
CONFIG_XEN_XENBUS_FRONTEND=y
CONFIG_XEN_S3=y
# CONFIG_XEN_GNTDEV is not set

Please tell me if you need anything else.

Signature · 1 line
     2. That which causes joy or happiness.
#1 lore raw
Quoted 10 lines · joy

I updated my previously-working pvops kernel (git pull origin xen/master) and reran make oldconfig, where I made some fairly random choices for the new functionality that I'm not sure I want :) and then make failed with the following output:

ERROR: "xen_gsi_from_irq" [drivers/xen/pciback/pciback.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

CONFIG_XEN_PCIDEV_BACKEND=m

When I disabled the new module, the kernel built fine. However, it would not boot:

[    0.165929] registered taskstats version 1                                   
[    0.166237] rtc_cmos rtc_cmos: setting system clock to 2009-11-30 22:24:46 UTC (1259619886)                                                                  
[    0.210569] input: AT Translated Set 2 keyboard as /class/input/input1       
[    0.218226] List of all partitions:                                          
[    0.218311] No filesystem could mount root, tried:                           
[    0.218456] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)                                                                   
[    0.218551] Pid: 1, comm: swapper Not tainted 2.6.31.6 #4                    
[    0.218631] Call Trace:                                                      
[    0.220011]  [<ffffffff81298ddd>] ? panic+0x86/0x133                         
[    0.220011]  [<ffffffff8100e172>] ? check_events+0x12/0x20                   
[    0.220011]  [<ffffffff811206b4>] ? cap_d_instantiate+0x0/0x1                
[    0.220011]  [<ffffffff8100e15f>] ? xen_restore_fl_direct_end+0x0/0x1        
[    0.220011]  [<ffffffff8146221f>] ? mount_block_root+0x25e/0x275             
[    0.220011]  [<ffffffff814623e8>] ? prepare_namespace+0x163/0x18d            
[    0.220011]  [<ffffffff814617a0>] ? kernel_init+0x1a1/0x1b1                  
[    0.220011]  [<ffffffff810126ca>] ? child_rip+0xa/0x20                       
[    0.220011]  [<ffffffff810118a7>] ? int_ret_from_sys_call+0x7/0x1b           
[    0.220011]  [<ffffffff8101205d>] ? retint_restore_args+0x5/0x6              
[    0.220011]  [<ffffffff811a53d8>] ? acpi_tb_verify_table+0x21/0x4f           
[    0.220011]  [<ffffffff8100e172>] ? check_events+0x12/0x20                   
[    0.220011]  [<ffffffff811a53d8>] ? acpi_tb_verify_table+0x21/0x4f           

Sadly this is all I have because of semi-broken iLO remcons...

Signature · 1 line
     2. That which causes joy or happiness.
#2 lore raw
Quoted 10 lines · joy
Quoted 8 lines · joy

I updated my previously-working pvops kernel (git pull origin xen/master) and reran make oldconfig, where I made some fairly random choices for the new functionality that I'm not sure I want :) and then make failed with the following output:

ERROR: "xen_gsi_from_irq" [drivers/xen/pciback/pciback.ko] undefined! make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

Quoted 7 lines
Quoted 1 line

CONFIG_XEN_PCIDEV_BACKEND=m

When I disabled the new module, the kernel built fine. However, it would not boot:

[    0.218226] List of all partitions:                                          
[    0.218311] No filesystem could mount root, tried:                           

Sorry, the trace blindsided me into thinking something other than a missing initrd was the problem. After I fixed that silly glitch, it booted fine. So it's just the new modules that are problematic.

Signature · 1 line
     2. That which causes joy or happiness.