Re: 2.4.0-test1-ac20 -- Error linking the kernel -- "ld: cannot open drivers/block/block.a"

From: Miles Lane (miles@speakeasy.org)
Date: Sun Jun 18 2000 - 01:32:34 EST


It appears that a change was made to the drivers/block/Makefile that
causes block.o to be compiled rather than block.a. In the top-level
Makefile, the reference to block.a was not changed to pull in the new
filename. I am not sure which name ought to be used, but obviously,
they need to match.

        Miles

Here's the offending code change (from the ac20 patch):

diff -u --new-file --recursive --exclude-from /usr/src/exclude
linux.vanilla/drivers/block/Makefile linux.ac/drivers/block/Makefile
--- linux.vanilla/drivers/block/Makefile Thu May 25 17:37:59 2000
+++ linux.ac/drivers/block/Makefile Sat Jun 17 18:50:51 2000
@@ -1,15 +1,9 @@
 #
 # Makefile for the kernel block device drivers.
 #
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-# Note 2! The CFLAGS definition is now inherited from the
-# parent makefile.
-#
-
-#
+# 12 June 2000, Christoph Hellwig <schch@pe.tu-clausthal.de>
+# Rewritten to use lists instead of if-statements.
+#
 # Note : at this point, these files are compiled on all systems.
 # In the future, some of these should be built conditionally.
 #
@@ -18,172 +12,40 @@
 MOD_SUB_DIRS := $(SUB_DIRS)
 ALL_SUB_DIRS := $(SUB_DIRS) paride
 
+O_TARGET := block.o
+MOD_LIST_NAME := BLOCK_MODULES
 
-L_TARGET := block.a

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:15 EST