From a54d4b27b68e33c23097f02690e3634851b416e3 Mon Sep 17 00:00:00 2001
From: Misha Brukman Run configure with an alternative PATH that is
correct. In a Borne compatible shell, the syntax would be: This is still somewhat inconvenient, but it allows configure
to do its work without having to adjust your PATH
@@ -278,9 +276,9 @@ old version. What do I do? If the Makefile is new, you will have to modify the configure script to copy
it over. For example, if you built LLVM with the command: ...then you must run the tests with the following commands: tags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61143 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/FAQ.html | 56 ++++++++++++++++++--------------------------------------
1 file changed, 18 insertions(+), 38 deletions(-)
(limited to 'docs')
diff --git a/docs/FAQ.html b/docs/FAQ.html
index 663c3a1..7533312 100644
--- a/docs/FAQ.html
+++ b/docs/FAQ.html
@@ -234,11 +234,9 @@ it:
+
% PATH=[the path without the bad program] ./configure ...
-% ./config.status <relative path to Makefile>
-
+% ./config.status <relative path to Makefile>
+
% gmake ENABLE_PROFILING=1
-
+% gmake ENABLE_PROFILING=1
+
+
% cd llvm/test
% gmake ENABLE_PROFILING=1
-
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 Subversion 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.
@@ -540,13 +532,11 @@ find libcrtend.a. The only way this can happen is if you haven't installed the runtime library. To correct this, do: -+% cd llvm/runtime % make clean ; make install-bytecode
@@ -583,21 +573,17 @@ C++ support for a processor that does not otherwise have a C++ compiler.
Compile your program as normal with llvm-g++:
-+% llvm-g++ x.cpp -o program-
or:
-+% llvm-g++ a.cpp -c % llvm-g++ b.cpp -c % llvm-g++ a.o b.o -o program-
With llvm-gcc3, this will generate program and program.bc. The .bc file is the LLVM version of the program all linked together.
Convert the LLVM code to C code, using the LLC tool with the C backend:
-+% llc -march=c program.bc -o program.c --
Finally, compile the C file:
-+% cc x.c --
+int X() { int i; return i; }-
Is compiled to "ret i32 undef" because "i" never has a value specified for it.
-- cgit v1.1