rtems-source-builder: I cannot build 5/rtems-llvm

Chris Johns chrisj at rtems.org
Mon Jan 27 22:36:43 UTC 2020


Hi,

On 23/1/20 10:45 pm, Павел Трошин wrote:
> Hello,
>  
> I want to build 5/rtems-llvm and run
> ../source-builder/sb-set-builder 5/rtems-llvm --prefix=/opt/rtems-llvm/5
> --bset-tar-file --pkg-tar-files --no-install
>  
> But have error:
>  
> CMake Error at
> /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
>   Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
> Call Stack (most recent call first):
>   /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378
> (_FPHSA_FAILURE_MESSAGE)
>   /usr/share/cmake-3.10/Modules/FindSWIG.cmake:63
> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>   tools/lldb/scripts/CMakeLists.txt:18 (find_package)
> 
> -- Configuring incomplete, errors occurred!
> See also
> "/home/pavelt/rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/build/CMakeFiles/CMakeOutput.log".
> See also
> "/home/pavelt/rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/build/CMakeFiles/CMakeError.log".
> shell cmd failed: /bin/sh -ex 
> /home/pavelt/rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/do-build
> error: building rtems-llvm-8.0.1-x86_64-linux-gnu-1
>  
> How I’ve understood swig was installed to
> /home/pavelt/rtems-source-builder/rtems/build/tmp/sb-1000/devel/swig but then
> swig was cleaned:
>  
> ==> %clean:
> cleaning: swig-4.0.1-x86_64-linux-gnu-1
> removing:
> /home/pavelt/rtems-source-builder/rtems/build/tmp/swig-4.0.1-x86_64-linux-gnu-1-1000
> removing:
> /home/pavelt/rtems-source-builder/rtems/build/swig-4.0.1-x86_64-linux-gnu-1
> removing: /home/pavelt/rtems-source-builder/rtems/build/tmp/sb-1000/devel/swig
>  
> and on next step llvm cannot find swig

What host are you using?

Is the RSB building SWIG for you host?

> And next question. Can I build RTEMS with rtems-llvm toolchain?

You should be able to. RTEMS currently has no support for llvm in master.

Chris


More information about the users mailing list