compiler errors: md needed for hardware raid?
Hi,
when trying to compile the 2.4.21 kernel I get compiler errors within
/drivers/md:
make[4]: Entering directory `/usr/src/kernel-source-2.4.21/drivers/md'
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6
-nostdinc -iwithprefix include -DKBUILD_BASENAME=linear -c -o linear.o
linear.c
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6
-nostdinc -iwithprefix include -DKBUILD_BASENAME=raid0 -c -o raid0.o
raid0.c
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6
-nostdinc -iwithprefix include -DKBUILD_BASENAME=raid1 -c -o raid1.o
raid1.c
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6
-nostdinc -iwithprefix include -DKBUILD_BASENAME=raid5 -c -o raid5.o
raid5.c
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev5 -Wa,-mev6
-nostdinc -iwithprefix include -DKBUILD_BASENAME=xor -DEXPORT_SYMTAB
-c xor.c
In file included from xor.c:23:
/usr/src/kernel-source-2.4.21/include/asm/xor.h:35:5: missing
terminating " character
In file included from xor.c:23:
/usr/src/kernel-source-2.4.21/include/asm/xor.h:36: error: request for
member `text' in something not a structure or union
/usr/src/kernel-source-2.4.21/include/asm/xor.h:37: error: syntax error
before numeric constant
/usr/src/kernel-source-2.4.21/include/asm/xor.h:62: error: syntax error
at '#' token
/usr/src/kernel-source-2.4.21/include/asm/xor.h:87:17: invalid suffix
"b" on integer constant
/usr/src/kernel-source-2.4.21/include/asm/xor.h:119: error: syntax error
at '#' token
/usr/src/kernel-source-2.4.21/include/asm/xor.h:120: error: syntax error
at '#' token
/usr/src/kernel-source-2.4.21/include/asm/xor.h:121: error: syntax error
at '#' token
/usr/src/kernel-source-2.4.21/include/asm/xor.h:122: error: syntax error
at '#' token
....
....
xor.c: In function `calibrate_xor_block':
xor.c:117: error: `xor_block_alpha' undeclared (first use in this
function)
xor.c:117: error: (Each undeclared identifier is reported only once
xor.c:117: error: for each function it appears in.)
make[4]: *** [xor.o] Error 1
make[4]: Leaving directory `/usr/src/kernel-source-2.4.21/drivers/md'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/kernel-source-2.4.21/drivers/md'
make[2]: *** [_subdir_md] Error 2
make[2]: Leaving directory `/usr/src/kernel-source-2.4.21/drivers'
make[1]: *** [_dir_drivers] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.21'
make: *** [stamp-build] Error 2
I couldn't find anything on this error at google, so my question is: is
the md driver needed for hardware raids or is it just for software
raids? So I could perhaps completely leave it out...
Lars
Reply to: