build failure 11/05 snapshot
attempting to build the 11.05 snapshot, using current bk tree:
-----------------------------------
gcc -Wp,-MD,fs/reiser4/plugin/item/.static_stat.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DMODULE
-include include/linux/modversions.h -DKBUILD_BASENAME=static_stat -c -ofs/reiser4/plugin/item/static_stat.o fs/reiser4/plugin/item/static_stat.c fs/reiser4/plugin/item/static_stat.c: In function `sd_load':fs/reiser4/plugin/item/static_stat.c:265: `event' undeclared (first use in this function)fs/reiser4/plugin/item/static_stat.c:265: (Each undeclared identifier is reported only oncefs/reiser4/plugin/item/static_stat.c:265: for each function it appears in.) make[2]: *** [fs/reiser4/plugin/item/static_stat.o] Error 1 make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2
cliffw
Ths is a re-send, haven't received any response, haven't seen any newer snapshots. Attempted to build today with 2.5.47 bk tree, exact same error.
When new code?
cliffw
Quoted 21 lines
attempting to build the 11.05 snapshot, using current bk tree:
-----------------------------------
gcc -Wp,-MD,fs/reiser4/plugin/item/.static_stat.o.d -D__KERNEL__ -Iinclude(quoted diff) +0
-4-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DMODULE -include include/linux/modversions.h -DKBUILD_BASENAME=static_stat -c -o
fs/reiser4/plugin/item/static_stat.ofs/reiser4/plugin/item/static_stat.cfs/reiser4/plugin/item/static_stat.c: In function `sd_load':fs/reiser4/plugin/item/static_stat.c:265: `event' undeclared (first use in this function)fs/reiser4/plugin/item/static_stat.c:265: (Each undeclared identifier is reported only oncefs/reiser4/plugin/item/static_stat.c:265: for each function it appears in.) make[2]: *** [fs/reiser4/plugin/item/static_stat.o] Error 1 make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2cliffw
Quoted 2 lines · Cliff White
Ths is a re-send, haven't received any response, haven't seen any
Sorry for delay.
Quoted 3 lines
newer snapshots. Attempted to build today with 2.5.47 bk tree, exact same error.
When new code?
We hope to produce new snapshot to-morrow.
For now just comment out
inode->i_version = ++event;
in line 265 of fs/reiser4/plugin/item/static_stat.c---you are just compiling with newer version of core kernel than one snapshot was made for.
Quoted 2 lines
cliffw
Nikita.
Quoted 23 lines
Quoted 21 lines
attempting to build the 11.05 snapshot, using current bk tree:
-----------------------------------
gcc -Wp,-MD,fs/reiser4/plugin/item/.static_stat.o.d -D__KERNEL__ -Iinclude(quoted diff) +0
-4-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DMODULE -include include/linux/modversions.h -DKBUILD_BASENAME=static_stat -c -o
fs/reiser4/plugin/item/static_stat.ofs/reiser4/plugin/item/static_stat.cfs/reiser4/plugin/item/static_stat.c: In function `sd_load':fs/reiser4/plugin/item/static_stat.c:265: `event' undeclared (first use in this function)fs/reiser4/plugin/item/static_stat.c:265: (Each undeclared identifier is reported only oncefs/reiser4/plugin/item/static_stat.c:265: for each function it appears in.) make[2]: *** [fs/reiser4/plugin/item/static_stat.o] Error 1 make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2cliffw
Code now builds, module will not install:
modprobe reiser4/lib/modules/2.5.47-rfs/kernel/fs/reiser4/reiser4.o: unresolved symbol balance_dirty_pages /lib/modules/2.5.47-rfs/kernel/fs/reiser4/reiser4.o: unresolved symbol page_states__per_cpu /lib/modules/2.5.47-rfs/kernel/fs/reiser4/reiser4.o: insmod /lib/modules/2.5.47-rfs/kernel/fs/reiser4/reiser4.o failed /lib/modules/2.5.47-rfs/kernel/fs/reiser4/reiser4.o: insmod reiser4 failed
-------------
Will be re-trying on a different machine.
Will try to build reiser4 into the kernel this time.
cliffw
Quoted 5 lines · Cliff White
Code now builds, module will not install:
modprobe reiser4
/lib/modules/2.5.47-rfs/kernel/fs/reiser4/reiser4.o: unresolved symbolbalance_dirty_pages
Hmm. This is strange. balance_dirty_pages() is marked EXPORT_SYMBOL_GPL() in mm/page-writeback.c.
Quoted 2 lines
/lib/modules/2.5.47-rfs/kernel/fs/reiser4/reiser4.o: unresolved symbolpage_states__per_cpu
Yes, this is known bug in the handling of exports of per-cpu data. Try this patch (by Rusty Russell):
----------------------------------------------------------------------
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff \
--minimal linux-2.5.45/include/asm-generic/percpu.h \
working-2.5.45-tmp/include/asm-generic/percpu.h--- linux-2.5.45/include/asm-generic/percpu.h 2002-10-31 12:36:56.000000000 +1100
+++ working-2.5.45-tmp/include/asm-generic/percpu.h 2002-11-02 09:20:06.000000000 \
+1100 @@ -35,4 +35,10 @@ extern unsigned long __per_cpu_offset[NR
#define EXPORT_PER_CPU_SYMBOL(var) EXPORT_SYMBOL(var##__per_cpu) #define EXPORT_PER_CPU_SYMBOL_GPL(var) EXPORT_SYMBOL_GPL(var##__per_cpu)
+/* Genksyms can't follow the percpu declaration. Give it a fake one. */ +#ifdef __GENKSYMS__
+#undef DEFINE_PER_CPU
+#define DEFINE_PER_CPU(type, name) type name##__per_cpu +#endif /*__GENKSYMS__*/
+
#endif /* _ASM_GENERIC_PERCPU_H_ */
----------------------------------------------------------------------
Quoted 7 lines
/lib/modules/2.5.47-rfs/kernel/fs/reiser4/reiser4.o: insmod/lib/modules/2.5.47-rfs/kernel/fs/reiser4/reiser4.ofailed/lib/modules/2.5.47-rfs/kernel/fs/reiser4/reiser4.o: insmod reiser4 failed
-------------
Will be re-trying on a different machine.
Will try to build reiser4 into the kernel this time.
cliffw
Nikita.