Skip to content

Commit 3c0d59f

Browse files
author
John Criswell
committed
Added a remark about setting LLVM_LIB_SEARCH_PATH. I forgot to do this on
PowerPC, and it made the test results scary. llvm-svn: 12509
1 parent 510529f commit 3c0d59f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

llvm/docs/FAQ.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
<li>I've built LLVM and am testing it, but the tests freeze.</li>
5050
<li>Why do test results differ when I perform different types of builds?</li>
5151
<li>Compiling LLVM with GCC 3.3.2 fails, what should I do?</li>
52+
<li>When I use the test suite, all of the C Backend tests fail. What is
53+
wrong?</li>
5254
</ol></li>
5355

5456
<li><a href="#cfe">Using the GCC Front End</a>
@@ -338,6 +340,31 @@
338340
affects projects other than LLVM. Try upgrading or downgrading your GCC.</p>
339341
</div>
340342

343+
<div class="question">
344+
<p>
345+
When I use the test suite, all of the C Backend tests fail. What is
346+
wrong?
347+
</p>
348+
</div>
349+
350+
<div class="answer">
351+
<p>
352+
If you build LLVM and the C Backend tests fail in <tt>llvm/test/Programs</tt>,
353+
then chances are good that the directory pointed to by the LLVM_LIB_SEARCH_PATH
354+
environment variable does not contain the libcrtend.a library.
355+
</p>
356+
357+
<p>
358+
To fix it, verify that LLVM_LIB_SEARCH_PATH points to the correct directory
359+
and that libcrtend.a is inside. For pre-built LLVM GCC front ends, this
360+
should be the absolute path to
361+
<tt>cfrontend/&lt;<i>platform</i>&gt;/llvm-gcc/bytecode-libs</tt>. If you've
362+
built your own LLVM GCC front end, then ensure that you've built and installed
363+
the libraries in <tt>llvm/runtime</tt> and have LLVM_LIB_SEARCH_PATH pointing
364+
to the <tt>LLVMGCCDIR/bytecode-libs</tt> subdirectory.
365+
</p>
366+
</div>
367+
341368
<!-- *********************************************************************** -->
342369
<div class="doc_section">
343370
<a name="cfe">Using the GCC Front End</a>

0 commit comments

Comments
 (0)