<div dir="ltr"><div>Can you run it from the bin subdir in your build directory? Try running "make check-lldb".</div><div><br></div>Also, what happened when you ran "make install"? Did you see any errors?</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 7, 2017 at 7:04 AM, Siegmar Gross via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Don,<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Looks like you put lldb in the wrong place. It should be in llvm/tools, not llvm/projects.<br>
</blockquote>
<br></span>
Thank you very much for your answer. I started from the beginning and<br>
checked out the following projects.<br>
<br>
rm -r llvm<span class=""><br>
svn co <a href="http://llvm.org/svn/llvm-project/llvm/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/llvm/trunk</a> llvm<br>
cd llvm/tools<br>
svn co <a href="http://llvm.org/svn/llvm-project/cfe/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/cfe/trunk</a> clang<br>
svn co <a href="http://llvm.org/svn/llvm-project/polly/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/polly/trunk</a> polly<br></span><span class="">
svn co <a href="http://llvm.org/svn/llvm-project/lldb/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/lldb/trunk</a> lldb<br>
cd clang/tools<br>
svn co <a href="http://llvm.org/svn/llvm-project/clang-tools-extra/trunk/" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/clang-tools-extra/trunk/</a> extra<br>
cd ../../../projects<br>
svn co <a href="http://llvm.org/svn/llvm-project/compiler-rt/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/compiler-rt/trunk</a> compiler-rt<br>
svn co <a href="http://llvm.org/svn/llvm-project/openmp/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/openmp/trunk</a> openmp<br>
svn co <a href="https://github.com/clang-ykt/openmp" rel="noreferrer" target="_blank">https://github.com/clang-ykt/o<wbr>penmp</a> libomptarget<br>
cd ../..<br>
<br></span>
I was able to build and install everything without errors. Unfortunately,<br>
it seems that I don't have "lldb". The same is still true for "libomptarget".<br>
<br>
<br>
loki build 126 ls -l /usr/local/llvm-trunk/bin/*lld<wbr>b*<br>
ls: No match.<br>
loki build 127 ls -l /usr/local/llvm-trunk/lib64/*l<wbr>ldb*<br>
ls: No match.<br>
loki build 128 ls -l /usr/local/llvm-trunk/lib64/*o<wbr>mptarget*<br>
ls: No match.<br>
loki build 129<br>
<br>
Do you know what I'm doing wrong? I used the commands further down from my<br>
last email to build everything.<br>
<br>
loki build 130 grep lldb log.*<br>
log.cmake-build:[ 90%] Building CXX object tools/lldb/lib/Config/CMakeFil<wbr>es/lldConfig.dir/Version.cpp.o<br>
...<br>
log.cmake-build:[ 90%] Building CXX object tools/lldb/lib/Core/CMakeFiles<wbr>/lldCore.dir/Writer.cpp.o<br>
log.cmake-build:[ 90%] Building CXX object tools/lldb/lib/ReaderWriter/YA<wbr>ML/CMakeFiles/lldYAML.dir/Read<wbr>erWriterYAML.cpp.o<br>
log.cmake-build:[ 90%] Building CXX object tools/lldb/lib/ReaderWriter/CM<wbr>akeFiles/lldReaderWriter.dir/<wbr>FileArchive.cpp.o<br>
log.cmake-build:[ 90%] Building CXX object tools/lldb/lib/ReaderWriter/Ma<wbr>chO/CMakeFiles/lldMachO.dir/Ar<wbr>chHandler.cpp.o<br>
...<br>
log.cmake-build:[ 90%] Building CXX object tools/lldb/lib/ReaderWriter/Ma<wbr>chO/CMakeFiles/lldMachO.dir/Wr<wbr>iterMachO.cpp.o<br>
log.cmake-build:[ 90%] Building CXX object tools/lldb/lib/Driver/CMakeFil<wbr>es/lldDriver.dir/DarwinLdDrive<wbr>r.cpp.o<br>
log.cmake-build:[ 90%] Building CXX object tools/lldb/ELF/CMakeFiles/lldE<wbr>LF.dir/Arch/AArch64.cpp.o<br>
...<br>
log.cmake-build:[ 92%] Building CXX object tools/lldb/ELF/CMakeFiles/lldE<wbr>LF.dir/Writer.cpp.o<br>
log.cmake-build:[ 92%] Building CXX object tools/lldb/COFF/CMakeFiles/lld<wbr>COFF.dir/Chunks.cpp.o<br>
...<br>
log.cmake-build:[ 92%] Building CXX object tools/lldb/COFF/CMakeFiles/lld<wbr>COFF.dir/Writer.cpp.o<br>
log.cmake-build:[ 92%] Building CXX object tools/lldb/tools/lld/CMakeFile<wbr>s/lld.dir/lld.cpp.o<br>
loki build 131<span class=""><br>
<br>
<br>
Thank you very much for any help in advance.<br>
<br>
<br>
Kind regards<br>
<br>
Siegmar<br>
<br>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
hth...<br>
don<div><div class="h5"><br>
<br>
On Thu, Aug 3, 2017 at 4:47 AM, Siegmar Gross via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a> <mailto:<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.or<wbr>g</a>>> wrote:<br>
<br>
Hi,<br>
<br>
I try to build lldb with Cmake (gcc-5.3.0 is necessary for CUDA)<br>
on my "SUSE Linux Enterprise Server 12.2 (x86_64)". Unfortunately<br>
the build process breaks for lldb with the below mentioned error<br>
message. I've downloaded the following packages and configured<br>
with the following commands.<br>
<br>
<br>
svn co <a href="http://llvm.org/svn/llvm-project/llvm/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/llvm/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/llvm/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proj<wbr>ect/llvm/trunk</a>> llvm<br>
cd llvm/tools<br>
svn co <a href="http://llvm.org/svn/llvm-project/cfe/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/cfe/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/cfe/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proj<wbr>ect/cfe/trunk</a>> clang<br>
svn co <a href="http://llvm.org/svn/llvm-project/polly/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/polly/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/polly/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proj<wbr>ect/polly/trunk</a>> polly<br>
cd clang/tools<br>
svn co <a href="http://llvm.org/svn/llvm-project/clang-tools-extra/trunk/" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/clang-tools-extra/trunk/</a><br>
<<a href="http://llvm.org/svn/llvm-project/clang-tools-extra/trunk/" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proj<wbr>ect/clang-tools-extra/trunk/</a>> extra<br>
cd ../../../projects<br>
svn co <a href="http://llvm.org/svn/llvm-project/compiler-rt/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/compiler-rt/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/compiler-rt/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proj<wbr>ect/compiler-rt/trunk</a>> compiler-rt<br>
svn co <a href="http://llvm.org/svn/llvm-project/openmp/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/openmp/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/openmp/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proj<wbr>ect/openmp/trunk</a>> openmp<br>
svn co <a href="http://llvm.org/svn/llvm-project/lldb/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/lldb/trunk</a><br>
<<a href="http://llvm.org/svn/llvm-project/lldb/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proj<wbr>ect/lldb/trunk</a>> lldb<br>
svn co <a href="https://github.com/clang-ykt/openmp" rel="noreferrer" target="_blank">https://github.com/clang-ykt/o<wbr>penmp</a><br>
<<a href="https://github.com/clang-ykt/openmp" rel="noreferrer" target="_blank">https://github.com/clang-ykt/<wbr>openmp</a>> libomptarget<br>
cd ../..<br>
<br>
rm -r build<br>
mkdir build<br>
cd build<br>
cmake -DCMAKE_INSTALL_PREFIX:PATH=/u<wbr>sr/local/llvm-trunk \<br>
-DCMAKE_BUILD_TYPE:STRING="Re<wbr>lease" \<br>
-DLLVM_PARALLEL_COMPILE_JOBS:<wbr>STRING="4" \<br>
-DLLVM_PARALLEL_LINK_JOBS:STR<wbr>ING="4" \<br>
-DLLVM_TARGETS_TO_BUILD:STRIN<wbr>G="NVPTX;X86" \<br>
-DLLVM_ENABLE_SPHINX:BOOL=ON \<br>
-DSPHINX_OUTPUT_MAN:BOOL=ON \<br>
-DCMAKE_C_COMPILER:STRING="/u<wbr>sr/local/gcc-5.3.0/bin/gcc" \<br>
-DCMAKE_C_FLAGS:STRING="-m64 -I/usr/local/valgrind/include" \<br>
-DCMAKE_CXX_COMPILER:STRING="<wbr>/usr/local/gcc-5.3.0/bin/g++" \<br>
-DCMAKE_CXX_FLAGS:STRING="-<wbr>m64 -I/usr/local/valgrind/include" \<br>
-DCMAKE_EXE_LINKER_FLAGS:STRI<wbr>NG="-m64" \<br>
-DLLVM_LIBDIR_SUFFIX:STRING="<wbr>64" \<br>
-DLLVM_POLLY_LINK_INTO_TOOLS:<wbr>BOOL=ON \<br>
<br>
-DLIBOMPTARGET_DEP_LIBELF_INCL<wbr>UDE_DIR:STRING="/usr/local/<wbr>elfutils-0.169/include"<br>
\<br>
<br>
-DLIBOMPTARGET_DEP_LIBELF_LIBR<wbr>ARIES:STRING="/usr/local/elfut<wbr>ils-0.169/lib64/libelf.so"<br>
\<br>
-DLIBOMPTARGET_DEP_LIBFFI_INC<wbr>LUDE_DIR:STRING="/usr/include" \<br>
-DLIBOMPTARGET_DEP_LIBFFI_LIB<wbr>RARIES:STRING="/usr/lib64/libf<wbr>fi.so" \<br>
-DCUDA_INCLUDE_DIRS:STRING="/<wbr>usr/local/cuda/include" \<br>
-DCUDA_LIBRARIES:STRING="/<wbr>usr/local/cuda/lib64/<wbr>libcudart.so" \<br>
-DBUILD_SHARED_LIBS:BOOL=ON \<br>
../llvm \<br>
|& tee log.cmake<br>
cmake --build . |& tee log.cmake-build<br>
<br>
<br>
...<br>
[ 41%] Linking CXX shared library<br>
../../../../../lib64/libclangR<wbr>ewriteFrontend.so<br>
[ 41%] Built target clangRewriteFrontend<br>
[ 41%] Generating SVNVersion.inc<br>
-- Found Subversion: /usr/bin/svn (found version "1.8.10")<br>
Scanning dependencies of target lldbBase<br>
[ 41%] Building CXX object<br>
projects/lldb/source/CMakeFile<wbr>s/lldbBase.dir/lldb.cpp.o<br>
In file included from<br>
/export2/src/llvm-trunk/llvm/p<wbr>rojects/lldb/source/lldb.cpp:1<wbr>5:0:<br>
/export2/src/llvm-trunk/llvm/t<wbr>ools/clang/include/clang/Basic<wbr>/Version.h:19:35: fatal<br>
error: clang/Basic/Version.inc: No such file or directory<br>
compilation terminated.<br>
projects/lldb/source/CMakeFile<wbr>s/lldbBase.dir/build.make:67: recipe for<br>
target 'projects/lldb/source/CMakeFil<wbr>es/lldbBase.dir/lldb.cpp.o' failed<br>
gmake[2]: *** [projects/lldb/source/CMakeFil<wbr>es/lldbBase.dir/lldb.cpp.o] Error 1<br>
CMakeFiles/Makefile2:7755: recipe for target<br>
'projects/lldb/source/CMakeFil<wbr>es/lldbBase.dir/all' failed<br>
gmake[1]: *** [projects/lldb/source/CMakeFil<wbr>es/lldbBase.dir/all] Error 2<br>
Makefile:149: recipe for target 'all' failed<br>
gmake: *** [all] Error 2<br>
loki build 564<br>
<br>
<br>
Is it necessary to download more packages to avoid the error or results the<br>
problem from an error of the lldb package? I would be grateful if somebody<br>
can tell me which additional package is necessary or if somebody can fix<br>
the problem. Thank you very much for any help in advance.<br>
<br>
<br>
Kind regards<br>
<br>
Siegmar<br>
<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br></div></div>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a> <mailto:<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.or<wbr>g</a>><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin<wbr>/mailman/listinfo/llvm-dev</a>><br>
<br>
</blockquote><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</div></div></blockquote></div><br></div>