[llvm-dev] fatal error: clang/Basic/Version.inc: No such file or directory

don hinton via llvm-dev llvm-dev at lists.llvm.org
Sun Aug 6 21:17:11 PDT 2017


Looks like you put lldb in the wrong place.  It should be in llvm/tools,
not llvm/projects.

hth...
don

On Thu, Aug 3, 2017 at 4:47 AM, Siegmar Gross via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi,
>
> I try to build lldb with Cmake (gcc-5.3.0 is necessary for CUDA)
> on my "SUSE Linux Enterprise Server 12.2 (x86_64)". Unfortunately
> the build process breaks for lldb with the below mentioned error
> message. I've downloaded the following packages and configured
> with the following commands.
>
>
> svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
> cd llvm/tools
> svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
> svn co http://llvm.org/svn/llvm-project/polly/trunk polly
> cd clang/tools
> svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk/ extra
> cd ../../../projects
> svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
> svn co http://llvm.org/svn/llvm-project/openmp/trunk openmp
> svn co http://llvm.org/svn/llvm-project/lldb/trunk lldb
> svn co https://github.com/clang-ykt/openmp libomptarget
> cd ../..
>
> rm -r build
> mkdir build
> cd build
> cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/llvm-trunk \
>   -DCMAKE_BUILD_TYPE:STRING="Release" \
>   -DLLVM_PARALLEL_COMPILE_JOBS:STRING="4" \
>   -DLLVM_PARALLEL_LINK_JOBS:STRING="4" \
>   -DLLVM_TARGETS_TO_BUILD:STRING="NVPTX;X86" \
>   -DLLVM_ENABLE_SPHINX:BOOL=ON \
>   -DSPHINX_OUTPUT_MAN:BOOL=ON \
>   -DCMAKE_C_COMPILER:STRING="/usr/local/gcc-5.3.0/bin/gcc" \
>   -DCMAKE_C_FLAGS:STRING="-m64 -I/usr/local/valgrind/include" \
>   -DCMAKE_CXX_COMPILER:STRING="/usr/local/gcc-5.3.0/bin/g++" \
>   -DCMAKE_CXX_FLAGS:STRING="-m64 -I/usr/local/valgrind/include" \
>   -DCMAKE_EXE_LINKER_FLAGS:STRING="-m64" \
>   -DLLVM_LIBDIR_SUFFIX:STRING="64" \
>   -DLLVM_POLLY_LINK_INTO_TOOLS:BOOL=ON \
>
> -DLIBOMPTARGET_DEP_LIBELF_INCLUDE_DIR:STRING="/usr/local/elfutils-0.169/include"
> \
>
> -DLIBOMPTARGET_DEP_LIBELF_LIBRARIES:STRING="/usr/local/elfutils-0.169/lib64/libelf.so"
> \
>   -DLIBOMPTARGET_DEP_LIBFFI_INCLUDE_DIR:STRING="/usr/include" \
>   -DLIBOMPTARGET_DEP_LIBFFI_LIBRARIES:STRING="/usr/lib64/libffi.so" \
>   -DCUDA_INCLUDE_DIRS:STRING="/usr/local/cuda/include" \
>   -DCUDA_LIBRARIES:STRING="/usr/local/cuda/lib64/libcudart.so" \
>   -DBUILD_SHARED_LIBS:BOOL=ON \
>   ../llvm \
>   |& tee log.cmake
> cmake --build . |& tee log.cmake-build
>
>
> ...
> [ 41%] Linking CXX shared library ../../../../../lib64/libclangR
> ewriteFrontend.so
> [ 41%] Built target clangRewriteFrontend
> [ 41%] Generating SVNVersion.inc
> -- Found Subversion: /usr/bin/svn (found version "1.8.10")
> Scanning dependencies of target lldbBase
> [ 41%] Building CXX object projects/lldb/source/CMakeFile
> s/lldbBase.dir/lldb.cpp.o
> In file included from /export2/src/llvm-trunk/llvm/p
> rojects/lldb/source/lldb.cpp:15:0:
> /export2/src/llvm-trunk/llvm/tools/clang/include/clang/Basic/Version.h:19:35:
> fatal error: clang/Basic/Version.inc: No such file or directory
> compilation terminated.
> projects/lldb/source/CMakeFiles/lldbBase.dir/build.make:67: recipe for
> target 'projects/lldb/source/CMakeFiles/lldbBase.dir/lldb.cpp.o' failed
> gmake[2]: *** [projects/lldb/source/CMakeFiles/lldbBase.dir/lldb.cpp.o]
> Error 1
> CMakeFiles/Makefile2:7755: recipe for target 'projects/lldb/source/CMakeFiles/lldbBase.dir/all'
> failed
> gmake[1]: *** [projects/lldb/source/CMakeFiles/lldbBase.dir/all] Error 2
> Makefile:149: recipe for target 'all' failed
> gmake: *** [all] Error 2
> loki build 564
>
>
> Is it necessary to download more packages to avoid the error or results the
> problem from an error of the lldb package? I would be grateful if somebody
> can tell me which additional package is necessary or if somebody can fix
> the problem. Thank you very much for any help in advance.
>
>
> Kind regards
>
> Siegmar
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170806/0c0f19b0/attachment.html>


More information about the llvm-dev mailing list