<div dir="ltr"><div>Hello,</div><div>After several attempts of passing that command in the wrong build directory, I finally was able to find the right build directory, and here's what I found in ida.log:</div><div><a href="https://pastebin.com/hPMmFCyj">https://pastebin.com/hPMmFCyj</a></div><div><br></div><div>I really can't make out what's going on or what to do next. Please help<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 30, 2021 at 8:57 PM Joel Sherrill <<a href="mailto:joel@rtems.org">joel@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Jul 30, 2021 at 1:32 PM Ida Delphine <<a href="mailto:idadelm@gmail.com" target="_blank">idadelm@gmail.com</a>> wrote:<br>
><br>
> Just installed swig and now met with another error. Can't find what is really wrong.<br>
> RTEMS Source Builder - Set Builder, 6 (c938bd7cbe16)<br>
> Build Set: 6/rtems-llvm<br>
> Build Set: devel/swig.bset<br>
> Build Set: devel/autotools-internal.bset<br>
> config: devel/autoconf-2.69-1.cfg<br>
> package: autoconf-2.69-x86_64-linux-gnu-1<br>
> building: autoconf-2.69-x86_64-linux-gnu-1<br>
> sizes: autoconf-2.69-x86_64-linux-gnu-1: 7.493MB (installed: 0.000B)<br>
> cleaning: autoconf-2.69-x86_64-linux-gnu-1<br>
> config: devel/automake-1.12.6-1.cfg<br>
> package: automake-1.12.6-x86_64-linux-gnu-1<br>
> building: automake-1.12.6-x86_64-linux-gnu-1<br>
> sizes: automake-1.12.6-x86_64-linux-gnu-1: 8.085MB (installed: 0.000B)<br>
> cleaning: automake-1.12.6-x86_64-linux-gnu-1<br>
> config: devel/libtool-2.4.2-1.cfg<br>
> package: libtool-2.4.2-x86_64-linux-gnu-1<br>
> building: libtool-2.4.2-x86_64-linux-gnu-1<br>
> sizes: libtool-2.4.2-x86_64-linux-gnu-1: 12.775MB (installed: 0.000B)<br>
> cleaning: libtool-2.4.2-x86_64-linux-gnu-1<br>
> cleaning: autoconf-2.69-x86_64-linux-gnu-1<br>
> cleaning: automake-1.12.6-x86_64-linux-gnu-1<br>
> cleaning: libtool-2.4.2-x86_64-linux-gnu-1<br>
> Build Sizes: usage: 12.775MB total: 79.327MB (sources: 79.308MB, patches: 19.412KB, installed 0.000B)<br>
> Build Set: Time 0:00:17.154758<br>
> config: devel/swig-4.0.1.cfg<br>
> package: swig-4.0.1-x86_64-linux-gnu-1<br>
> building: swig-4.0.1-x86_64-linux-gnu-1<br>
> sizes: swig-4.0.1-x86_64-linux-gnu-1: 106.899MB (installed: 0.000B)<br>
> cleaning: swig-4.0.1-x86_64-linux-gnu-1<br>
> cleaning: swig-4.0.1-x86_64-linux-gnu-1<br>
> Build Set: Time 0:01:27.065144<br>
> config: tools/rtems-llvm-8.0.1.cfg<br>
> package: rtems-llvm-8.0.1-x86_64-linux-gnu-1<br>
> building: rtems-llvm-8.0.1-x86_64-linux-gnu-1<br>
> error: building rtems-llvm-8.0.1-x86_64-linux-gnu-1<br>
> Build FAILED<br>
> See error report: rsb-report-rtems-llvm-8.0.1-x86_64-linux-gnu-1.txt<br>
> error: building rtems-llvm-8.0.1-x86_64-linux-gnu-1<br>
> Build Set: Time 0:04:53.632167<br>
> Build FAILED<br>
> The error report: <a href="https://pastebin.com/nFYzqWqY" rel="noreferrer" target="_blank">https://pastebin.com/nFYzqWqY</a><br>
<br>
I don't see any compiler errors. I see warnings and if they built with -Werror,<br>
then it would fail.<br>
<br>
I think there is a way to force a cmake build to show the command invoked. This<br>
has lots of details:<br>
<br>
<a href="https://stackoverflow.com/questions/2670121/using-cmake-with-gnu-make-how-can-i-see-the-exact-commands" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/2670121/using-cmake-with-gnu-make-how-can-i-see-the-exact-commands</a><br>
<br>
I think you can manually go down into the build directory which is left<br>
after the build failure, and type "make VERBOSE=1" >ida.log 2>&1"<br>
<br>
Then the file ida.log should show all the commands.<br>
<br>
The URL above shows how to do it via cmake. But in this case, I think<br>
going into the RSB build/ directory and doing the make by hand will<br>
give us the next bit of into -- does it compile with -Werror.<br>
<br>
><br>
> On Fri, Jul 30, 2021 at 2:24 PM Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>> wrote:<br>
>><br>
>> On Fri, Jul 30, 2021 at 12:46 AM Ida Delphine <<a href="mailto:idadelm@gmail.com" target="_blank">idadelm@gmail.com</a>> wrote:<br>
>> ><br>
>> > Hello everyone,<br>
>> > I have been trying to build llvm using the command<br>
>> > ../source-builder/sb-set-builder --prefix=$HOME/development/rtems/6 6/rtems-llvm<br>
>> > Here's the error report<br>
>> > <a href="https://pastebin.com/vAXgwXMW" rel="noreferrer" target="_blank">https://pastebin.com/vAXgwXMW</a><br>
>><br>
>> It would have been helpful to have put the error lines in the email<br>
>> and a link to the full log.<br>
>><br>
>> -- Could NOT find libedit (missing: libedit_INCLUDE_DIRS libedit_LIBRARIES)<br>
>> -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)<br>
>> CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146<br>
>> (message):<br>
>> Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)<br>
>> Call Stack (most recent call first):<br>
>> /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393<br>
>> (_FPHSA_FAILURE_MESSAGE)<br>
>> /usr/share/cmake-3.16/Modules/FindSWIG.cmake:64<br>
>> (FIND_PACKAGE_HANDLE_STANDARD_ARGS)<br>
>> tools/lldb/scripts/CMakeLists.txt:18 (find_package)<br>
>><br>
>> > Please what am I missing?<br>
>><br>
>> Based on google results and other people having the same issue, you may not<br>
>> have swig installed. It is something to install with npm from what I<br>
>> see. Other people<br>
>> have it but need to set some variables to let cmake know where it is.<br>
>><br>
>> Hopefully installing it will help. Chris should comment on this from<br>
>> an RSB perspective.<br>
>><br>
>> --joel<br>
>><br>
>> ><br>
>> > _______________________________________________<br>
>> > devel mailing list<br>
>> > <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
>> > <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>