OpenVZ Forum


Home » Mailing lists » Users » Trouble compiling ovz028stab039.1-combined
Trouble compiling ovz028stab039.1-combined [message #16113] Wed, 22 August 2007 17:06 Go to next message
ml-openvz-eyck is currently offline  ml-openvz-eyck
Messages: 18
Registered: August 2007
Junior Member
From: openvz.org
Hello,
 I'm getting this:
....
  LD [M]  lib/zlib_deflate/zlib_deflate.o
  Building modules, stage 2.
  MODPOST
WARNING: drivers/acpi/processor.o - Section mismatch: reference to .init.data: from .text between 'acpi_processor_power_init' (at offset 0xfd8) and 'acpi_safe_halt'
WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text between 'he_start' (at offset 0x1f1d) and 'he_service_tbrq'
WARNING: "cfq_pool" [block/cfq-iosched.ko] undefined!
WARNING: "ub0" [block/cfq-iosched.ko] undefined!
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/eyck/40f-ovz/work/openvz-test'
make: *** [debian/stamp-build-kernel] Error 2

 when I try to build openvz-enabled kernel. I'm using 2.6.18 /pristine/
( it looks like ovz028stab039.1 already includes 2.6.18->2.6.18.8 patches,
 and one needs to dig out older 2.6.18 to make this patch apply).

is this normal? 
-- 
Key fingerprint = 40D0 9FFB 9939 7320 8294  05E0 BCC7 02C4 75CC 50D9
 Total Existance Failure
Re: Trouble compiling ovz028stab039.1-combined [message #16114 is a reply to message #16113] Wed, 22 August 2007 19:15 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

From: openvz.org
ml-openvz-eyck@kuszelas.com wrote:
> Hello,
>  I'm getting this:
> ....
>   LD [M]  lib/zlib_deflate/zlib_deflate.o
>   Building modules, stage 2.
>   MODPOST
> WARNING: drivers/acpi/processor.o - Section mismatch: reference to .init.data: from .text between 'acpi_processor_power_init' (at offset 0xfd8) and 'acpi_safe_halt'
> WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text between 'he_start' (at offset 0x1f1d) and 'he_service_tbrq'
> WARNING: "cfq_pool" [block/cfq-iosched.ko] undefined!
> WARNING: "ub0" [block/cfq-iosched.ko] undefined!
> make[2]: *** [__modpost] Error 1
> make[1]: *** [modules] Error 2
> make[1]: Leaving directory `/home/eyck/40f-ovz/work/openvz-test'
> make: *** [debian/stamp-build-kernel] Error 2

make sure that you have the following options enabled in your .config file:
CONFIG_USER_RESOURCE=y
CONFIG_USER_RSS_ACCOUNTING=y
CONFIG_UBC_IO_ACCT=y
CONFIG_USER_SWAP_ACCOUNTING=y
CONFIG_USER_RESOURCE_PROC=y


>  when I try to build openvz-enabled kernel. I'm using 2.6.18 /pristine/
> ( it looks like ovz028stab039.1 already includes 2.6.18->2.6.18.8 patches,
>  and one needs to dig out older 2.6.18 to make this patch apply).
> 
> is this normal? 

compilation fail - not normal, you can fill in the bug with .config file you used.
OVZ patches includes not only 2.6.18.8 fixes, but many other mainstream fixes to
make sure your whole system works stable.

Thanks,
Kirill
Re: Trouble compiling ovz028stab039.1-combined [message #16117 is a reply to message #16113] Thu, 23 August 2007 07:57 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

From: openvz.org
Eyck,

ouch, this is due to CONFIG_IOSCHED_CFQ=m
usually all the schedulers are 'y'.
plz set it temporarily to 'y' or use the patch attached. Created bug #669.

Thanks,
Kirill


eyck wrote:
>>>WARNING: drivers/acpi/processor.o - Section mismatch: reference to .init.data: from .text between 'acpi_processor_power_init' (at offset 0xfd8) and 'acpi_safe_halt'
>>>WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text between 'he_start' (at offset 0x1f1d) and 'he_service_tbrq'
>>>WARNING: "cfq_pool" [block/cfq-iosched.ko] undefined!
>>>WARNING: "ub0" [block/cfq-iosched.ko] undefined!
>>>make[2]: *** [__modpost] Error 1
> 
> 
>>make sure that you have the following options enabled in your .config file:
>>CONFIG_USER_RESOURCE=y
>>CONFIG_USER_RSS_ACCOUNTING=y
>>CONFIG_UBC_IO_ACCT=y
>>CONFIG_USER_SWAP_ACCOUNTING=y
>>CONFIG_USER_RESOURCE_PROC=y
> 
>  all those are enabled
> 
> 
>>compilation fail - not normal, you can fill in the bug with .config file you used.
> 
>   OK, .config attached
> 


--- ./block/elevator.c.ve6543	2007-08-10 17:40:04.000000000 +0400
+++ ./block/elevator.c	2007-08-23 11:53:57.000000000 +0400
@@ -40,6 +40,7 @@ static DEFINE_SPINLOCK(elv_list_lock);
 static LIST_HEAD(elv_list);
 
 kmem_cache_t *cfq_pool;
+EXPORT_SYMBOL_GPL(cfq_pool);
 
 /*
  * Query io scheduler to see if the current process issuing bio may be
--- ./kernel/ub/beancounter.c.ve6543	2007-08-10 17:40:00.000000000 +0400
+++ ./kernel/ub/beancounter.c	2007-08-23 11:53:57.000000000 +0400
@@ -40,6 +40,7 @@
 static kmem_cache_t *ub_cachep;
 static struct user_beancounter default_beancounter;
 struct user_beancounter ub0;
+EXPORT_SYMBOL_GPL(ub0);
 
 const char *ub_rnames[] = {
 	"kmemsize",	/* 0 */
Re: Trouble compiling ovz028stab039.1-combined [message #16118 is a reply to message #16114] Thu, 23 August 2007 08:05 Go to previous messageGo to next message
ml-openvz-eyck is currently offline  ml-openvz-eyck
Messages: 18
Registered: August 2007
Junior Member
From: openvz.org
On Wed, 22 Aug 2007, Kirill Korotaev wrote:
> > WARNING: "cfq_pool" [block/cfq-iosched.ko] undefined!
> > WARNING: "ub0" [block/cfq-iosched.ko] undefined!

> compilation fail - not normal, you can fill in the bug with .config file you used.
 It looks like your patches brake CFQ io scheduler, without it it compiles
just fine.
 I'm using CFQ on multiple servers and it usually shows better characteristics
then adaptive/deadline, I could only get deadline to behave consistently nicer when I
removed raid cards and tested on serial ata hardware, so it would be nice to have
the option to use CFQ... 

-- 
Key fingerprint = 40D0 9FFB 9939 7320 8294  05E0 BCC7 02C4 75CC 50D9
 Total Existance Failure
Re: Trouble compiling ovz028stab039.1-combined [message #16119 is a reply to message #16118] Thu, 23 August 2007 08:08 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

From: openvz.org
ml-openvz-eyck@kuszelas.com wrote:
> On Wed, 22 Aug 2007, Kirill Korotaev wrote:
> 
>>>WARNING: "cfq_pool" [block/cfq-iosched.ko] undefined!
>>>WARNING: "ub0" [block/cfq-iosched.ko] undefined!
> 
> 
>>compilation fail - not normal, you can fill in the bug with .config file you used.
> 
>  It looks like your patches brake CFQ io scheduler, without it it compiles
> just fine.

yes, as I replied 5 mins ago it broke compilation of CFQ being a module.

>  I'm using CFQ on multiple servers and it usually shows better characteristics
> then adaptive/deadline, I could only get deadline to behave consistently nicer when I
> removed raid cards and tested on serial ata hardware, so it would be nice to have
> the option to use CFQ... 

Thanks,
Kirill
Re: Trouble compiling ovz028stab039.1-combined [message #16162 is a reply to message #16114] Wed, 22 August 2007 19:57 Go to previous message
eyck is currently offline  eyck
Messages: 1
Registered: August 2007
Junior Member
From: openvz.org
> > WARNING: drivers/acpi/processor.o - Section mismatch: reference to .init.data: from .text between 'acpi_processor_power_init' (at offset 0xfd8) and 'acpi_safe_halt'
> > WARNING: drivers/atm/he.o - Section mismatch: reference to .init.text: from .text between 'he_start' (at offset 0x1f1d) and 'he_service_tbrq'
> > WARNING: "cfq_pool" [block/cfq-iosched.ko] undefined!
> > WARNING: "ub0" [block/cfq-iosched.ko] undefined!
> > make[2]: *** [__modpost] Error 1

> make sure that you have the following options enabled in your .config file:
> CONFIG_USER_RESOURCE=y
> CONFIG_USER_RSS_ACCOUNTING=y
> CONFIG_UBC_IO_ACCT=y
> CONFIG_USER_SWAP_ACCOUNTING=y
> CONFIG_USER_RESOURCE_PROC=y
 all those are enabled

> compilation fail - not normal, you can fill in the bug with .config file you used.
  OK, .config attached

-- 
Key fingerprint = 40D0 9FFB 9939 7320 8294  05E0 BCC7 02C4 75CC 50D9
 Total Existance Failure
  • Attachment: cfg-openvz.gz
    (Size: 18.30KB, Downloaded 258 times)
Previous Topic: swap space?
Next Topic: Can not allocate memory
Goto Forum:
  


Current Time: Fri Aug 23 07:36:04 GMT 2019