[llvm-bugs] [Bug 32301] New: LLDB fails to build: readline.cpp:9:31: fatal error: editline/readline.h: No such file or directory

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 16 01:52:37 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=32301

            Bug ID: 32301
           Summary: LLDB fails to build: readline.cpp:9:31: fatal error:
                    editline/readline.h: No such file or directory
           Product: lldb
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: andrewm.roberts at sky.com
                CC: llvm-bugs at lists.llvm.org

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=http://bugzilla.redhat.com/bugzilla --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

-- 
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/20170316/33f58307/attachment.html>


More information about the llvm-bugs mailing list