From 1739aec9e174e4a4f3a162ccbe4137d74ebc1d0d Mon Sep 17 00:00:00 2001
From: Misha Brukman
Date: Thu, 9 Sep 2004 16:36:47 +0000
Subject: [PATCH] If updating from CVS gives error "No rule to make target",
it's faster to just delete .d files than to rebuild from scratch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16258 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/FAQ.html | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/docs/FAQ.html b/docs/FAQ.html
index 3c460de89d9..bf4a47d2106 100644
--- a/docs/FAQ.html
+++ b/docs/FAQ.html
@@ -51,6 +51,8 @@
Compiling LLVM with GCC 3.3.2 fails, what should I do?
When I use the test suite, all of the C Backend tests fail. What is
wrong?
+ After CVS update, rebuilding gives the error "No rule to make
+ target".
Using the GCC Front End
@@ -373,6 +375,37 @@ to the LLVMGCCDIR/bytecode-libs subdirectory.
+
+
After CVS update, rebuilding gives the error "No rule to make target".
+
+
+
+
If the error is of the form:
+
+
+
+gmake[2]: *** No rule to make target `/path/to/somefile', needed by
+`/path/to/another/file.d'.
+Stop.
+
+
+
+
This may occur anytime files are moved within the CVS repository or removed
+entirely. In this case, the best solution is to erase all .d files,
+which list dependencies for source files, and rebuild:
+
+
+
+% cd $LLVM_OBJ_DIR
+% rm -f `find . -name \*\.d`
+% gmake
+
+
+
+
In other cases, it may be necessary to run make clean before
+rebuilding.
+
+