Kernel 2.4.14 compile fail (block.o)
Hi :-),
-- One Liner: make dep is fine but block.o fails to compile
--Problem:
Make menuconfig for a pretty standard kernel, set for no driver modules, make bzImage fails at block.o,
# drivers/block/block.o: In function `lo_send':
# drivers/block/block.o(.text+0x895f): undefined reference to deactivate_page' # drivers/block/block.o(.text+0x89a9): undefined reference to deactivate_page'
The currently running system is going along just fine with 2.4.2 no problems at all, good uptime,
Ive built plenty of kernels easily before, ive re created this problem on three machines with very different linux setups (kernel, distro, gcc version..)
(menuconfigs saved and attached as bloc.o-fail.gz)
--- /proc/version
Linux version 2.4.2 ([email protected]) (gcc version 2.95.3 19991030 (prerelease)) #8 Thu Oct 4 15:59:45 BST 2001
--- ver_linux
linux orion.dsh.org.uk 2.4.2 #8 Thu Oct 4 15:59:45 BST 2001 i686 unknown
Gnu C 2.95.3 Gnu make 3.79.1 binutils 2.10.0.24 util-linux 2.10b mount 2.11b modutils 2.4.3 e2fsprogs 1.19 PPP 2.3.10 Linux C Library 2.2.2 Dynamic linker (ldd) 2.2.2 Procps 2.0.7 Net-tools 1.59 Console-tools 0.2.2 Sh-utils 2.0
Modules Loaded
--- host info
Machine Spec
CPU : 1x AMD Duron 800Mhz
RAM : 128Mb PC133
M/B : GIGABYTE (VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 3))
--- /proc/cpuinfo
processor : 0vendor_id : AuthenticAMD
cpu family : 6
model : 3
model name : AMD Duron(tm) Processor
stepping : 1
cpu MHz : 800.042
cache size : 64 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips : 1595.80
--- lspci -vvv included as gzip
--- no scsi in system
--- no modules loaded at all (ever)
Hope this has been a helpful bug report
Ian Norton
Known bug - patch is in 2.4.15pre1
Beware, in pre1 and pre2 netfilter (iptables)
doesn't work.
François
Quoted 76 lines · Ian Norton
Hi :-),
-- One Liner: make dep is fine but block.o fails to compile
--Problem:
Make menuconfig for a pretty standard kernel, set for no driver modules, make bzImage fails at block.o,#
drivers/block/block.o: In function `lo_send':
# drivers/block/block.o(.text+0x895f): undefined reference todeactivate_page' # drivers/block/block.o(.text+0x89a9): undefined reference todeactivate_page'The currently running system is going along just fine with 2.4.2 no problems at all, good uptime,
Ive built plenty of kernels easily before, ive re created this problem on three machines with very different linux setups (kernel, distro, gcc version..)(menuconfigs saved and attached as bloc.o-fail.gz)
---
/proc/version
Linux version 2.4.2 ([email protected]) (gcc version 2.95.3 19991030 (prerelease)) #8 Thu Oct 4 15:59:45 BST 2001---
ver_linux
linux orion.dsh.org.uk 2.4.2 #8 Thu Oct 4 15:59:45 BST 2001 i686 unknownGnu C 2.95.3 Gnu make 3.79.1 binutils 2.10.0.24 util-linux 2.10b mount 2.11b modutils 2.4.3 e2fsprogs 1.19 PPP 2.3.10 Linux C Library 2.2.2 Dynamic linker (ldd) 2.2.2 Procps 2.0.7 Net-tools 1.59 Console-tools 0.2.2 Sh-utils 2.0Modules Loaded
--- host info
Machine Spec
CPU : 1x AMD Duron 800Mhz
RAM : 128Mb PC133
M/B : GIGABYTE (VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 3))---
/proc/cpuinfo
processor : 0vendor_id: AuthenticAMD
cpu family : 6
model : 3
model name : AMD Duron(tm) Processor
stepping : 1
cpu MHz : 800.042
cache size : 64 KBfdiv_bug: nohlt_bug: nof00f_bug: nocoma_bug: no
fpu : yesfpu_exception: yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips : 1595.80--- lspci -vvv included as gzip
--- no scsi in system
--- no modules loaded at all (ever)Hope this has been a helpful bug report
Ian Norton
Quoted 4 lines · Ian Norton
Hi :-),
-- One Liner: make dep is fine but block.o fails to compile
Quoted 8 lines
--Problem:
Make menuconfig for a pretty standard kernel, set for no driver modules, make bzImage fails at block.o,#
drivers/block/block.o: In function `lo_send':
# drivers/block/block.o(.text+0x895f): undefined reference todeactivate_page' # drivers/block/block.o(.text+0x89a9): undefined reference todeactivate_page'
...
This is a known bug.
The following patch fixes it:
drivers/block/loop.c +0 -2
@@ -207,7 +207,6 @@ index++; pos += size;UnlockPage (page); -deactivate_page (page);page_cache_release (page); }return 0 ;
@@ -218,7 +217,6 @@kunmap (page); unlock:UnlockPage (page); -deactivate_page (page);page_cache_release (page); fail:return -1 ;
Quoted 1 line
Ian Norton
cu
Adrian
Signature · 3 lines
Get my GPG key: finger [email protected] | gpg --import Fingerprint: B29C E71E FE19 6755 5C8A 84D4 99FC EA98 4F12 B400