<div dir="ltr">Hi,<div> Let me thank you guys for quick reply.</div><div>let me put my email in correct steps</div><div><br></div><div>1. below <span style="font-size:12.8px">local/local.conf changes makes bitbake fail.</span></div><div><br></div><div><span style="font-size:12.8px"> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit libxml2-<b>staticdev</b>"</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">error:=============</span></div><div><div style="font-size:12.8px">==============================<wbr>==== i get the following errors========================<wbr>==========<br></div><div style="font-size:12.8px"><div>ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs</div><div>ERROR: Logfile of failure stored in: /home/polar/zcu_yocto/poky/<wbr>build/tmp/work/zcu102_zynqmp-<wbr>poky-linux/core-image-minimal/<wbr>1.0-r0/temp/log.do_rootfs.<wbr>17721</div><div>ERROR: Task 9 (/home/polar/zcu_yocto/poky/<wbr>meta/recipes-core/images/<a href="http://core-image-minimal.bb/" target="_blank">core-<wbr>image-minimal.bb</a>, do_rootfs) failed with exit code '1'</div><div>NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to be rerun and 1 failed.</div></div><div style="font-size:12.8px">==============================<wbr>=====</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">2. without staticdev changes [in </span><span style="font-size:12.8px">local/local.conf</span><span style="font-size:12.8px">], it [bitbake-core-image-minimal] goes through and it builds [but there is only .so [dynamic library] generated]</span></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit libxml2</span><span style="font-size:12.8px">"</span><br></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">3. i ran the search and found that all "no-static" lines are commented</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">bitbake -e | grep static-libs</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">and all the "no-static-libs.inc" are commented [#] </span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks</span></div><div><span style="font-size:12.8px">RC</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 5, 2017 at 2:04 PM, Ravi chandra reddy <span dir="ltr"><<a href="mailto:vlsireddy@gmail.com" target="_blank">vlsireddy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div> in local/local.conf it [bitbake core-image-minimal] fails, if i use libxml2-staticdev<br><div> </div><div> # Specify the 32-bit libraries to be added to all images</div><div>IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit libxml2-staticdev"</div><div><br></div><div>==============================<wbr>==== i get the following errors========================<wbr>==========<br></div><div><div>ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs</div><div>ERROR: Logfile of failure stored in: /home/polar/zcu_yocto/poky/<wbr>build/tmp/work/zcu102_zynqmp-<wbr>poky-linux/core-image-minimal/<wbr>1.0-r0/temp/log.do_rootfs.<wbr>17721</div><div>ERROR: Task 9 (/home/polar/zcu_yocto/poky/<wbr>meta/recipes-core/images/<a href="http://core-image-minimal.bb" target="_blank">core-<wbr>image-minimal.bb</a>, do_rootfs) failed with exit code '1'</div><div>NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to be rerun and 1 failed.</div></div><div>==============================<wbr>=====</div><div><br></div><div>if i use as below, there is no issue. however there is no .so</div><div><br></div><div><div># Specify the 32-bit libraries to be added to all images</div><div>IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit libxml2"</div></div><div><br></div><div>i ran</div><div><br></div><div>bitbake -e | grep static-libs<br></div><div><br></div><div>and all the "no-static-libs.inc" are commented [#] </div><div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div>RC </div><div><br></div><div><br></div></font></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 5, 2017 at 11:48 AM, Richard Purdie <span dir="ltr"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@<wbr>linuxfoundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Wed, 2017-04-05 at 10:33 -0500, Matthew McClintock wrote:<br>
> On Wed, Apr 5, 2017 at 10:18 AM, Ravi chandra reddy <vlsireddy@gmail.<br>
> com> wrote:<br>
> ><br>
> > Hi All,<br>
> > I am using meta-oe to generate libxml2 library using<br>
> > AARCH64<br>
> > compiler. However it generates shared object [.so] library.<br>
> ><br>
> > is there any setting in recipe to modify this, to generate static<br>
> > library<br>
> > [instead of shared library]<br>
> ><br>
> > if so, please point me to the recipe/file to change.<br>
> ><br>
> > if not, i will try to add it as patch, plz point me to appropriate<br>
> > files to<br>
> > change<br>
> Is the ${PN}-staticdev package getting generated for you?<br>
<br>
</span>Its possible you have conf/distro/include/no-static-<wbr>libs.inc included<br>
in your build (bitbake -e would tell you).<br>
<br>
If so, you could remove that include or set:<br>
<br>
DISABLE_STATIC = ""<br>
<br>
as it would currently be set to this if that include file is included:<br>
<br>
DISABLE_STATIC = " --disable-static"<br>
<br>
We tend not to build static libraries as they're a waste of space/time<br>
on the most part.<br>
<br>
Cheers,<br>
<br>
Richard<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>