Skip to contentSkip to conversation

Kernel 2.4.14 compile fail (block.o)

DISCUSSION Ian Norton 3 participants 3 messages Nov 13, 2001 – Nov 14, 2001 Block layer

lore
Share & tools
lore

Ian Norton

author
#0 lore raw

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 : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 3
model name : AMD Duron(tm) Processor
stepping : 1
cpu MHz : 800.042
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_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

#1 lore raw

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 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 : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 3
model name : AMD Duron(tm) Processor
stepping : 1
cpu MHz : 800.042
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_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

#2 lore raw
In reply to 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 to deactivate_page' # drivers/block/block.o(.text+0x89a9): undefined reference to deactivate_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