[LLVMbugs] [Bug 20840] New: Clang autoconf build doesn't generate PROFILE-PIC version of compiler-rt
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Sep 2 23:09:48 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20840
Bug ID: 20840
Summary: Clang autoconf build doesn't generate PROFILE-PIC
version of compiler-rt
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Keywords: compile-fail
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: alaviss0 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140903/57170f56/attachment.html>
More information about the llvm-bugs
mailing list