<HTML><BODY><div><div>I am using Linux Ubuntu 18.04 and I tried to use macOS</div><div> </div><div>But if I use the option --no-clean or if I change swig_prefix from %{_tmproot}/swig to {_tmppath}/swig, I can build rtems-llvm. </div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">Вторник, 28 января 2020, 1:31 +03:00 от Chris Johns <chrisj@rtems.org>:<br> <div id=""><div class="js-helper js-readmsg-msg"><style type="text/css"></style><div><div id="style_15801642950068074680_BODY">Hi,<br><br>On 23/1/20 10:45 pm, Павел Трошин wrote:<br>> Hello,<br>> <br>> I want to build 5/rtems-llvm and run<br>> ../source-builder/sb-set-builder 5/rtems-llvm --prefix=/opt/rtems-llvm/5<br>> --bset-tar-file --pkg-tar-files --no-install<br>> <br>> But have error:<br>> <br>> CMake Error at<br>> /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):<br>> Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)<br>> Call Stack (most recent call first):<br>> /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378<br>> (_FPHSA_FAILURE_MESSAGE)<br>> /usr/share/cmake-3.10/Modules/FindSWIG.cmake:63<br>> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)<br>> tools/lldb/scripts/CMakeLists.txt:18 (find_package)<br>><br>> -- Configuring incomplete, errors occurred!<br>> See also<br>> "/home/pavelt/rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/build/CMakeFiles/CMakeOutput.log".<br>> See also<br>> "/home/pavelt/rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/build/CMakeFiles/CMakeError.log".<br>> shell cmd failed: /bin/sh -ex <br>> /home/pavelt/rtems-source-builder/rtems/build/rtems-llvm-8.0.1-x86_64-linux-gnu-1/do-build<br>> error: building rtems-llvm-8.0.1-x86_64-linux-gnu-1<br>> <br>> How I’ve understood swig was installed to<br>> /home/pavelt/rtems-source-builder/rtems/build/tmp/sb-1000/devel/swig but then<br>> swig was cleaned:<br>> <br>> ==> %clean:<br>> cleaning: swig-4.0.1-x86_64-linux-gnu-1<br>> removing:<br>> /home/pavelt/rtems-source-builder/rtems/build/tmp/swig-4.0.1-x86_64-linux-gnu-1-1000<br>> removing:<br>> /home/pavelt/rtems-source-builder/rtems/build/swig-4.0.1-x86_64-linux-gnu-1<br>> removing: /home/pavelt/rtems-source-builder/rtems/build/tmp/sb-1000/devel/swig<br>> <br>> and on next step llvm cannot find swig<br><br>What host are you using?<br><br>Is the RSB building SWIG for you host?<br><br>> And next question. Can I build RTEMS with rtems-llvm toolchain?<br><br>You should be able to. RTEMS currently has no support for llvm in master.<br><br>Chris</div></div></div></div></blockquote> <div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Павел Трошин</div></div></div><div> </div></div></BODY></HTML>