2001-11-13 02:58:02

by Ian Norton

[permalink] [raw]
Subject: 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 : 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


Attachments:
(No filename) (2.14 kB)
lspci-vvv.gz (1.20 kB)
block.o-fail.gz (4.00 kB)
Download all attachments

2001-11-13 14:07:31

by FD Cami

[permalink] [raw]
Subject: Re: Kernel 2.4.14 compile fail (block.o)


Known bug - patch is in 2.4.15pre1
Beware, in pre1 and pre2 netfilter (iptables)
doesn't work.

Fran?ois


Ian Norton wrote:

> 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
>



2001-11-14 22:50:59

by Adrian Bunk

[permalink] [raw]
Subject: Re: Kernel 2.4.14 compile fail (block.o)

On Mon, 12 Nov 2001, Ian Norton wrote:

> 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'
>...

This is a known bug.

The following patch fixes it:

--- linux-2.4.14-broken/drivers/block/loop.c Thu Oct 25 13:58:34 2001
+++ linux-2.4.14/drivers/block/loop.c Mon Nov 5 17:06:08 2001
@@ -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;


> Ian Norton


cu
Adrian

--

Get my GPG key: finger [email protected] | gpg --import

Fingerprint: B29C E71E FE19 6755 5C8A 84D4 99FC EA98 4F12 B400