LLVM on openSUSE 15.1

Chris Johns chrisj at rtems.org
Tue Sep 17 06:08:21 UTC 2019


On 17/9/19 3:32 pm, Sebastian Huber wrote:
> Hello,
> 
> I didn't get far:
> 
> config.status: creating t/wrap/automake-1.12
> + make -j 12 all
>   GEN      automake
>   GEN      aclocal
>   GEN      t/ax/shell-no-trail-bslash
>   GEN      doc/aclocal.1
>   GEN      doc/automake.1
>   GEN      runtest
>   GEN      t/ax/test-defs.sh
>   GEN      lib/Automake/Config.pm
>   GEN      doc/aclocal-1.12.1
>   GEN      doc/automake-1.12.1
> help2man: can't get `--help' info from automake-1.12
> Try `--no-discard-stderr' if option outputs to stderr
> make: *** [Makefile:4114: doc/automake-1.12.1] Error 255

That is weird because this is what we build for gcc as we need autoconf to boot
strap RTEMS.

> 
> I removed the swig build and ended up here:
> 
> CMake Error: The following variables are used in this project, but they are set
> to NOTFOUND.
> Please set them or make sure they are set and tested correctly in the CMake files:
> /scratch/git-rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/llvm-8.0.1/tools/lldb/scripts/Python/modules/readline/libedit_INCLUDE_DIRS
> 
>    used as include directory in directory
> /scratch/git-rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/llvm-8.0.1/tools/lldb/scripts/Python/modules/readline
> 
> /scratch/git-rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/llvm-8.0.1/tools/lldb/source/Core/libedit_INCLUDE_DIRS
> 
>    used as include directory in directory
> /scratch/git-rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/llvm-8.0.1/tools/lldb/source/Core
> 
> /scratch/git-rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/llvm-8.0.1/tools/lldb/source/Host/libedit_INCLUDE_DIRS
> 
>    used as include directory in directory
> /scratch/git-rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/llvm-8.0.1/tools/lldb/source/Host
> 
> /scratch/git-rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/llvm-8.0.1/tools/lldb/source/Interpreter/libedit_INCLUDE_DIRS
> 
>    used as include directory in directory
> /scratch/git-rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/llvm-8.0.1/tools/lldb/source/Interpreter
> 
> libedit_LIBRARIES (ADVANCED)
>     linked by target "readline" in directory
> /scratch/git-rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/llvm-8.0.1/tools/lldb/scripts/Python/modules/readline

Please disable lldb for you and try again? There is a toggle in the cfg file.

Removing lldb also means swig is not needed.

> I guess I will stick to the openSUSE package for LLVM.

I see this as a valid option for users however I personally would not link a
critical project to the update and upgrade cycle of a distro. If we move from
having LLVM used in some host tools to building RTEMS and applications with
clang things change. The 5/rtems-llvm support is about that and so I think it is
important we can build LLVM from source. Your help in doing this is needed,
welcomed and important. It is not urgent but is something we will need to deal with.

Chris



More information about the devel mailing list