<div dir="ltr">Hi,<div>     Is there any hidden pointer within these static dev packages. i expected the library to be .a format. what can i understand from these static dev packages, plz let me know.</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 5, 2017 at 2:37 PM, Ravi chandra reddy <span dir="ltr">&lt;<a href="mailto:vlsireddy@gmail.com" target="_blank">vlsireddy@gmail.com</a>&gt;</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>     is this what you are talking about</div><div><br></div><div><div>root@polar:~/zcu_yocto/poky/<wbr>build/tmp/sysroots/zcu102-<wbr>zynqmp/pkgdata/runtime# ls -ltr *libxml*</div><div>-rwxrwxrwx 2 root root      0 Nov 21 14:05 libxml2-ptest.packaged</div><div>-rwxrwxrwx 2 root root 463307 Nov 21 14:05 libxml2-ptest</div><div>-rwxrwxrwx 2 root root    933 Nov 21 14:05 libxml2-staticdev</div><div>-rwxrwxrwx 2 root root      0 Nov 21 14:05 libxml2-dbg.packaged</div><div>-rwxrwxrwx 2 root root  10526 Nov 21 14:05 libxml2-dbg</div><div>-rwxrwxrwx 2 root root      0 Nov 21 14:05 libxml2-dev.packaged</div><div>-rwxrwxrwx 2 root root   3836 Nov 21 14:05 libxml2-dev</div><div>-rwxrwxrwx 2 root root      0 Nov 21 14:05 libxml2-doc.packaged</div><div>-rwxrwxrwx 2 root root  17476 Nov 21 14:05 libxml2-doc</div><div>-rwxrwxrwx 2 root root    638 Nov 21 14:05 libxml2-locale</div><div>-rwxrwxrwx 2 root root      0 Nov 21 14:05 libxml2.packaged</div><div>-rwxrwxrwx 2 root root   4164 Nov 21 14:05 libxml2</div><div>-rwxrwxrwx 2 root root    628 Nov 21 14:05 libxml2-utils</div><div>-rwxrwxrwx 2 root root      0 Nov 21 14:05 libxml2-python.packaged</div><div>-rwxrwxrwx 2 root root   2910 Nov 21 14:05 libxml2-python</div><div>root@polar:~/zcu_yocto/poky/<wbr>build/tmp/sysroots/zcu102-<wbr>zynqmp/pkgdata/runtime# </div><div>root@polar:~/zcu_yocto/poky/<wbr>build/tmp/sysroots/zcu102-<wbr>zynqmp/pkgdata/runtime# </div><div>root@polar:~/zcu_yocto/poky/<wbr>build/tmp/sysroots/zcu102-<wbr>zynqmp/pkgdata/runtime# </div><div>root@polar:~/zcu_yocto/poky/<wbr>build/tmp/sysroots/zcu102-<wbr>zynqmp/pkgdata/runtime# </div></div><div><br></div><div>if not, then sorry, i didnt get you when you say &quot;static dev packages&quot;</div><div><br></div><div>Thanks</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 5, 2017 at 2:26 PM, Matthew McClintock <span dir="ltr">&lt;<a href="mailto:msm-oss@mcclintock.net" target="_blank">msm-oss@mcclintock.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you have the staticdev packages in your TMPDIR? E.g.<br>
<br>
tmp/work/cortexa15t2hf-neon-rd<wbr>k-linux-gnueabi/libxml2/2.9.4-<wbr>r0/deploy-ipks/cortexa15t2hf-<wbr>neon/libxml2-staticdev_2.9.4-<wbr>r0_cortexa15t2hf-neon.ipk<br>
<span class="m_3356336322294810989HOEnZb"><font color="#888888"><br>
-M<br>
</font></span><div class="m_3356336322294810989HOEnZb"><div class="m_3356336322294810989h5"><br>
On Wed, Apr 5, 2017 at 1:09 PM, Ravi chandra reddy &lt;<a href="mailto:vlsireddy@gmail.com" target="_blank">vlsireddy@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;     Let me thank you guys for quick reply.<br>
&gt; let me put my  email in correct steps<br>
&gt;<br>
&gt; 1. below local/local.conf changes makes bitbake fail.<br>
&gt;<br>
&gt;                             IMAGE_INSTALL_append = &quot;lib32-glibc lib32-libgcc<br>
&gt; lib32-libstdc++ libedit libxml2-staticdev&quot;<br>
&gt;<br>
&gt; error:=============<br>
&gt; ==============================<wbr>==== i get the following<br>
&gt; errors========================<wbr>==========<br>
&gt; ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs<br>
&gt; ERROR: Logfile of failure stored in:<br>
&gt; /home/polar/zcu_yocto/poky/bui<wbr>ld/tmp/work/zcu102_zynqmp-poky<wbr>-linux/core-image-minimal/1.0-<wbr>r0/temp/log.do_rootfs.17721<br>
&gt; ERROR: Task 9<br>
&gt; (/home/polar/zcu_yocto/poky/me<wbr>ta/recipes-core/images/<a href="http://core-image-minimal.bb" rel="noreferrer" target="_blank">core-im<wbr>age-minimal.bb</a>,<br>
&gt; do_rootfs) failed with exit code &#39;1&#39;<br>
&gt; NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn&#39;t need to be<br>
&gt; rerun and 1 failed.<br>
&gt; ==============================<wbr>=====<br>
&gt;<br>
&gt; 2.  without staticdev changes [in local/local.conf], it<br>
&gt; [bitbake-core-image-minimal] goes through and it builds [but there is only<br>
&gt; .so [dynamic library] generated]<br>
&gt;<br>
&gt; IMAGE_INSTALL_append = &quot;lib32-glibc lib32-libgcc lib32-libstdc++ libedit<br>
&gt; libxml2&quot;<br>
&gt;<br>
&gt;<br>
&gt; 3. i ran the search and found that all &quot;no-static&quot; lines are commented<br>
&gt;<br>
&gt; bitbake -e | grep static-libs<br>
&gt;<br>
&gt;<br>
&gt; and all the &quot;no-static-libs.inc&quot; are commented [#]<br>
&gt;<br>
&gt; Thanks<br>
&gt; RC<br>
&gt;<br>
&gt; On Wed, Apr 5, 2017 at 2:04 PM, Ravi chandra reddy &lt;<a href="mailto:vlsireddy@gmail.com" target="_blank">vlsireddy@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;        in local/local.conf it [bitbake core-image-minimal] fails, if i use<br>
&gt;&gt; libxml2-staticdev<br>
&gt;&gt;<br>
&gt;&gt;   # Specify the 32-bit libraries to be added to all images<br>
&gt;&gt; IMAGE_INSTALL_append = &quot;lib32-glibc lib32-libgcc lib32-libstdc++ libedit<br>
&gt;&gt; libxml2-staticdev&quot;<br>
&gt;&gt;<br>
&gt;&gt; ==============================<wbr>==== i get the following<br>
&gt;&gt; errors========================<wbr>==========<br>
&gt;&gt; ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs<br>
&gt;&gt; ERROR: Logfile of failure stored in:<br>
&gt;&gt; /home/polar/zcu_yocto/poky/bui<wbr>ld/tmp/work/zcu102_zynqmp-poky<wbr>-linux/core-image-minimal/1.0-<wbr>r0/temp/log.do_rootfs.17721<br>
&gt;&gt; ERROR: Task 9<br>
&gt;&gt; (/home/polar/zcu_yocto/poky/me<wbr>ta/recipes-core/images/<a href="http://core-image-minimal.bb" rel="noreferrer" target="_blank">core-im<wbr>age-minimal.bb</a>,<br>
&gt;&gt; do_rootfs) failed with exit code &#39;1&#39;<br>
&gt;&gt; NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn&#39;t need to be<br>
&gt;&gt; rerun and 1 failed.<br>
&gt;&gt; ==============================<wbr>=====<br>
&gt;&gt;<br>
&gt;&gt; if i use as below, there is no issue. however there is no .so<br>
&gt;&gt;<br>
&gt;&gt; # Specify the 32-bit libraries to be added to all images<br>
&gt;&gt; IMAGE_INSTALL_append = &quot;lib32-glibc lib32-libgcc lib32-libstdc++ libedit<br>
&gt;&gt; libxml2&quot;<br>
&gt;&gt;<br>
&gt;&gt; i ran<br>
&gt;&gt;<br>
&gt;&gt; bitbake -e | grep static-libs<br>
&gt;&gt;<br>
&gt;&gt; and all the &quot;no-static-libs.inc&quot; are commented [#]<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt; RC<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Apr 5, 2017 at 11:48 AM, Richard Purdie<br>
&gt;&gt; &lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundatio<wbr>n.org</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, 2017-04-05 at 10:33 -0500, Matthew McClintock wrote:<br>
&gt;&gt;&gt; &gt; On Wed, Apr 5, 2017 at 10:18 AM, Ravi chandra reddy &lt;vlsireddy@gmail.<br>
&gt;&gt;&gt; &gt; com&gt; wrote:<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; Hi All,<br>
&gt;&gt;&gt; &gt; &gt;           I am using meta-oe to generate libxml2 library using<br>
&gt;&gt;&gt; &gt; &gt; AARCH64<br>
&gt;&gt;&gt; &gt; &gt; compiler. However it generates shared object [.so] library.<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; is there any setting in recipe to modify this, to generate static<br>
&gt;&gt;&gt; &gt; &gt; library<br>
&gt;&gt;&gt; &gt; &gt; [instead of shared library]<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; if so, please point me to the recipe/file to change.<br>
&gt;&gt;&gt; &gt; &gt;<br>
&gt;&gt;&gt; &gt; &gt; if not, i will try to add it as patch, plz point me to appropriate<br>
&gt;&gt;&gt; &gt; &gt; files to<br>
&gt;&gt;&gt; &gt; &gt; change<br>
&gt;&gt;&gt; &gt; Is the ${PN}-staticdev package getting generated for you?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Its possible you have conf/distro/include/no-static-<wbr>libs.inc included<br>
&gt;&gt;&gt; in your build (bitbake -e would tell you).<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If so, you could remove that include or set:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; DISABLE_STATIC = &quot;&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; as it would currently be set to this if that include file is included:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; DISABLE_STATIC = &quot; --disable-static&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; We tend not to build static libraries as they&#39;re a waste of space/time<br>
&gt;&gt;&gt; on the most part.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Cheers,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Richard<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>