<div dir="ltr">Started this issue a few days ago thinking it was a problem with <div>the bluez flags. I guess it might still be given it tries to build obex <br></div><div>even when it's been configured that is shouldn't...</div><div><br></div><div>The exact issue seems to point it's a Yocto related</div><div>or might be both (hence both lists). I have configured </div><div>BlueZ to build without any flags.</div><div><br></div><div>In terms of BlueZ code this means:</div><div><br></div><div>  git clone <a href="https://git.kernel.org/pub/scm/bluetooth/bluez.git">https://git.kernel.org/pub/scm/bluetooth/bluez.git</a></div><div>  cd bluez</div><div>  ./bootstrap</div><div>  make</div><div><br></div><div>This is built correctly for x86.</div><div><br></div><div>Trying to replicate that to Yocto, I've extended the recipe to<br></div><div>not to pass any feature configuration flags:</div><div><br></div><div>  $ bitbake bluez5 -e | grep EXTRA_OECONF<br></div><div>  ...</div><div>   EXTRA_OECONF=""</div><div><br></div><div>Before hand did all the steps so that BlueZ is correctly pulled</div><div>from master, and no patches from Yocto are applied to it.</div><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><br></div><div>Open for comments/critics on how to diagnose this.... :)<br></div><div><br></div><div>Be Well,</div><div>Alan</div><div><br></div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 16, 2018 at 5:13 PM, Luiz Augusto von Dentz <span dir="ltr"><<a href="mailto:luiz.dentz@gmail.com" target="_blank">luiz.dentz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Alan,<br>
<div><div class="gmail-h5"><br>
On Fri, Mar 16, 2018 at 4:50 PM, Alan Martinovic<br>
<<a href="mailto:alan.martinovic@senic.com">alan.martinovic@senic.com</a>> wrote:<br>
> Hi,<br>
> I'm trying to cross compile a BLE BlueZ master.<br>
> Am having build issues pointing to obex.<br>
> I'm building it using Yocto but have stripped it down<br>
> to the essentials:<br>
><br>
> ./configure<br>
>Â Â --build=x86_64-linux<br>
>Â Â --host=arm-linux-gnueabi<br>
>Â Â --target=arm-linux-gnueabi<br>
>Â Â --prefix=/usr<br>
>Â Â --exec_prefix=/usr<br>
>Â Â --bindir=/usr/bin<br>
>Â Â --sbindir=/usr/sbin<br>
>Â Â --libexecdir=/usr/libexec<br>
>Â Â --datadir=/usr/share<br>
>Â Â --sysconfdir=/etc<br>
>Â Â --sharedstatedir=/com<br>
>Â Â --localstatedir=/var<br>
>Â Â --libdir=/usr/lib<br>
>Â Â --includedir=/usr/include<br>
>Â Â --oldincludedir=/usr/include<br>
>Â Â --infodir=/usr/share/info<br>
>Â Â --mandir=/usr/share/man<br>
>Â Â --disable-silent-rules<br>
>Â Â --disable-dependency-tracking<br>
>Â Â --with-libtool-sysroot=/home/<wbr>alan/senic-os/build/tmp-glibc/<wbr>work/cortexa7hf-neon-vfpv4-<wbr>senic-linux-gnueabi/bluez5/5.<wbr>49+gitAUTOINC+969dfae9a7-r0/<wbr>recipe-sysroot<br>
>Â Â --enable-test<br>
>Â Â --enable-datafiles<br>
>Â Â --enable-library<br>
>Â Â --enable-a2dp<br>
>Â Â --enable-avrcp<br>
>Â Â --disable-cups<br>
>Â Â --enable-deprecated<br>
>Â Â --disable-health<br>
>Â Â --enable-hid<br>
>Â Â --enable-hog<br>
>Â Â --disable-midi<br>
>Â Â --enable-network<br>
>Â Â --disable-nfc<br>
>Â Â --disable-obex<br>
>Â Â --enable-client<br>
>Â Â --disable-sap<br>
>Â Â --disable-sixaxis<br>
>Â Â --enable-systemd<br>
>Â Â --disable-testing<br>
>Â Â --disable-threads<br>
>Â Â --enable-tools<br>
> make -j 16<br>
><br>
> This results in a build error:<br>
><br>
> ../git/obexd/src/genbuiltin filesystem bluetooth opp ftp mas mns ><br>
> obexd/src/builtin.h<br>
>Â /bin/bash: obexd/src/builtin.h: No such file or directory<br>
>Â Makefile:9431: recipe for target 'obexd/src/builtin.h' failed<br>
><br>
><br>
> Given that I don't need it for BLE, what else is required<br>
> besides "--disable-obex" to bypass this error?<br>
<br>
</div></div>Obviously, it is a bug in the way we handle --disable-obex so we will<br>
need to fix it.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
--<br>
Luiz Augusto von Dentz<br>
</font></span></blockquote></div><br></div></div>