<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Clang autoconf build doesn't generate PROFILE-PIC version of compiler-rt"
href="http://llvm.org/bugs/show_bug.cgi?id=20840">20840</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang autoconf build doesn't generate PROFILE-PIC version of compiler-rt
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Keywords</th>
<td>compile-fail
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alaviss0@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Overview:
Building LLVM/Clang with GNU autoconf (./configure) doesn't generate
libclang_rt.profile-pic-x86_64.a needed for clang to link with
"-fprofile-instr-generate -fPIC"
Steps to Reproduce:
1) Compile LLVM/clang with GNU autoconf, below is the options I've used
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-shared \
--enable-libffi \
--enable-targets=all \
--disable-expensive-checks \
--disable-debug-runtime \
--disable-assertions \
--with-binutils-include=/usr/include \
--with-python=/usr/bin/python2 \
--enable-cxx1y --enable-libcpp \
--enable-optimized
2) Build an library with {C,CXX}FLAGS="-fprofile-instr-generate"
Expected Results:
Build successful with no problems
Actual Results:
Build failed, GNU ld error:
/usr/bin/ld: error: cannot open
/usr/bin/../lib/clang/3.6.0/lib/linux/libclang_rt.profile-pic-x86_64.a: No such
file or directory
Additional Information: libclang_rt.profile-pic-x86_64.a presents in cmake
build</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>