<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - LLDB fails to build: readline.cpp:9:31: fatal error: editline/readline.h: No such file or directory"
href="https://bugs.llvm.org/show_bug.cgi?id=32301">32301</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLDB fails to build: readline.cpp:9:31: fatal error: editline/readline.h: No such file or directory
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>4.0
</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>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andrewm.roberts@sky.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>lldb in 4.0.0 release fails to build on Centos 7.3.1611 system.
Scanning dependencies of target readline
[ 17%] Building CXX object
tools/lldb/scripts/Python/modules/readline/CMakeFiles/readline.dir/readline.cpp.o
/home/aroberts/llvm/llvm/tools/lldb/scripts/Python/modules/readline/readline.cpp:9:31:
fatal error: editline/readline.h: No such file or directory
#include <editline/readline.h>
^
compilation terminated.
tools/lldb/scripts/Python/modules/readline/CMakeFiles/readline.dir/build.make:62:
recipe for target
'tools/lldb/scripts/Python/modules/readline/CMakeFiles/readline.dir/readline.cpp.o'
failed
make[2]: ***
[tools/lldb/scripts/Python/modules/readline/CMakeFiles/readline.dir/readline.cpp.o]
Error 1
CMakeFiles/Makefile2:68844: recipe for target
'tools/lldb/scripts/Python/modules/readline/CMakeFiles/readline.dir/all' failed
make[1]: ***
[tools/lldb/scripts/Python/modules/readline/CMakeFiles/readline.dir/all] Error
2
make[1]: *** Waiting for unfinished jobs....
I thought this was todo with the requirement for python 3.5, so I installed
yum install devtoolset-6-toolchain devtoolset-6-perftools rh-python35
scl enable devtoolset-6 rh-python35 bash
and retried building and got the same error.
Shouldn't the cmake scripts be checking for python versions, and required
modules etc.
System Details
--------------
cat /etc/system-release
CentOS Linux release 7.3.1611 (Core)
uname -a
Linux BlackBox.localdomain 3.10.0-514.10.2.el7.x86_64 #1 SMP Fri Mar 3 00:04:05
UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
scl enable devtoolset-6 rh-python35 bash
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-6/root/usr/libexec/gcc/x86_64-redhat-linux/6.2.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-6/root/usr
--mandir=/opt/rh/devtoolset-6/root/usr/share/man
--infodir=/opt/rh/devtoolset-6/root/usr/share/info
--with-bugurl=<a href="http://bugzilla.redhat.com/bugzilla">http://bugzilla.redhat.com/bugzilla</a> --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id --enable-plugin
--with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj
--with-default-libstdcxx-abi=gcc4-compatible
--with-isl=/builddir/build/BUILD/gcc-6.2.1-20160916/obj-x86_64-redhat-linux/isl-install
--enable-libmpx --enable-gnu-indirect-function --with-tune=generic
--with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 6.2.1 20160916 (Red Hat 6.2.1-3) (GCC)
ld -v
GNU ld version 2.27-10.el7
python --version
Python 3.5.1
/usr/local/bin/cmake --version
cmake version 3.7.0
Build Steps:
version=4.0.0
tar -xJf llvm-${version}.src.tar.xz
mv llvm-${version}.src llvm
tar -xJf cfe-${version}.src.tar.xz
mv cfe-${version}.src llvm/tools/clang
tar -xJf clang-tools-extra-${version}.src.tar.xz
mv clang-tools-extra-${version}.src llvm/tools/clang/tools/extra
tar -xJf compiler-rt-${version}.src.tar.xz
mv compiler-rt-${version}.src llvm/projects/compiler-rt
tar -xJf openmp-${version}.src.tar.xz
mv openmp-${version}.src llvm/projects/openmp
tar -xJf libcxx-${version}.src.tar.xz
mv libcxx-${version}.src llvm/projects/libcxx
tar -xJf libcxxabi-${version}.src.tar.xz
mv libcxxabi-${version}.src llvm/projects/libcxxabi
tar -xJf lld-${version}.src.tar.xz
mv lld-${version}.src llvm/tools/lld
tar -xJf polly-${version}.src.tar.xz
mv polly-${version}.src llvm/tools/polly
tar -xJf lldb-${version}.src.tar.xz
mv lldb-${version}.src llvm/tools/lldb
mkdir build
cd build
/usr/local/bin/cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/local/llv
m-${version} -DCMAKE_BUILD_TYPE=Release ../llvm
ncpu=`nproc`
make -j$ncpu
Let me know if you need more info.
Regards
Andrew Roberts</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>