<div dir="ltr">My host system has an x-86_64 architecture with ubuntu-18.04 running on top of it, I have a python2 installed.<div>Interestingly enough, when I clean up the libbsd directory and try to build as a super-user, I have two observations:-</div><div>1. The build fails with the following error message:-</div><div>[1/4] Creating ///h/o/m/e///u/r/1/0///s/a/n/d/b/o/x///r/t/e/m/s/-/l/i/b/b/s/d///b/u/i/l/d///a/r/m/-/r/t/e/m/s/5/-/b/e/a/g/l/e/b/o/n/e/b/l/a/c/k/-/d/e/f/a/u/l/t/build-include/rtems/bsd/modules.h<br>[2/4] Compiling rtemsbsd/rtems/generate_kvm_symbols<br>[3/4] Compiling testsuite/include/rtems/bsd/test/<a href="http://network-config.h.in" target="_blank">network-config.h.in</a><br>/bin/sh: 1: .//home/ur10/sandbox/rtems-libbsd/rtemsbsd/rtems/generate_kvm_symbols: not found</div><div><br></div><div>Now I have checked, and the file in question is present at its location.</div><div><br></div><div>2. The traceback of the last calls is something like this:-</div><div> File "/home/ur10/sandbox/rtems-libbsd/.waf-2.0.13-4c5a17779813574907c253ab5418388d/waflib/Build.py", line 100, in execute_build<br> self.compile()<br> File "/home/ur10/sandbox/rtems-libbsd/.waf-2.0.13-4c5a17779813574907c253ab5418388d/waflib/Build.py", line 174, in compile<br> self.store()<br> File "/home/ur10/sandbox/rtems-libbsd/.waf-2.0.13-4c5a17779813574907c253ab5418388d/waflib/Build.py", line 153, in store<br> Utils.writef(db+'.tmp',x,m='wb')<br> File "/home/ur10/sandbox/rtems-libbsd/.waf-2.0.13-4c5a17779813574907c253ab5418388d/waflib/Utils.py", line 155, in writef<br> with open(fname,m)as f:<br>IOError: [Errno 2] No such file or directory: u'/home/ur10/sandbox/rtems-libbsd/build/arm-rtems5-beagleboneblack-default/.wafpickle-linux2-34017264-20.tmp'<br></div><div><br></div><div>If I am correct, this is a python exception for invalid file handling. Since I have already removed the 'build' directory, I suppose the call should be 'w+' or 'wb+' but this does not seem to be the case. (I am going out on a limb with this assumption, I may be wrong !)</div><div><br></div><div>It would be very helpful if you could provide your views on the problem and as to how I should proceed to resolve this.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 30, 2019 at 7:19 PM Christian Mauderer <<a href="mailto:list@c-mauderer.de" target="_blank">list@c-mauderer.de</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 28/12/2019 18:43, Utkarsh Rai wrote:<br>
> Hi,<br>
> While building the rtems-libbsd as described here<br>
> <<a href="https://devel.rtems.org/browser/rtems-libbsd/README.waf?rev=b83012a9f9f1551d9d223c3126d0f43aba79db62" rel="noreferrer" target="_blank">https://devel.rtems.org/browser/rtems-libbsd/README.waf?rev=b83012a9f9f1551d9d223c3126d0f43aba79db62</a>> I<br>
> was able to successfully configure the waf file as:-<br>
> waf configure<br>
> --prefix="/home/ur10/sandbox/rtems/5"<br>
> --rtems-bsps=arm/beagleboneblack<br>
> --buildset=buildset/default.ini <br>
> But the build fails on the "waf" instruction with the error - "Could<br>
> not create the directory ///h".<br>
> My path for the build is PATH="~/sandbox/rtems/bin:$PATH", with the<br>
> tools and the rtems-libbsd in the sandbox directory. <br>
> It would be very kind of you if someone could point out as to what is it<br>
> that I am doing wrong.<br>
> Thank You, Regards.<br>
<br>
Hello Utkarsh Rai,<br>
<br>
I now have seen that bug about two or three times on the list. But I've<br>
never been able to reproduce it. What host system are you using? Do you<br>
have a python2 or a python3 as default python?<br>
<br>
Sometimes it works to clean up the libbsd directory. Remove the "build"<br>
directory and the ".waf2..." or ".waf3..." directory. Also remove any<br>
"__pycache__" directories.<br>
<br>
>From your call it seems that you use waf from your host system. Can you<br>
try to use the waf version delivered with libbsd instead (using "./waf<br>
configure ...")?<br>
<br>
Best regards<br>
<br>
Christian<br>
</blockquote></div>