<div dir="ltr">On 21 March 2018 at 15:15, Alan Martinovic <span dir="ltr"><<a href="mailto:alan.martinovic@senic.com" target="_blank">alan.martinovic@senic.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Building it with Yocto results in the mentioned error:</div><div><br></div><div><div>| ../git/src/genbuiltin hostname wiimote autopair policy  a2dp avrcp network input hog gap scanparam deviceinfo battery > src/builtin.h</div><div>| ../git/obexd/src/genbuiltin filesystem bluetooth opp ftp irmc pbap mas mns > obexd/src/builtin.h</div><div>| /bin/bash: obexd/src/builtin.h: No such file or directory</div><div>| Makefile:9431: recipe for target 'obexd/src/builtin.h' failed</div><div>| make: *** [obexd/src/builtin.h] Error 1</div><div>| make: *** Waiting for unfinished jobs....</div><div>| ERROR: oe_runmake failed</div><div>| WARNING: exit code 1 from a shell command.</div></div><div><br></div><div><br></div><div>It seems that for some reason in Yocto, make can't redirect into `obexd/src/builtin.h` while</div><div>it does so successfully for native build.</div></div></blockquote><div><br></div><div>Yocto will be doing an out-of-tree build with high parallelism, neither of which you are likely doing yourself.</div><div><br></div><div>The hint is "no such file or directory" for a file it is writing *to*. This means the parent doesn't exist, in this case obexd/src/.</div><div><br></div><div>This is a typical race in out-of-tree and parallel builds, where genbuiltin is racing against other commands to create the directory. The fix is to ensure that whatever rule calls genbuiltin actually does a mkdir first.</div><div><br></div><div>We have a fix for this already in oe-core:</div><div><br></div><div><a href="http://git.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/bluez5/bluez5/out-of-tree.patch" target="_blank">http://git.openembedded.org/<wbr>openembedded-core/tree/meta/<wbr>recipes-connectivity/bluez5/<wbr>bluez5/out-of-tree.patch</a><br></div><div><br></div><div>So I imagine you're using an old release of Yocto. I sent this patch to the linux-bluetooth list <span style="font-size:12.800000190734863px;text-align:right;white-space:nowrap">in April 2016 but it was either moderated away or missed.</span></div><div><span style="font-size:12.800000190734863px;text-align:right;white-space:nowrap"><br></span></div><div><span style="font-size:12.800000190734863px;text-align:right;white-space:nowrap">Ross</span></div></div></div></div>