<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 29, 2016, at 10:48 AM, Nemicolopterus Crypticus &lt;<a href="mailto:ncrypticus@gmail.com" class="">ncrypticus@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="">Hello all,<br class=""><br class=""></div>We are having issues with our 
generated SDK files. We're using the jethro branch, and have enabled 
multilib (see relevant portion of local.conf below).<br class=""><br class=""></div><div class="">I can succesfully run the command to generate the SDK:<br class=""></div><div class="">$ bitbake &lt;recipe name&gt; -c populate_sdk<br class=""><br class=""></div><div class="">But the output is incorrect. <b class="">While
 the aarch sysroots look good, the sysroots for arm are completely 
missing. The environment setup script ends up pointing to non-existent 
compilers. </b>Please let me know if you need more information!<br class=""></div></div></div></blockquote><div><br class=""></div><div>Thanks for report. It will be good if you can open a bugzilla entry for this. So it can be tracked.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Steps to reproduce:<br class=""></div><div class="">$ bitbake &lt;recipe name&gt; -c populate_sdk<br class=""></div><div class="">$ cp tmp/deploy/sdk/&lt;sdk-script&gt;.sh /test/directory<br class=""></div><div class="">$ cd /test/directory<br class=""></div><div class="">$ bash &lt;sdk-script&gt;.sh<br class=""></div><div class="">$ ls sysroots/<br class="">aarch64-poky-linux/&nbsp;&nbsp; x86_64-pokysdk-linux/ <br class=""><br class=""></div><div class="">Note the missing ARM directories.<br class=""><br class=""></div><div class="">Also, the setup script for arm sets this as the command for compiler:<br class="">&nbsp;12 export CC="arm-pokymllib32-linux-gnueabi-gcc<br class=""><br class=""></div><div class="">But that compiler doesn't exist anywhere in the folder where I installed everything, or environment!<br class=""><br class=""></div><div class="">So it appears that it's not completely or correctly packaging everything for ARMv7.<br class=""></div><div class=""><br class=""></div><div class="">The <a target="_blank" href="http://www.yoctoproject.org/docs/2.0/mega-manual/mega-manual.html#sdk-dev-environment" class="">documentation does mention some environment variables</a>, but it's not clear how those related to multilib.<br class=""><br class=""></div><div class="">For
 instance, none of our recipes have "SDKIMAGE_FEATURES" defined, but 
clearly the aarch64 sysroots are getting populated correctly (we 
succesfully compiled and ran a simple hello world).<br class=""><br class=""></div><div class=""><b class="">Can
 anyone point me to an example, or discuss a successful use of 
"multilib" on the Jethro branch (given desparate brainstorming below), 
share some more verbose documentation, or ask follow-up questions?</b><br class=""></div><div class=""><br class=""></div><div class=""><br class="">_____________________________________________________________<br class=""></div><div class="">Desperate brainstorming below:<br class=""></div><div class="">I did find this years-old patch: <a target="_blank" href="https://patchwork.openembedded.org/patch/30941/" class="">https://patchwork.openembedded.org/patch/30941/</a><br class=""></div><div class="">Notably, the do_populate_sdk method in poky/meta/classes/populate_sdk_base.bbclass iterates over the values listed in the MULTILIB_VARIANTS variable:<br class=""><br class=""><pre class=""><span class="">+        variants = d.getVar("MULTILIB_VARIANTS", True) or ""</span>
<span class="">+        for item in variants.split():</span>
<span class="">+                # Load overrides from 'd' to avoid having to reset the value...</span>
<span class="">+                overrides = d.getVar("OVERRIDES", False) + ":virtclass-multilib-" + item</span>
<span class="">+                localdata.setVar("OVERRIDES", overrides)</span>
<span class="">+                bb.data.update_data(localdata)</span>
<span class="">+                bb.build.exec_func("create_sdk_files", localdata)</span></pre><br class=""></div><div class=""><br class=""></div><div class="">The latest version in Jethro does not have anything equivalent to that, but I did not dig deeply into the code or the commit history.<br class=""></div><div class=""><br class=""><br class=""><br class=""><br class="">______________________________________________________________<br class=""></div><div class="">More data:<br class=""></div><div class=""><br class=""></div>local.conf relevant section:<br class="">#<br class=""># Multilib configuration<br class="">#<br class=""># This sets any packages preprended with lib32- to be built with<br class=""># the armv7a tuning (32 bit) instead of 64 bit aarch.<br class="">#<br class="">require conf/multilib.conf<br class="">MULTILIBS = "multilib:lib32"<br class="">DEFAULTTUNE_virtclass-multilib-lib32 = "armv7at-neon"</div>
-- <br class="">_______________________________________________<br class="">Openembedded-core mailing list<br class=""><a href="mailto:Openembedded-core@lists.openembedded.org" class="">Openembedded-core@lists.openembedded.org</a><br class="">http://lists.openembedded.org/mailman/listinfo/openembedded-core<br class=""></div></blockquote></div><br class=""></body></html>