* Recipe [patch] modification to generate a static library instead of shared library
[not found] <CAGQ4JX3rYtONiVv_eOhj-MK=2FA7=h3xCA_iytd=fpTF00rT6A@mail.gmail.com>
@ 2017-04-05 15:18 ` Ravi chandra reddy
2017-04-05 15:33 ` Matthew McClintock
0 siblings, 1 reply; 12+ messages in thread
From: Ravi chandra reddy @ 2017-04-05 15:18 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 405 bytes --]
Hi All,
I am using meta-oe to generate libxml2 library using AARCH64
compiler. However it generates shared object [.so] library.
is there any setting in recipe to modify this, to generate static library
[instead of shared library]
if so, please point me to the recipe/file to change.
if not, i will try to add it as patch, plz point me to appropriate files to
change
Thanks
RC
[-- Attachment #2: Type: text/html, Size: 664 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-05 15:18 ` Recipe [patch] modification to generate a static library instead of shared library Ravi chandra reddy
@ 2017-04-05 15:33 ` Matthew McClintock
2017-04-05 15:48 ` Richard Purdie
0 siblings, 1 reply; 12+ messages in thread
From: Matthew McClintock @ 2017-04-05 15:33 UTC (permalink / raw)
To: Ravi chandra reddy; +Cc: Patches and discussions about the oe-core layer
On Wed, Apr 5, 2017 at 10:18 AM, Ravi chandra reddy <vlsireddy@gmail.com> wrote:
> Hi All,
> I am using meta-oe to generate libxml2 library using AARCH64
> compiler. However it generates shared object [.so] library.
>
> is there any setting in recipe to modify this, to generate static library
> [instead of shared library]
>
> if so, please point me to the recipe/file to change.
>
> if not, i will try to add it as patch, plz point me to appropriate files to
> change
Is the ${PN}-staticdev package getting generated for you?
-M
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-05 15:33 ` Matthew McClintock
@ 2017-04-05 15:48 ` Richard Purdie
2017-04-05 18:04 ` Ravi chandra reddy
0 siblings, 1 reply; 12+ messages in thread
From: Richard Purdie @ 2017-04-05 15:48 UTC (permalink / raw)
To: Matthew McClintock, Ravi chandra reddy
Cc: Patches and discussions about the oe-core layer
On Wed, 2017-04-05 at 10:33 -0500, Matthew McClintock wrote:
> On Wed, Apr 5, 2017 at 10:18 AM, Ravi chandra reddy <vlsireddy@gmail.
> com> wrote:
> >
> > Hi All,
> > I am using meta-oe to generate libxml2 library using
> > AARCH64
> > compiler. However it generates shared object [.so] library.
> >
> > is there any setting in recipe to modify this, to generate static
> > library
> > [instead of shared library]
> >
> > if so, please point me to the recipe/file to change.
> >
> > if not, i will try to add it as patch, plz point me to appropriate
> > files to
> > change
> Is the ${PN}-staticdev package getting generated for you?
Its possible you have conf/distro/include/no-static-libs.inc included
in your build (bitbake -e would tell you).
If so, you could remove that include or set:
DISABLE_STATIC = ""
as it would currently be set to this if that include file is included:
DISABLE_STATIC = " --disable-static"
We tend not to build static libraries as they're a waste of space/time
on the most part.
Cheers,
Richard
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-05 15:48 ` Richard Purdie
@ 2017-04-05 18:04 ` Ravi chandra reddy
2017-04-05 18:09 ` Ravi chandra reddy
0 siblings, 1 reply; 12+ messages in thread
From: Ravi chandra reddy @ 2017-04-05 18:04 UTC (permalink / raw)
To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 2419 bytes --]
Hi,
in local/local.conf it [bitbake core-image-minimal] fails, if i use
libxml2-staticdev
# Specify the 32-bit libraries to be added to all images
IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
libxml2-staticdev"
================================== i get the following
errors==================================
ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
/home/polar/zcu_yocto/poky/build/tmp/work/zcu102_zynqmp-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.17721
ERROR: Task 9 (/home/polar/zcu_yocto/poky/meta/recipes-core/images/
core-image-minimal.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to be
rerun and 1 failed.
===================================
if i use as below, there is no issue. however there is no .so
# Specify the 32-bit libraries to be added to all images
IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
libxml2"
i ran
bitbake -e | grep static-libs
and all the "no-static-libs.inc" are commented [#]
Thanks
RC
On Wed, Apr 5, 2017 at 11:48 AM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2017-04-05 at 10:33 -0500, Matthew McClintock wrote:
> > On Wed, Apr 5, 2017 at 10:18 AM, Ravi chandra reddy <vlsireddy@gmail.
> > com> wrote:
> > >
> > > Hi All,
> > > I am using meta-oe to generate libxml2 library using
> > > AARCH64
> > > compiler. However it generates shared object [.so] library.
> > >
> > > is there any setting in recipe to modify this, to generate static
> > > library
> > > [instead of shared library]
> > >
> > > if so, please point me to the recipe/file to change.
> > >
> > > if not, i will try to add it as patch, plz point me to appropriate
> > > files to
> > > change
> > Is the ${PN}-staticdev package getting generated for you?
>
> Its possible you have conf/distro/include/no-static-libs.inc included
> in your build (bitbake -e would tell you).
>
> If so, you could remove that include or set:
>
> DISABLE_STATIC = ""
>
> as it would currently be set to this if that include file is included:
>
> DISABLE_STATIC = " --disable-static"
>
> We tend not to build static libraries as they're a waste of space/time
> on the most part.
>
> Cheers,
>
> Richard
>
[-- Attachment #2: Type: text/html, Size: 3371 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-05 18:04 ` Ravi chandra reddy
@ 2017-04-05 18:09 ` Ravi chandra reddy
2017-04-05 18:26 ` Matthew McClintock
0 siblings, 1 reply; 12+ messages in thread
From: Ravi chandra reddy @ 2017-04-05 18:09 UTC (permalink / raw)
To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 3941 bytes --]
Hi,
Let me thank you guys for quick reply.
let me put my email in correct steps
1. below local/local.conf changes makes bitbake fail.
IMAGE_INSTALL_append = "lib32-glibc
lib32-libgcc lib32-libstdc++ libedit libxml2-*staticdev*"
error:=============
================================== i get the following
errors==================================
ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/polar/zcu_yocto/poky/
build/tmp/work/zcu102_zynqmp-poky-linux/core-image-minimal/
1.0-r0/temp/log.do_rootfs.17721
ERROR: Task 9 (/home/polar/zcu_yocto/poky/meta/recipes-core/images/core-
image-minimal.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to be
rerun and 1 failed.
===================================
2. without staticdev changes [in local/local.conf], it
[bitbake-core-image-minimal] goes through and it builds [but there is only
.so [dynamic library] generated]
IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
libxml2"
3. i ran the search and found that all "no-static" lines are commented
bitbake -e | grep static-libs
and all the "no-static-libs.inc" are commented [#]
Thanks
RC
On Wed, Apr 5, 2017 at 2:04 PM, Ravi chandra reddy <vlsireddy@gmail.com>
wrote:
> Hi,
> in local/local.conf it [bitbake core-image-minimal] fails, if i use
> libxml2-staticdev
>
> # Specify the 32-bit libraries to be added to all images
> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
> libxml2-staticdev"
>
> ================================== i get the following
> errors==================================
> ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
> ERROR: Logfile of failure stored in: /home/polar/zcu_yocto/poky/
> build/tmp/work/zcu102_zynqmp-poky-linux/core-image-minimal/
> 1.0-r0/temp/log.do_rootfs.17721
> ERROR: Task 9 (/home/polar/zcu_yocto/poky/meta/recipes-core/images/core-
> image-minimal.bb, do_rootfs) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to be
> rerun and 1 failed.
> ===================================
>
> if i use as below, there is no issue. however there is no .so
>
> # Specify the 32-bit libraries to be added to all images
> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
> libxml2"
>
> i ran
>
> bitbake -e | grep static-libs
>
> and all the "no-static-libs.inc" are commented [#]
>
> Thanks
> RC
>
>
>
> On Wed, Apr 5, 2017 at 11:48 AM, Richard Purdie <richard.purdie@
> linuxfoundation.org> wrote:
>
>> On Wed, 2017-04-05 at 10:33 -0500, Matthew McClintock wrote:
>> > On Wed, Apr 5, 2017 at 10:18 AM, Ravi chandra reddy <vlsireddy@gmail.
>> > com> wrote:
>> > >
>> > > Hi All,
>> > > I am using meta-oe to generate libxml2 library using
>> > > AARCH64
>> > > compiler. However it generates shared object [.so] library.
>> > >
>> > > is there any setting in recipe to modify this, to generate static
>> > > library
>> > > [instead of shared library]
>> > >
>> > > if so, please point me to the recipe/file to change.
>> > >
>> > > if not, i will try to add it as patch, plz point me to appropriate
>> > > files to
>> > > change
>> > Is the ${PN}-staticdev package getting generated for you?
>>
>> Its possible you have conf/distro/include/no-static-libs.inc included
>> in your build (bitbake -e would tell you).
>>
>> If so, you could remove that include or set:
>>
>> DISABLE_STATIC = ""
>>
>> as it would currently be set to this if that include file is included:
>>
>> DISABLE_STATIC = " --disable-static"
>>
>> We tend not to build static libraries as they're a waste of space/time
>> on the most part.
>>
>> Cheers,
>>
>> Richard
>>
>
>
[-- Attachment #2: Type: text/html, Size: 6842 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-05 18:09 ` Ravi chandra reddy
@ 2017-04-05 18:26 ` Matthew McClintock
2017-04-05 18:37 ` Ravi chandra reddy
0 siblings, 1 reply; 12+ messages in thread
From: Matthew McClintock @ 2017-04-05 18:26 UTC (permalink / raw)
To: Ravi chandra reddy; +Cc: Patches and discussions about the oe-core layer
Do you have the staticdev packages in your TMPDIR? E.g.
tmp/work/cortexa15t2hf-neon-rdk-linux-gnueabi/libxml2/2.9.4-r0/deploy-ipks/cortexa15t2hf-neon/libxml2-staticdev_2.9.4-r0_cortexa15t2hf-neon.ipk
-M
On Wed, Apr 5, 2017 at 1:09 PM, Ravi chandra reddy <vlsireddy@gmail.com> wrote:
> Hi,
> Let me thank you guys for quick reply.
> let me put my email in correct steps
>
> 1. below local/local.conf changes makes bitbake fail.
>
> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc
> lib32-libstdc++ libedit libxml2-staticdev"
>
> error:=============
> ================================== i get the following
> errors==================================
> ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
> ERROR: Logfile of failure stored in:
> /home/polar/zcu_yocto/poky/build/tmp/work/zcu102_zynqmp-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.17721
> ERROR: Task 9
> (/home/polar/zcu_yocto/poky/meta/recipes-core/images/core-image-minimal.bb,
> do_rootfs) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to be
> rerun and 1 failed.
> ===================================
>
> 2. without staticdev changes [in local/local.conf], it
> [bitbake-core-image-minimal] goes through and it builds [but there is only
> .so [dynamic library] generated]
>
> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
> libxml2"
>
>
> 3. i ran the search and found that all "no-static" lines are commented
>
> bitbake -e | grep static-libs
>
>
> and all the "no-static-libs.inc" are commented [#]
>
> Thanks
> RC
>
> On Wed, Apr 5, 2017 at 2:04 PM, Ravi chandra reddy <vlsireddy@gmail.com>
> wrote:
>>
>> Hi,
>> in local/local.conf it [bitbake core-image-minimal] fails, if i use
>> libxml2-staticdev
>>
>> # Specify the 32-bit libraries to be added to all images
>> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
>> libxml2-staticdev"
>>
>> ================================== i get the following
>> errors==================================
>> ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
>> ERROR: Logfile of failure stored in:
>> /home/polar/zcu_yocto/poky/build/tmp/work/zcu102_zynqmp-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.17721
>> ERROR: Task 9
>> (/home/polar/zcu_yocto/poky/meta/recipes-core/images/core-image-minimal.bb,
>> do_rootfs) failed with exit code '1'
>> NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to be
>> rerun and 1 failed.
>> ===================================
>>
>> if i use as below, there is no issue. however there is no .so
>>
>> # Specify the 32-bit libraries to be added to all images
>> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
>> libxml2"
>>
>> i ran
>>
>> bitbake -e | grep static-libs
>>
>> and all the "no-static-libs.inc" are commented [#]
>>
>> Thanks
>> RC
>>
>>
>>
>> On Wed, Apr 5, 2017 at 11:48 AM, Richard Purdie
>> <richard.purdie@linuxfoundation.org> wrote:
>>>
>>> On Wed, 2017-04-05 at 10:33 -0500, Matthew McClintock wrote:
>>> > On Wed, Apr 5, 2017 at 10:18 AM, Ravi chandra reddy <vlsireddy@gmail.
>>> > com> wrote:
>>> > >
>>> > > Hi All,
>>> > > I am using meta-oe to generate libxml2 library using
>>> > > AARCH64
>>> > > compiler. However it generates shared object [.so] library.
>>> > >
>>> > > is there any setting in recipe to modify this, to generate static
>>> > > library
>>> > > [instead of shared library]
>>> > >
>>> > > if so, please point me to the recipe/file to change.
>>> > >
>>> > > if not, i will try to add it as patch, plz point me to appropriate
>>> > > files to
>>> > > change
>>> > Is the ${PN}-staticdev package getting generated for you?
>>>
>>> Its possible you have conf/distro/include/no-static-libs.inc included
>>> in your build (bitbake -e would tell you).
>>>
>>> If so, you could remove that include or set:
>>>
>>> DISABLE_STATIC = ""
>>>
>>> as it would currently be set to this if that include file is included:
>>>
>>> DISABLE_STATIC = " --disable-static"
>>>
>>> We tend not to build static libraries as they're a waste of space/time
>>> on the most part.
>>>
>>> Cheers,
>>>
>>> Richard
>>
>>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-05 18:26 ` Matthew McClintock
@ 2017-04-05 18:37 ` Ravi chandra reddy
2017-04-06 14:20 ` Ravi chandra reddy
0 siblings, 1 reply; 12+ messages in thread
From: Ravi chandra reddy @ 2017-04-05 18:37 UTC (permalink / raw)
To: Matthew McClintock; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 6228 bytes --]
Hi,
is this what you are talking about
root@polar:~/zcu_yocto/poky/build/tmp/sysroots/zcu102-zynqmp/pkgdata/runtime#
ls -ltr *libxml*
-rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2-ptest.packaged
-rwxrwxrwx 2 root root 463307 Nov 21 14:05 libxml2-ptest
-rwxrwxrwx 2 root root 933 Nov 21 14:05 libxml2-staticdev
-rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2-dbg.packaged
-rwxrwxrwx 2 root root 10526 Nov 21 14:05 libxml2-dbg
-rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2-dev.packaged
-rwxrwxrwx 2 root root 3836 Nov 21 14:05 libxml2-dev
-rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2-doc.packaged
-rwxrwxrwx 2 root root 17476 Nov 21 14:05 libxml2-doc
-rwxrwxrwx 2 root root 638 Nov 21 14:05 libxml2-locale
-rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2.packaged
-rwxrwxrwx 2 root root 4164 Nov 21 14:05 libxml2
-rwxrwxrwx 2 root root 628 Nov 21 14:05 libxml2-utils
-rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2-python.packaged
-rwxrwxrwx 2 root root 2910 Nov 21 14:05 libxml2-python
root@polar
:~/zcu_yocto/poky/build/tmp/sysroots/zcu102-zynqmp/pkgdata/runtime#
root@polar
:~/zcu_yocto/poky/build/tmp/sysroots/zcu102-zynqmp/pkgdata/runtime#
root@polar
:~/zcu_yocto/poky/build/tmp/sysroots/zcu102-zynqmp/pkgdata/runtime#
root@polar
:~/zcu_yocto/poky/build/tmp/sysroots/zcu102-zynqmp/pkgdata/runtime#
if not, then sorry, i didnt get you when you say "static dev packages"
Thanks
On Wed, Apr 5, 2017 at 2:26 PM, Matthew McClintock <msm-oss@mcclintock.net>
wrote:
> Do you have the staticdev packages in your TMPDIR? E.g.
>
> tmp/work/cortexa15t2hf-neon-rdk-linux-gnueabi/libxml2/2.9.
> 4-r0/deploy-ipks/cortexa15t2hf-neon/libxml2-staticdev_2.9.4-r0_
> cortexa15t2hf-neon.ipk
>
> -M
>
> On Wed, Apr 5, 2017 at 1:09 PM, Ravi chandra reddy <vlsireddy@gmail.com>
> wrote:
> > Hi,
> > Let me thank you guys for quick reply.
> > let me put my email in correct steps
> >
> > 1. below local/local.conf changes makes bitbake fail.
> >
> > IMAGE_INSTALL_append = "lib32-glibc
> lib32-libgcc
> > lib32-libstdc++ libedit libxml2-staticdev"
> >
> > error:=============
> > ================================== i get the following
> > errors==================================
> > ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
> > ERROR: Logfile of failure stored in:
> > /home/polar/zcu_yocto/poky/build/tmp/work/zcu102_zynqmp-
> poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.17721
> > ERROR: Task 9
> > (/home/polar/zcu_yocto/poky/meta/recipes-core/images/core-
> image-minimal.bb,
> > do_rootfs) failed with exit code '1'
> > NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to be
> > rerun and 1 failed.
> > ===================================
> >
> > 2. without staticdev changes [in local/local.conf], it
> > [bitbake-core-image-minimal] goes through and it builds [but there is
> only
> > .so [dynamic library] generated]
> >
> > IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
> > libxml2"
> >
> >
> > 3. i ran the search and found that all "no-static" lines are commented
> >
> > bitbake -e | grep static-libs
> >
> >
> > and all the "no-static-libs.inc" are commented [#]
> >
> > Thanks
> > RC
> >
> > On Wed, Apr 5, 2017 at 2:04 PM, Ravi chandra reddy <vlsireddy@gmail.com>
> > wrote:
> >>
> >> Hi,
> >> in local/local.conf it [bitbake core-image-minimal] fails, if i
> use
> >> libxml2-staticdev
> >>
> >> # Specify the 32-bit libraries to be added to all images
> >> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
> >> libxml2-staticdev"
> >>
> >> ================================== i get the following
> >> errors==================================
> >> ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
> >> ERROR: Logfile of failure stored in:
> >> /home/polar/zcu_yocto/poky/build/tmp/work/zcu102_zynqmp-
> poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.17721
> >> ERROR: Task 9
> >> (/home/polar/zcu_yocto/poky/meta/recipes-core/images/core-
> image-minimal.bb,
> >> do_rootfs) failed with exit code '1'
> >> NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to
> be
> >> rerun and 1 failed.
> >> ===================================
> >>
> >> if i use as below, there is no issue. however there is no .so
> >>
> >> # Specify the 32-bit libraries to be added to all images
> >> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
> >> libxml2"
> >>
> >> i ran
> >>
> >> bitbake -e | grep static-libs
> >>
> >> and all the "no-static-libs.inc" are commented [#]
> >>
> >> Thanks
> >> RC
> >>
> >>
> >>
> >> On Wed, Apr 5, 2017 at 11:48 AM, Richard Purdie
> >> <richard.purdie@linuxfoundation.org> wrote:
> >>>
> >>> On Wed, 2017-04-05 at 10:33 -0500, Matthew McClintock wrote:
> >>> > On Wed, Apr 5, 2017 at 10:18 AM, Ravi chandra reddy <vlsireddy@gmail.
> >>> > com> wrote:
> >>> > >
> >>> > > Hi All,
> >>> > > I am using meta-oe to generate libxml2 library using
> >>> > > AARCH64
> >>> > > compiler. However it generates shared object [.so] library.
> >>> > >
> >>> > > is there any setting in recipe to modify this, to generate static
> >>> > > library
> >>> > > [instead of shared library]
> >>> > >
> >>> > > if so, please point me to the recipe/file to change.
> >>> > >
> >>> > > if not, i will try to add it as patch, plz point me to appropriate
> >>> > > files to
> >>> > > change
> >>> > Is the ${PN}-staticdev package getting generated for you?
> >>>
> >>> Its possible you have conf/distro/include/no-static-libs.inc included
> >>> in your build (bitbake -e would tell you).
> >>>
> >>> If so, you could remove that include or set:
> >>>
> >>> DISABLE_STATIC = ""
> >>>
> >>> as it would currently be set to this if that include file is included:
> >>>
> >>> DISABLE_STATIC = " --disable-static"
> >>>
> >>> We tend not to build static libraries as they're a waste of space/time
> >>> on the most part.
> >>>
> >>> Cheers,
> >>>
> >>> Richard
> >>
> >>
> >
>
[-- Attachment #2: Type: text/html, Size: 8568 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-05 18:37 ` Ravi chandra reddy
@ 2017-04-06 14:20 ` Ravi chandra reddy
2017-04-06 19:17 ` Matthew McClintock
0 siblings, 1 reply; 12+ messages in thread
From: Ravi chandra reddy @ 2017-04-06 14:20 UTC (permalink / raw)
To: Matthew McClintock; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 6754 bytes --]
Hi,
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.
Thanks
On Wed, Apr 5, 2017 at 2:37 PM, Ravi chandra reddy <vlsireddy@gmail.com>
wrote:
> Hi,
> is this what you are talking about
>
> root@polar:~/zcu_yocto/poky/build/tmp/sysroots/zcu102-zynqmp/pkgdata/runtime#
> ls -ltr *libxml*
> -rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2-ptest.packaged
> -rwxrwxrwx 2 root root 463307 Nov 21 14:05 libxml2-ptest
> -rwxrwxrwx 2 root root 933 Nov 21 14:05 libxml2-staticdev
> -rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2-dbg.packaged
> -rwxrwxrwx 2 root root 10526 Nov 21 14:05 libxml2-dbg
> -rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2-dev.packaged
> -rwxrwxrwx 2 root root 3836 Nov 21 14:05 libxml2-dev
> -rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2-doc.packaged
> -rwxrwxrwx 2 root root 17476 Nov 21 14:05 libxml2-doc
> -rwxrwxrwx 2 root root 638 Nov 21 14:05 libxml2-locale
> -rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2.packaged
> -rwxrwxrwx 2 root root 4164 Nov 21 14:05 libxml2
> -rwxrwxrwx 2 root root 628 Nov 21 14:05 libxml2-utils
> -rwxrwxrwx 2 root root 0 Nov 21 14:05 libxml2-python.packaged
> -rwxrwxrwx 2 root root 2910 Nov 21 14:05 libxml2-python
> root@polar:~/zcu_yocto/poky/build/tmp/sysroots/zcu102-
> zynqmp/pkgdata/runtime#
> root@polar:~/zcu_yocto/poky/build/tmp/sysroots/zcu102-
> zynqmp/pkgdata/runtime#
> root@polar:~/zcu_yocto/poky/build/tmp/sysroots/zcu102-
> zynqmp/pkgdata/runtime#
> root@polar:~/zcu_yocto/poky/build/tmp/sysroots/zcu102-
> zynqmp/pkgdata/runtime#
>
> if not, then sorry, i didnt get you when you say "static dev packages"
>
> Thanks
>
>
> On Wed, Apr 5, 2017 at 2:26 PM, Matthew McClintock <msm-oss@mcclintock.net
> > wrote:
>
>> Do you have the staticdev packages in your TMPDIR? E.g.
>>
>> tmp/work/cortexa15t2hf-neon-rdk-linux-gnueabi/libxml2/2.9.4-
>> r0/deploy-ipks/cortexa15t2hf-neon/libxml2-staticdev_2.9.4-
>> r0_cortexa15t2hf-neon.ipk
>>
>> -M
>>
>> On Wed, Apr 5, 2017 at 1:09 PM, Ravi chandra reddy <vlsireddy@gmail.com>
>> wrote:
>> > Hi,
>> > Let me thank you guys for quick reply.
>> > let me put my email in correct steps
>> >
>> > 1. below local/local.conf changes makes bitbake fail.
>> >
>> > IMAGE_INSTALL_append = "lib32-glibc
>> lib32-libgcc
>> > lib32-libstdc++ libedit libxml2-staticdev"
>> >
>> > error:=============
>> > ================================== i get the following
>> > errors==================================
>> > ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
>> > ERROR: Logfile of failure stored in:
>> > /home/polar/zcu_yocto/poky/build/tmp/work/zcu102_zynqmp-poky
>> -linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.17721
>> > ERROR: Task 9
>> > (/home/polar/zcu_yocto/poky/meta/recipes-core/images/core-im
>> age-minimal.bb,
>> > do_rootfs) failed with exit code '1'
>> > NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to
>> be
>> > rerun and 1 failed.
>> > ===================================
>> >
>> > 2. without staticdev changes [in local/local.conf], it
>> > [bitbake-core-image-minimal] goes through and it builds [but there is
>> only
>> > .so [dynamic library] generated]
>> >
>> > IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++ libedit
>> > libxml2"
>> >
>> >
>> > 3. i ran the search and found that all "no-static" lines are commented
>> >
>> > bitbake -e | grep static-libs
>> >
>> >
>> > and all the "no-static-libs.inc" are commented [#]
>> >
>> > Thanks
>> > RC
>> >
>> > On Wed, Apr 5, 2017 at 2:04 PM, Ravi chandra reddy <vlsireddy@gmail.com
>> >
>> > wrote:
>> >>
>> >> Hi,
>> >> in local/local.conf it [bitbake core-image-minimal] fails, if i
>> use
>> >> libxml2-staticdev
>> >>
>> >> # Specify the 32-bit libraries to be added to all images
>> >> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++
>> libedit
>> >> libxml2-staticdev"
>> >>
>> >> ================================== i get the following
>> >> errors==================================
>> >> ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
>> >> ERROR: Logfile of failure stored in:
>> >> /home/polar/zcu_yocto/poky/build/tmp/work/zcu102_zynqmp-poky
>> -linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.17721
>> >> ERROR: Task 9
>> >> (/home/polar/zcu_yocto/poky/meta/recipes-core/images/core-im
>> age-minimal.bb,
>> >> do_rootfs) failed with exit code '1'
>> >> NOTE: Tasks Summary: Attempted 2144 tasks of which 2143 didn't need to
>> be
>> >> rerun and 1 failed.
>> >> ===================================
>> >>
>> >> if i use as below, there is no issue. however there is no .so
>> >>
>> >> # Specify the 32-bit libraries to be added to all images
>> >> IMAGE_INSTALL_append = "lib32-glibc lib32-libgcc lib32-libstdc++
>> libedit
>> >> libxml2"
>> >>
>> >> i ran
>> >>
>> >> bitbake -e | grep static-libs
>> >>
>> >> and all the "no-static-libs.inc" are commented [#]
>> >>
>> >> Thanks
>> >> RC
>> >>
>> >>
>> >>
>> >> On Wed, Apr 5, 2017 at 11:48 AM, Richard Purdie
>> >> <richard.purdie@linuxfoundation.org> wrote:
>> >>>
>> >>> On Wed, 2017-04-05 at 10:33 -0500, Matthew McClintock wrote:
>> >>> > On Wed, Apr 5, 2017 at 10:18 AM, Ravi chandra reddy
>> <vlsireddy@gmail.
>> >>> > com> wrote:
>> >>> > >
>> >>> > > Hi All,
>> >>> > > I am using meta-oe to generate libxml2 library using
>> >>> > > AARCH64
>> >>> > > compiler. However it generates shared object [.so] library.
>> >>> > >
>> >>> > > is there any setting in recipe to modify this, to generate static
>> >>> > > library
>> >>> > > [instead of shared library]
>> >>> > >
>> >>> > > if so, please point me to the recipe/file to change.
>> >>> > >
>> >>> > > if not, i will try to add it as patch, plz point me to appropriate
>> >>> > > files to
>> >>> > > change
>> >>> > Is the ${PN}-staticdev package getting generated for you?
>> >>>
>> >>> Its possible you have conf/distro/include/no-static-libs.inc included
>> >>> in your build (bitbake -e would tell you).
>> >>>
>> >>> If so, you could remove that include or set:
>> >>>
>> >>> DISABLE_STATIC = ""
>> >>>
>> >>> as it would currently be set to this if that include file is included:
>> >>>
>> >>> DISABLE_STATIC = " --disable-static"
>> >>>
>> >>> We tend not to build static libraries as they're a waste of space/time
>> >>> on the most part.
>> >>>
>> >>> Cheers,
>> >>>
>> >>> Richard
>> >>
>> >>
>> >
>>
>
>
[-- Attachment #2: Type: text/html, Size: 9410 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-06 14:20 ` Ravi chandra reddy
@ 2017-04-06 19:17 ` Matthew McClintock
2017-04-06 20:11 ` Ravi chandra reddy
0 siblings, 1 reply; 12+ messages in thread
From: Matthew McClintock @ 2017-04-06 19:17 UTC (permalink / raw)
To: Ravi chandra reddy; +Cc: Patches and discussions about the oe-core layer
On Thu, Apr 6, 2017 at 9:20 AM, Ravi chandra reddy <vlsireddy@gmail.com> wrote:
> Hi,
> 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.
Can you expand on what you're trying to accomplish? Are you trying to
build a static binary? I don't think you actually are trying to
install libxml2.a on the running image are you? Maybe you really want
an SDK with a sysroot populated with static libraries so you can link
against them?
-M
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-06 19:17 ` Matthew McClintock
@ 2017-04-06 20:11 ` Ravi chandra reddy
2017-04-06 22:31 ` Andrea Galbusera
0 siblings, 1 reply; 12+ messages in thread
From: Ravi chandra reddy @ 2017-04-06 20:11 UTC (permalink / raw)
To: Matthew McClintock; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 1764 bytes --]
Hi,
I am trying to generate LibIIO [open source by Analog Devices], however
there is dependancy on Libxml2.
problem with Libxml2, it is dependant on *python*-lib, libdl, libz, libzma,
libm
for some reason with Yocto built Libxml2.so, i am encountering "undefined
references error", which i am unable to solve [inspite of linking possible
dependant libraries],
if i get could the Libxml2.a, it packages all "REQUIRED ELEMENTS", so i
assume, there WONT be any error in linking Libxml2 in Libiio.
======in short=========
Libiio ---linking---> Libxml2*.so* [yocto based] ---errors-> undefined
referneces to .....
======in short=========
Libiio ---linking---> Libxml2.a [yocto based] --> SHOULD solve and install
libiio
for me to generate Libxml2.a, i need to make/ask yocto build LIbxml2.a for
me. i tried putting libxml2-staticdev in the local.conf file and it gives
me build error.
all i want is Libxml2.a which is to be used by Libiio.so/Libiio.a to be
used by an application [called in user space of AARCH linux]
Thanks
RC
On Thu, Apr 6, 2017 at 3:17 PM, Matthew McClintock <msm-oss@mcclintock.net>
wrote:
> On Thu, Apr 6, 2017 at 9:20 AM, Ravi chandra reddy <vlsireddy@gmail.com>
> wrote:
> > Hi,
> > 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.
>
> Can you expand on what you're trying to accomplish? Are you trying to
> build a static binary? I don't think you actually are trying to
> install libxml2.a on the running image are you? Maybe you really want
> an SDK with a sysroot populated with static libraries so you can link
> against them?
>
> -M
>
[-- Attachment #2: Type: text/html, Size: 2523 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-06 20:11 ` Ravi chandra reddy
@ 2017-04-06 22:31 ` Andrea Galbusera
2017-04-09 1:55 ` Ravi chandra reddy
0 siblings, 1 reply; 12+ messages in thread
From: Andrea Galbusera @ 2017-04-06 22:31 UTC (permalink / raw)
To: Ravi chandra reddy; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 2298 bytes --]
Hi,
On Thu, Apr 6, 2017 at 10:11 PM, Ravi chandra reddy <vlsireddy@gmail.com>
wrote:
> Hi,
> I am trying to generate LibIIO [open source by Analog Devices],
> however there is dependancy on Libxml2.
>
For libiio there is a recipe in meta-openembedded [1]. Are you using that
one?
[1] http://layers.openembedded.org/layerindex/recipe/57509/
> problem with Libxml2, it is dependant on *python*-lib, libdl, libz,
> libzma, libm
>
> for some reason with Yocto built Libxml2.so, i am encountering "undefined
> references error", which i am unable to solve [inspite of linking possible
> dependant libraries],
>
> if i get could the Libxml2.a, it packages all "REQUIRED ELEMENTS", so i
> assume, there WONT be any error in linking Libxml2 in Libiio.
>
> ======in short=========
> Libiio ---linking---> Libxml2*.so* [yocto based] ---errors-> undefined
> referneces to .....
>
> ======in short=========
> Libiio ---linking---> Libxml2.a [yocto based] --> SHOULD solve and install
> libiio
>
> for me to generate Libxml2.a, i need to make/ask yocto build LIbxml2.a for
> me. i tried putting libxml2-staticdev in the local.conf file and it gives
> me build error.
>
> all i want is Libxml2.a which is to be used by Libiio.so/Libiio.a to be
> used by an application [called in user space of AARCH linux]
>
>
> Thanks
> RC
>
> On Thu, Apr 6, 2017 at 3:17 PM, Matthew McClintock <msm-oss@mcclintock.net
> > wrote:
>
>> On Thu, Apr 6, 2017 at 9:20 AM, Ravi chandra reddy <vlsireddy@gmail.com>
>> wrote:
>> > Hi,
>> > 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.
>>
>> Can you expand on what you're trying to accomplish? Are you trying to
>> build a static binary? I don't think you actually are trying to
>> install libxml2.a on the running image are you? Maybe you really want
>> an SDK with a sysroot populated with static libraries so you can link
>> against them?
>>
>> -M
>>
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
[-- Attachment #2: Type: text/html, Size: 3939 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Recipe [patch] modification to generate a static library instead of shared library
2017-04-06 22:31 ` Andrea Galbusera
@ 2017-04-09 1:55 ` Ravi chandra reddy
0 siblings, 0 replies; 12+ messages in thread
From: Ravi chandra reddy @ 2017-04-09 1:55 UTC (permalink / raw)
To: Andrea Galbusera; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 2754 bytes --]
Hi Andrea,
gr8, Thanks for this information. i wasnt' aware someone did
create a libiio in yocto.
anyways, i reached my goal using other means of cross compiling individual
libraries and building libiio finally. it was a pain, but i learnt a lot in
between.
Thanks
RC
On Thu, Apr 6, 2017 at 6:31 PM, Andrea Galbusera <gizero@gmail.com> wrote:
> Hi,
>
> On Thu, Apr 6, 2017 at 10:11 PM, Ravi chandra reddy <vlsireddy@gmail.com>
> wrote:
>
>> Hi,
>> I am trying to generate LibIIO [open source by Analog Devices],
>> however there is dependancy on Libxml2.
>>
>
> For libiio there is a recipe in meta-openembedded [1]. Are you using that
> one?
>
> [1] http://layers.openembedded.org/layerindex/recipe/57509/
>
>
>> problem with Libxml2, it is dependant on *python*-lib, libdl, libz,
>> libzma, libm
>>
>> for some reason with Yocto built Libxml2.so, i am encountering "undefined
>> references error", which i am unable to solve [inspite of linking possible
>> dependant libraries],
>>
>> if i get could the Libxml2.a, it packages all "REQUIRED ELEMENTS", so i
>> assume, there WONT be any error in linking Libxml2 in Libiio.
>>
>> ======in short=========
>> Libiio ---linking---> Libxml2*.so* [yocto based] ---errors-> undefined
>> referneces to .....
>>
>> ======in short=========
>> Libiio ---linking---> Libxml2.a [yocto based] --> SHOULD solve and
>> install libiio
>>
>> for me to generate Libxml2.a, i need to make/ask yocto build LIbxml2.a
>> for me. i tried putting libxml2-staticdev in the local.conf file and it
>> gives me build error.
>>
>> all i want is Libxml2.a which is to be used by Libiio.so/Libiio.a to be
>> used by an application [called in user space of AARCH linux]
>>
>>
>> Thanks
>> RC
>>
>> On Thu, Apr 6, 2017 at 3:17 PM, Matthew McClintock <
>> msm-oss@mcclintock.net> wrote:
>>
>>> On Thu, Apr 6, 2017 at 9:20 AM, Ravi chandra reddy <vlsireddy@gmail.com>
>>> wrote:
>>> > Hi,
>>> > 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.
>>>
>>> Can you expand on what you're trying to accomplish? Are you trying to
>>> build a static binary? I don't think you actually are trying to
>>> install libxml2.a on the running image are you? Maybe you really want
>>> an SDK with a sysroot populated with static libraries so you can link
>>> against them?
>>>
>>> -M
>>>
>>
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>
>>
>
[-- Attachment #2: Type: text/html, Size: 4923 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2017-04-09 1:55 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CAGQ4JX3rYtONiVv_eOhj-MK=2FA7=h3xCA_iytd=fpTF00rT6A@mail.gmail.com>
2017-04-05 15:18 ` Recipe [patch] modification to generate a static library instead of shared library Ravi chandra reddy
2017-04-05 15:33 ` Matthew McClintock
2017-04-05 15:48 ` Richard Purdie
2017-04-05 18:04 ` Ravi chandra reddy
2017-04-05 18:09 ` Ravi chandra reddy
2017-04-05 18:26 ` Matthew McClintock
2017-04-05 18:37 ` Ravi chandra reddy
2017-04-06 14:20 ` Ravi chandra reddy
2017-04-06 19:17 ` Matthew McClintock
2017-04-06 20:11 ` Ravi chandra reddy
2017-04-06 22:31 ` Andrea Galbusera
2017-04-09 1:55 ` Ravi chandra reddy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.