can not compile reiser4
I'm trying to compile a 2.6.0-test2 kernel with reiser4 on a spare system. I downloaded the latest reiser 4 sources from bitkeeper into the fs directory of a vanilla 2.6.0-test2 tree using the instructions on your web site ( bk clone bk://bk.namesys.com/bk/reiser4)
Then I applied the 2.6.0-test2-reiser4-2.6.0-test2.diff patch from your ftp site.
When I try to compile, I get the following error:
CC fs/reiser4/entd.o
In file included from include/asm/hardirq.h:6,
from fs/reiser4/debug.h:17,
from fs/reiser4/entd.c:5:include/linux/irq.h:69: warning: size of irq_desc' is 28672 bytes fs/reiser4/entd.c: In function wait_for_flush':fs/reiser4/entd.c:387: structure has no member named `pressure' make[2]: *** [fs/reiser4/entd.o] Error 1
make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2
Also, the "size of `irq_desc' is 28672 bytes" warning was printed for every file in the reiser4 directory up to that point.
I don't understand how the patch could be the problem. It doesn't change anything in the fs/reiser4 directory at all. The file that won't compile is fs/reiser4/entd.c, which is the most recent version from bk://bk.namesys.com/bk/reiser4
----- Original Message -----
From: "Marcelo Pacheco" <[email protected]>
To: "Jack Byer" <[email protected]>
Sent: Sunday, August 10, 2003 2:27 PM
Subject: Re: can not compile reiser4
Quoted 2 lines
That patch is old and outdated.
All you need is on the bk trees, except for the attached small compilation
patch that namesys hasn't took action yet.
Quoted 5 lines
Marcelo
Quoted 1 line · Jack Byer
I'm trying to compile a 2.6.0-test2 kernel with reiser4 on a spare
system.
Quoted 2 lines
Quoted 2 lines
I downloaded the latest reiser 4 sources from bitkeeper into the fs directory of a vanilla 2.6.0-test2 tree using the instructions on your
web
Quoted 2 lines
Quoted 2 lines
site ( bk clone bk://bk.namesys.com/bk/reiser4)
Then I applied the 2.6.0-test2-reiser4-2.6.0-test2.diff patch from your
ftp
Quoted 14 lines
Quoted 14 lines
site.
When I try to compile, I get the following error:CC
fs/reiser4/entd.o
In file included frominclude/asm/hardirq.h:6,from fs/reiser4/debug.h:17, from fs/reiser4/entd.c:5:
include/linux/irq.h:69: warning: size ofirq_desc' is 28672 bytes fs/reiser4/entd.c: In functionwait_for_flush':fs/reiser4/entd.c:387: structure has no member named `pressure' make[2]: *** [fs/reiser4/entd.o] Error 1
make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2
Quoted 1 line
Quoted 1 line
Also, the "size of `irq_desc' is 28672 bytes" warning was printed for
every
Quoted 17 lines
Quoted 1 line
file in the reiser4 directory up to that point.
linux 2.6.0 and reiser4 (patch/bugfix)
Date: 2003-08-02 07:58
From: "Pillars.NET" <[email protected]>
To: [email protected]Figured out how to use bk to pull in the latest trees from linux.bkbits.net and bk.namesys.com and merge the two.
Tried compiling a linux 2.6.0-test2 kernel with reiser4 built-in (not as a module)
Ran into a compile-time error: "undefined reference to
_udivdi3", which is described by one LKML author as "somebody is doing a 64-bit integer divide without pulling in the relevant gcc library."
Quoted 7 lines
Poked around and found in "
include/div64.h" a helper function called "div_long_long_rem" which appears to be custom-made for this type of problem.Here's what I changed to make the compiler happy:
root@pillars:/usr/src/linux-2.6.0# diff -u
fs/reiser4/plugin/item/ctail.c.orig fs/reiser4/plugin/item/ctail.c
reiser4/plugin/item/ctail.c 2003-08-02
Quoted 2 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +0
-0
06:41:15.000000000 -0400
reiser4/plugin/item/ctail.c 2003-08-02 line 58
Quoted 5 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +0
-1@@ -55,7 +55,8 @@ cluster_index_by_coord(const coord_t * coord) { reiser4_key key; - return get_key_offset(item_key_by_coord(coord, &key)) /
cluster_size_by_coord(coord),&rem;
reiser4/plugin/item/ctail.c 2003-08-02 line 59
Quoted 2 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +2
-0+ unsigned long rem; + return div_long_long_rem(get_key_offset(item_key_by_coord(coord,
&key)),cluster_size_by_coord(coord),&rem);
reiser4/plugin/item/ctail.c 2003-08-02 line 773
Quoted 13 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +1
-0} static char *@@ -764,13 +765,14 @@ utmost_child_ctail(const coord_t * coord, sideof side, jnode ** child) { reiser4_key key; + long unsigned rem; assert("edward-257", coord != NULL); assert("edward-258", child != NULL); assert("edward-259", side == LEFT_SIDE); assert("edward-260", item_plugin_by_coord(coord) ==
item_plugin_by_id(CTAIL_ID));
reiser4/plugin/item/ctail.c 2003-08-02 line 772
Quoted 2 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +0
-1- if (get_key_offset(&key) != cluster_size_by_coord(coord) *
(get_key_offset(&key) / cluster_size_by_coord(coord)))
reiser4/plugin/item/ctail.c 2003-08-02 line 774
Quoted 1 line
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +1
-0+ if (get_key_offset(&key) != cluster_size_by_coord(coord) *
div_long_long_rem(get_key_offset(&key),cluster_size_by_coord(coord),&rem))
reiser4/plugin/item/ctail.c 2003-08-02 line 777
Quoted 3 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +0
-0*child = NULL; else *child = jlook_lock(current_tree,
get_key_objectid(item_key_by_coord(coord, &key)),cluster_index_by_coord(coord));
Quoted 3 lines
I figured out the problem; I forgot to use "bk -r get".
----- Original Message -----
From: "Marcelo Pacheco" <[email protected]>
To: "Jack Byer" <[email protected]>
Sent: Sunday, August 10, 2003 8:10 PM
Subject: Re: can not compile reiser4
Quoted 1 line
What I know is I installed bk on my machine, downloaded their 3 bk areas
and
Quoted 1 line
with that patch I have sucessfully compiled a reiser4 capable kernel
(haven't
Quoted 7 lines
tested reiser4 funcionality yet).
Marcelo
Quoted 2 lines · Jack Byer
I don't understand how the patch could be the problem. It doesn't change anything in the fs/reiser4 directory at all. The file that won't compile
is
Quoted 17 lines
Quoted 17 lines
fs/reiser4/entd.c, which is the most recent version from bk://bk.namesys.com/bk/reiser4----- Original Message -----
From: "Marcelo Pacheco" <[email protected]>
To: "Jack Byer" <[email protected]>
Sent: Sunday, August 10, 2003 2:27 PM
Subject: Re: can not compile reiser4Quoted 3 lines
That patch is old and outdated.
All you need is on the bk trees, except for the attached small compilationpatch that namesys hasn't took action yet.
Quoted 2 lines
Marcelo
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines · Jack Byer
Quoted 1 line
I'm trying to compile a 2.6.0-test2 kernel with reiser4 on a spare
system.
Quoted 2 lines
Quoted 2 lines
I downloaded the latest reiser 4 sources from bitkeeper into the fs directory of a vanilla 2.6.0-test2 tree using the instructions on
your
Quoted 5 lines
Quoted 5 lines
web
Quoted 2 lines
Quoted 2 lines
site ( bk clone bk://bk.namesys.com/bk/reiser4)
Then I applied the 2.6.0-test2-reiser4-2.6.0-test2.diff patch from
your
Quoted 17 lines
Quoted 17 lines
ftp
Quoted 14 lines
Quoted 14 lines
site.
When I try to compile, I get the following error:CC
fs/reiser4/entd.o
In file included frominclude/asm/hardirq.h:6,from fs/reiser4/debug.h:17, from fs/reiser4/entd.c:5:
include/linux/irq.h:69: warning: size ofirq_desc' is 28672 bytes fs/reiser4/entd.c: In functionwait_for_flush':fs/reiser4/entd.c:387: structure has no member named `pressure' make[2]: *** [fs/reiser4/entd.o] Error 1
make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Also, the "size of `irq_desc' is 28672 bytes" warning was printed
for
Quoted 43 lines
Quoted 43 lines
every
Quoted 17 lines
Quoted 1 line
file in the reiser4 directory up to that point.
linux 2.6.0 and reiser4 (patch/bugfix)
Date: 2003-08-02 07:58
From: "Pillars.NET" <[email protected]>
To: [email protected]Figured out how to use bk to pull in the latest trees from linux.bkbits.net and bk.namesys.com and merge the two.
Tried compiling a linux 2.6.0-test2 kernel with reiser4 built-in (not as a module)
Ran into a compile-time error: "undefined reference to
_udivdi3", which is described by one LKML author as "somebody is doing a 64-bit integer divide without pulling in the relevant gcc library."Quoted 7 lines
Poked around and found in "
include/div64.h" a helper function called "div_long_long_rem" which appears to be custom-made for this type of problem.Here's what I changed to make the compiler happy:
root@pillars:/usr/src/linux-2.6.0# diff -u
fs/reiser4/plugin/item/ctail.c.origfs/reiser4/plugin/item/ctail.creiser4/plugin/item/ctail.c 2003-08-02
Quoted 2 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +0
-006:41:15.000000000 -0400
reiser4/plugin/item/ctail.c 2003-08-02 line 58
Quoted 5 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +0
-1@@ -55,7 +55,8 @@ cluster_index_by_coord(const coord_t * coord) { reiser4_key key; - return get_key_offset(item_key_by_coord(coord, &key)) /cluster_size_by_coord(coord),&rem;
Quoted 2 lines
Quoted 2 lines
reiser4/plugin/item/ctail.c 2003-08-02 line 59
Quoted 2 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +2
-0+ unsigned long rem; + return
div_long_long_rem(get_key_offset(item_key_by_coord(coord,
Quoted 8 lines
Quoted 8 lines
&key)),cluster_size_by_coord(coord),&rem);
reiser4/plugin/item/ctail.c 2003-08-02 line 765
Quoted 5 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +0
-0} static char *@@ -764,13 +765,14 @@ utmost_child_ctail(const coord_t * coord, sideof side, jnode **
child)
Quoted 11 lines
Quoted 11 lines
reiser4/plugin/item/ctail.c 2003-08-02 line 773
Quoted 8 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +1
-0{ reiser4_key key; + long unsigned rem; assert("edward-257", coord != NULL); assert("edward-258", child != NULL); assert("edward-259", side == LEFT_SIDE); assert("edward-260", item_plugin_by_coord(coord) ==
item_plugin_by_id(CTAIL_ID));
Quoted 7 lines
Quoted 7 lines
reiser4/plugin/item/ctail.c 2003-08-02 line 772
Quoted 1 line
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +0
-1- if (get_key_offset(&key) != cluster_size_by_coord(coord) *(
get_key_offset(&key)/cluster_size_by_coord(coord)))Quoted 1 line
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +1
-0+ if (get_key_offset(&key) != cluster_size_by_coord(coord) *
div_long_long_rem(get_key_offset(&key),cluster_size_by_coord(coord),&rem))
Quoted 10 lines
Quoted 7 lines
reiser4/plugin/item/ctail.c 2003-08-02 line 777
Quoted 4 lines
reiser4/plugin/item/ctail.c 2003-08-02 renamed from ctail.c.orig 2003-08-02 06:53:07.000000000 -0400 +0
-0*child = NULL; else *child = jlook_lock(current_tree,
get_key_objectid(item_key_by_coord(coord, &key)),cluster_index_by_coord(coord));