OSDN Git Service

doc: fix examples and add suggestions about depmod
authorWilly Tarreau <w@1wt.eu>
Sun, 21 Sep 2008 21:18:32 +0000 (23:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 22 Sep 2008 04:32:20 +0000 (06:32 +0200)
Grant Coady has reported these useful suggestions and workaround
for possible build errors related to building a new compiler.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Documentation/using-newer-gcc.txt

index 3f4d373..a2c6593 100644 (file)
@@ -161,11 +161,21 @@ above, or /usr/local/bin if none was specified :
 The compiler just has to be passed to "make" via the "CC" variable for all
 commands :
 
-  $ make CC=/opt/kgcc/bin/kernel-gcc -j 4 dep bzImage modules modules_install
+  $ make CC=/opt/kgcc/bin/kernel-gcc -j 4 dep bzImage modules
+  $ sudo make CC=/opt/kgcc/bin/kernel-gcc modules_install install
 
   or more simply, when you have it in your path :
 
-  $ make CC=kernel-gcc -j 4 dep bzImage modules modules_install
+  $ make CC=kernel-gcc -j 4 dep bzImage modules
+  $ sudo make CC=kernel-gcc -j 4 modules_install install
+
+Note: make modules_install needs a 2.4-compatible depmod. If your distro is
+      2.6-based and says it does not find depmod or depmod.old, it means that
+      either modutils or module-init-tools have not been correctly installed.
+      You can still force the path to depmod by passing it in the DEPMOD
+      variable during make modules_install if you know where to find a good
+      one.
+
 
 7) I want to use a really old compiler, but compiling it breaks!
 -----------------------------------------------------------------