* [meta-oe][PATCH] nspr-native: build correclty with extended buildtools.
@ 2022-03-09 19:41 Jeremy A. Puhlman
2022-03-09 20:06 ` [oe] " Khem Raj
0 siblings, 1 reply; 8+ messages in thread
From: Jeremy A. Puhlman @ 2022-03-09 19:41 UTC (permalink / raw)
To: openembedded-devel; +Cc: Jeremy Puhlman
From: Jeremy Puhlman <jpuhlman@mvista.com>
gcc abstract.o -Xlinker -L../../dist/lib -lplc4 -L../../dist/lib -lnspr4 -lpthread -o abstract
/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlsym@GLIBC_PRIVATE'
/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__pthread_unwind@GLIBC_PRIVATE'
/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlopen_mode@GLIBC_PRIVATE'
/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getcpuclockid@GLIBC_PRIVATE'
/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_nanosleep@GLIBC_PRIVATE'
/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_settime@GLIBC_PRIVATE'
/build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getres@GLIBC_PRIVATE'
The linker is not correctly pulling in lrt as needed.
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
---
meta-oe/recipes-support/nspr/nspr_4.29.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-oe/recipes-support/nspr/nspr_4.29.bb b/meta-oe/recipes-support/nspr/nspr_4.29.bb
index f224bcd34..2717f37bc 100644
--- a/meta-oe/recipes-support/nspr/nspr_4.29.bb
+++ b/meta-oe/recipes-support/nspr/nspr_4.29.bb
@@ -160,6 +160,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
# preferred path upstream.
EXTRA_OECONF += "--includedir=${includedir}/nspr"
+EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt'"
+
do_compile:prepend() {
oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
}
--
2.31.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [oe] [meta-oe][PATCH] nspr-native: build correclty with extended buildtools.
2022-03-09 19:41 [meta-oe][PATCH] nspr-native: build correclty with extended buildtools Jeremy A. Puhlman
@ 2022-03-09 20:06 ` Khem Raj
2022-03-09 20:31 ` Jeremy Puhlman
0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2022-03-09 20:06 UTC (permalink / raw)
To: Jeremy Puhlman; +Cc: openembeded-devel
Thanks Jeremy
I wonder why we don't see it failing on AB or in my local testing. is
it specific to some build host distro ?
On Wed, Mar 9, 2022 at 11:41 AM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>
> From: Jeremy Puhlman <jpuhlman@mvista.com>
>
> gcc abstract.o -Xlinker -L../../dist/lib -lplc4 -L../../dist/lib -lnspr4 -lpthread -o abstract
> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlsym@GLIBC_PRIVATE'
> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__pthread_unwind@GLIBC_PRIVATE'
> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlopen_mode@GLIBC_PRIVATE'
> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getcpuclockid@GLIBC_PRIVATE'
> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_nanosleep@GLIBC_PRIVATE'
> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_settime@GLIBC_PRIVATE'
> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getres@GLIBC_PRIVATE'
>
> The linker is not correctly pulling in lrt as needed.
>
> Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
> ---
> meta-oe/recipes-support/nspr/nspr_4.29.bb | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-support/nspr/nspr_4.29.bb b/meta-oe/recipes-support/nspr/nspr_4.29.bb
> index f224bcd34..2717f37bc 100644
> --- a/meta-oe/recipes-support/nspr/nspr_4.29.bb
> +++ b/meta-oe/recipes-support/nspr/nspr_4.29.bb
> @@ -160,6 +160,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
> # preferred path upstream.
> EXTRA_OECONF += "--includedir=${includedir}/nspr"
>
> +EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt'"
> +
> do_compile:prepend() {
> oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
> }
> --
> 2.31.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#95912): https://lists.openembedded.org/g/openembedded-devel/message/95912
> Mute This Topic: https://lists.openembedded.org/mt/89670512/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [oe] [meta-oe][PATCH] nspr-native: build correclty with extended buildtools.
2022-03-09 20:06 ` [oe] " Khem Raj
@ 2022-03-09 20:31 ` Jeremy Puhlman
2022-03-10 17:04 ` Khem Raj
0 siblings, 1 reply; 8+ messages in thread
From: Jeremy Puhlman @ 2022-03-09 20:31 UTC (permalink / raw)
To: Khem Raj; +Cc: openembeded-devel
On 3/9/2022 12:06 PM, Khem Raj wrote:
> Thanks Jeremy
>
> I wonder why we don't see it failing on AB or in my local testing. is
> it specific to some build host distro ?
I am seeing the same issue reported on ubuntu 18.04, centos 7 and 8, but
its only with the extended buildtools.
>
> On Wed, Mar 9, 2022 at 11:41 AM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>> From: Jeremy Puhlman <jpuhlman@mvista.com>
>>
>> gcc abstract.o -Xlinker -L../../dist/lib -lplc4 -L../../dist/lib -lnspr4 -lpthread -o abstract
>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlsym@GLIBC_PRIVATE'
>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__pthread_unwind@GLIBC_PRIVATE'
>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlopen_mode@GLIBC_PRIVATE'
>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getcpuclockid@GLIBC_PRIVATE'
>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_nanosleep@GLIBC_PRIVATE'
>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_settime@GLIBC_PRIVATE'
>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getres@GLIBC_PRIVATE'
>>
>> The linker is not correctly pulling in lrt as needed.
>>
>> Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
>> ---
>> meta-oe/recipes-support/nspr/nspr_4.29.bb | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/meta-oe/recipes-support/nspr/nspr_4.29.bb b/meta-oe/recipes-support/nspr/nspr_4.29.bb
>> index f224bcd34..2717f37bc 100644
>> --- a/meta-oe/recipes-support/nspr/nspr_4.29.bb
>> +++ b/meta-oe/recipes-support/nspr/nspr_4.29.bb
>> @@ -160,6 +160,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
>> # preferred path upstream.
>> EXTRA_OECONF += "--includedir=${includedir}/nspr"
>>
>> +EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt'"
>> +
>> do_compile:prepend() {
>> oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
>> }
>> --
>> 2.31.1
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#95912): https://lists.openembedded.org/g/openembedded-devel/message/95912
>> Mute This Topic: https://lists.openembedded.org/mt/89670512/1997914
>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [oe] [meta-oe][PATCH] nspr-native: build correclty with extended buildtools.
2022-03-09 20:31 ` Jeremy Puhlman
@ 2022-03-10 17:04 ` Khem Raj
2022-03-10 17:48 ` Ross Burton
2022-03-10 17:58 ` Jeremy Puhlman
0 siblings, 2 replies; 8+ messages in thread
From: Khem Raj @ 2022-03-10 17:04 UTC (permalink / raw)
To: Jeremy Puhlman; +Cc: openembeded-devel
sadly I am seeing this failure
https://errors.yoctoproject.org/Errors/Details/651342/
On Wed, Mar 9, 2022 at 12:31 PM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>
>
>
> On 3/9/2022 12:06 PM, Khem Raj wrote:
> > Thanks Jeremy
> >
> > I wonder why we don't see it failing on AB or in my local testing. is
> > it specific to some build host distro ?
>
> I am seeing the same issue reported on ubuntu 18.04, centos 7 and 8, but
> its only with the extended buildtools.
>
> >
> > On Wed, Mar 9, 2022 at 11:41 AM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
> >> From: Jeremy Puhlman <jpuhlman@mvista.com>
> >>
> >> gcc abstract.o -Xlinker -L../../dist/lib -lplc4 -L../../dist/lib -lnspr4 -lpthread -o abstract
> >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlsym@GLIBC_PRIVATE'
> >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__pthread_unwind@GLIBC_PRIVATE'
> >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlopen_mode@GLIBC_PRIVATE'
> >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getcpuclockid@GLIBC_PRIVATE'
> >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_nanosleep@GLIBC_PRIVATE'
> >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_settime@GLIBC_PRIVATE'
> >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getres@GLIBC_PRIVATE'
> >>
> >> The linker is not correctly pulling in lrt as needed.
> >>
> >> Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
> >> ---
> >> meta-oe/recipes-support/nspr/nspr_4.29.bb | 2 ++
> >> 1 file changed, 2 insertions(+)
> >>
> >> diff --git a/meta-oe/recipes-support/nspr/nspr_4.29.bb b/meta-oe/recipes-support/nspr/nspr_4.29.bb
> >> index f224bcd34..2717f37bc 100644
> >> --- a/meta-oe/recipes-support/nspr/nspr_4.29.bb
> >> +++ b/meta-oe/recipes-support/nspr/nspr_4.29.bb
> >> @@ -160,6 +160,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
> >> # preferred path upstream.
> >> EXTRA_OECONF += "--includedir=${includedir}/nspr"
> >>
> >> +EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt'"
> >> +
> >> do_compile:prepend() {
> >> oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
> >> }
> >> --
> >> 2.31.1
> >>
> >>
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >> Links: You receive all messages sent to this group.
> >> View/Reply Online (#95912): https://lists.openembedded.org/g/openembedded-devel/message/95912
> >> Mute This Topic: https://lists.openembedded.org/mt/89670512/1997914
> >> Group Owner: openembedded-devel+owner@lists.openembedded.org
> >> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [oe] [meta-oe][PATCH] nspr-native: build correclty with extended buildtools.
2022-03-10 17:04 ` Khem Raj
@ 2022-03-10 17:48 ` Ross Burton
2022-03-10 17:58 ` Jeremy Puhlman
1 sibling, 0 replies; 8+ messages in thread
From: Ross Burton @ 2022-03-10 17:48 UTC (permalink / raw)
To: Khem Raj; +Cc: Jeremy Puhlman, openembeded-devel
I came here to say the same. :)
Ross
On Thu, 10 Mar 2022 at 17:04, Khem Raj <raj.khem@gmail.com> wrote:
>
> sadly I am seeing this failure
>
> https://errors.yoctoproject.org/Errors/Details/651342/
>
> On Wed, Mar 9, 2022 at 12:31 PM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
> >
> >
> >
> > On 3/9/2022 12:06 PM, Khem Raj wrote:
> > > Thanks Jeremy
> > >
> > > I wonder why we don't see it failing on AB or in my local testing. is
> > > it specific to some build host distro ?
> >
> > I am seeing the same issue reported on ubuntu 18.04, centos 7 and 8, but
> > its only with the extended buildtools.
> >
> > >
> > > On Wed, Mar 9, 2022 at 11:41 AM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
> > >> From: Jeremy Puhlman <jpuhlman@mvista.com>
> > >>
> > >> gcc abstract.o -Xlinker -L../../dist/lib -lplc4 -L../../dist/lib -lnspr4 -lpthread -o abstract
> > >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlsym@GLIBC_PRIVATE'
> > >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__pthread_unwind@GLIBC_PRIVATE'
> > >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlopen_mode@GLIBC_PRIVATE'
> > >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getcpuclockid@GLIBC_PRIVATE'
> > >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_nanosleep@GLIBC_PRIVATE'
> > >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_settime@GLIBC_PRIVATE'
> > >> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getres@GLIBC_PRIVATE'
> > >>
> > >> The linker is not correctly pulling in lrt as needed.
> > >>
> > >> Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
> > >> ---
> > >> meta-oe/recipes-support/nspr/nspr_4.29.bb | 2 ++
> > >> 1 file changed, 2 insertions(+)
> > >>
> > >> diff --git a/meta-oe/recipes-support/nspr/nspr_4.29.bb b/meta-oe/recipes-support/nspr/nspr_4.29.bb
> > >> index f224bcd34..2717f37bc 100644
> > >> --- a/meta-oe/recipes-support/nspr/nspr_4.29.bb
> > >> +++ b/meta-oe/recipes-support/nspr/nspr_4.29.bb
> > >> @@ -160,6 +160,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
> > >> # preferred path upstream.
> > >> EXTRA_OECONF += "--includedir=${includedir}/nspr"
> > >>
> > >> +EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt'"
> > >> +
> > >> do_compile:prepend() {
> > >> oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
> > >> }
> > >> --
> > >> 2.31.1
> > >>
> > >>
> > >>
> > >>
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#95935): https://lists.openembedded.org/g/openembedded-devel/message/95935
> Mute This Topic: https://lists.openembedded.org/mt/89670512/1676615
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ross@burtonini.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [oe] [meta-oe][PATCH] nspr-native: build correclty with extended buildtools.
2022-03-10 17:04 ` Khem Raj
2022-03-10 17:48 ` Ross Burton
@ 2022-03-10 17:58 ` Jeremy Puhlman
2022-03-10 18:21 ` Khem Raj
1 sibling, 1 reply; 8+ messages in thread
From: Jeremy Puhlman @ 2022-03-10 17:58 UTC (permalink / raw)
To: Khem Raj; +Cc: openembeded-devel
Adding -ldl should resolve it. It corrected the issue on ubuntu-18.04 +
extended-buildtools and with out. Lemme check centos as well.
On 3/10/2022 9:04 AM, Khem Raj wrote:
> sadly I am seeing this failure
>
> https://errors.yoctoproject.org/Errors/Details/651342/
>
> On Wed, Mar 9, 2022 at 12:31 PM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>>
>>
>> On 3/9/2022 12:06 PM, Khem Raj wrote:
>>> Thanks Jeremy
>>>
>>> I wonder why we don't see it failing on AB or in my local testing. is
>>> it specific to some build host distro ?
>> I am seeing the same issue reported on ubuntu 18.04, centos 7 and 8, but
>> its only with the extended buildtools.
>>
>>> On Wed, Mar 9, 2022 at 11:41 AM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>>>> From: Jeremy Puhlman <jpuhlman@mvista.com>
>>>>
>>>> gcc abstract.o -Xlinker -L../../dist/lib -lplc4 -L../../dist/lib -lnspr4 -lpthread -o abstract
>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlsym@GLIBC_PRIVATE'
>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__pthread_unwind@GLIBC_PRIVATE'
>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlopen_mode@GLIBC_PRIVATE'
>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getcpuclockid@GLIBC_PRIVATE'
>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_nanosleep@GLIBC_PRIVATE'
>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_settime@GLIBC_PRIVATE'
>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getres@GLIBC_PRIVATE'
>>>>
>>>> The linker is not correctly pulling in lrt as needed.
>>>>
>>>> Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
>>>> ---
>>>> meta-oe/recipes-support/nspr/nspr_4.29.bb | 2 ++
>>>> 1 file changed, 2 insertions(+)
>>>>
>>>> diff --git a/meta-oe/recipes-support/nspr/nspr_4.29.bb b/meta-oe/recipes-support/nspr/nspr_4.29.bb
>>>> index f224bcd34..2717f37bc 100644
>>>> --- a/meta-oe/recipes-support/nspr/nspr_4.29.bb
>>>> +++ b/meta-oe/recipes-support/nspr/nspr_4.29.bb
>>>> @@ -160,6 +160,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
>>>> # preferred path upstream.
>>>> EXTRA_OECONF += "--includedir=${includedir}/nspr"
>>>>
>>>> +EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt'"
>>>> +
>>>> do_compile:prepend() {
>>>> oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
>>>> }
>>>> --
>>>> 2.31.1
>>>>
>>>>
>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>> Links: You receive all messages sent to this group.
>>>> View/Reply Online (#95912): https://lists.openembedded.org/g/openembedded-devel/message/95912
>>>> Mute This Topic: https://lists.openembedded.org/mt/89670512/1997914
>>>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>>>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [oe] [meta-oe][PATCH] nspr-native: build correclty with extended buildtools.
2022-03-10 17:58 ` Jeremy Puhlman
@ 2022-03-10 18:21 ` Khem Raj
2022-03-10 18:48 ` Jeremy Puhlman
0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2022-03-10 18:21 UTC (permalink / raw)
To: Jeremy Puhlman; +Cc: openembeded-devel
On Thu, Mar 10, 2022 at 9:58 AM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>
> Adding -ldl should resolve it. It corrected the issue on ubuntu-18.04 +
> extended-buildtools and with out. Lemme check centos as well.
>
Thanks Jeremy
Since, I merged the patch. Please send and incremental fix.
>
> On 3/10/2022 9:04 AM, Khem Raj wrote:
> > sadly I am seeing this failure
> >
> > https://errors.yoctoproject.org/Errors/Details/651342/
> >
> > On Wed, Mar 9, 2022 at 12:31 PM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
> >>
> >>
> >> On 3/9/2022 12:06 PM, Khem Raj wrote:
> >>> Thanks Jeremy
> >>>
> >>> I wonder why we don't see it failing on AB or in my local testing. is
> >>> it specific to some build host distro ?
> >> I am seeing the same issue reported on ubuntu 18.04, centos 7 and 8, but
> >> its only with the extended buildtools.
> >>
> >>> On Wed, Mar 9, 2022 at 11:41 AM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
> >>>> From: Jeremy Puhlman <jpuhlman@mvista.com>
> >>>>
> >>>> gcc abstract.o -Xlinker -L../../dist/lib -lplc4 -L../../dist/lib -lnspr4 -lpthread -o abstract
> >>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlsym@GLIBC_PRIVATE'
> >>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__pthread_unwind@GLIBC_PRIVATE'
> >>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlopen_mode@GLIBC_PRIVATE'
> >>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getcpuclockid@GLIBC_PRIVATE'
> >>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_nanosleep@GLIBC_PRIVATE'
> >>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_settime@GLIBC_PRIVATE'
> >>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getres@GLIBC_PRIVATE'
> >>>>
> >>>> The linker is not correctly pulling in lrt as needed.
> >>>>
> >>>> Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
> >>>> ---
> >>>> meta-oe/recipes-support/nspr/nspr_4.29.bb | 2 ++
> >>>> 1 file changed, 2 insertions(+)
> >>>>
> >>>> diff --git a/meta-oe/recipes-support/nspr/nspr_4.29.bb b/meta-oe/recipes-support/nspr/nspr_4.29.bb
> >>>> index f224bcd34..2717f37bc 100644
> >>>> --- a/meta-oe/recipes-support/nspr/nspr_4.29.bb
> >>>> +++ b/meta-oe/recipes-support/nspr/nspr_4.29.bb
> >>>> @@ -160,6 +160,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
> >>>> # preferred path upstream.
> >>>> EXTRA_OECONF += "--includedir=${includedir}/nspr"
> >>>>
> >>>> +EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt'"
> >>>> +
> >>>> do_compile:prepend() {
> >>>> oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
> >>>> }
> >>>> --
> >>>> 2.31.1
> >>>>
> >>>>
> >>>> -=-=-=-=-=-=-=-=-=-=-=-
> >>>> Links: You receive all messages sent to this group.
> >>>> View/Reply Online (#95912): https://lists.openembedded.org/g/openembedded-devel/message/95912
> >>>> Mute This Topic: https://lists.openembedded.org/mt/89670512/1997914
> >>>> Group Owner: openembedded-devel+owner@lists.openembedded.org
> >>>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> >>>> -=-=-=-=-=-=-=-=-=-=-=-
> >>>>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [oe] [meta-oe][PATCH] nspr-native: build correclty with extended buildtools.
2022-03-10 18:21 ` Khem Raj
@ 2022-03-10 18:48 ` Jeremy Puhlman
0 siblings, 0 replies; 8+ messages in thread
From: Jeremy Puhlman @ 2022-03-10 18:48 UTC (permalink / raw)
To: Khem Raj; +Cc: openembeded-devel
On 3/10/2022 10:21 AM, Khem Raj wrote:
> On Thu, Mar 10, 2022 at 9:58 AM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>> Adding -ldl should resolve it. It corrected the issue on ubuntu-18.04 +
>> extended-buildtools and with out. Lemme check centos as well.
>>
> Thanks Jeremy
> Since, I merged the patch. Please send and incremental fix.
Patch sent. Seems to work fine in:
ubuntu 18.04 + extended-buildtools
ubuntu 18.04
ubuntu 20.04 + extended-buildtools
ubuntu 20.04
centos 8 + extended-buildtools
centos 8
centos 7 + extended-buildtools
>
>> On 3/10/2022 9:04 AM, Khem Raj wrote:
>>> sadly I am seeing this failure
>>>
>>> https://errors.yoctoproject.org/Errors/Details/651342/
>>>
>>> On Wed, Mar 9, 2022 at 12:31 PM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>>>>
>>>> On 3/9/2022 12:06 PM, Khem Raj wrote:
>>>>> Thanks Jeremy
>>>>>
>>>>> I wonder why we don't see it failing on AB or in my local testing. is
>>>>> it specific to some build host distro ?
>>>> I am seeing the same issue reported on ubuntu 18.04, centos 7 and 8, but
>>>> its only with the extended buildtools.
>>>>
>>>>> On Wed, Mar 9, 2022 at 11:41 AM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>>>>>> From: Jeremy Puhlman <jpuhlman@mvista.com>
>>>>>>
>>>>>> gcc abstract.o -Xlinker -L../../dist/lib -lplc4 -L../../dist/lib -lnspr4 -lpthread -o abstract
>>>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlsym@GLIBC_PRIVATE'
>>>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__pthread_unwind@GLIBC_PRIVATE'
>>>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__libc_dlopen_mode@GLIBC_PRIVATE'
>>>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getcpuclockid@GLIBC_PRIVATE'
>>>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_nanosleep@GLIBC_PRIVATE'
>>>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_settime@GLIBC_PRIVATE'
>>>>>> /build/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/gcc/x86_64-pokysdk-linux/11.2.0/../../../../x86_64-pokysdk-linux/bin/ld: /lib64/librt.so.1: undefined reference to `__clock_getres@GLIBC_PRIVATE'
>>>>>>
>>>>>> The linker is not correctly pulling in lrt as needed.
>>>>>>
>>>>>> Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
>>>>>> ---
>>>>>> meta-oe/recipes-support/nspr/nspr_4.29.bb | 2 ++
>>>>>> 1 file changed, 2 insertions(+)
>>>>>>
>>>>>> diff --git a/meta-oe/recipes-support/nspr/nspr_4.29.bb b/meta-oe/recipes-support/nspr/nspr_4.29.bb
>>>>>> index f224bcd34..2717f37bc 100644
>>>>>> --- a/meta-oe/recipes-support/nspr/nspr_4.29.bb
>>>>>> +++ b/meta-oe/recipes-support/nspr/nspr_4.29.bb
>>>>>> @@ -160,6 +160,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
>>>>>> # preferred path upstream.
>>>>>> EXTRA_OECONF += "--includedir=${includedir}/nspr"
>>>>>>
>>>>>> +EXTRA_OEMAKE:append:class-native = " EXTRA_LIBS='-lpthread -lrt'"
>>>>>> +
>>>>>> do_compile:prepend() {
>>>>>> oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX ${BUILD_CFLAGS}" LDFLAGS="" CC="${BUILD_CC}" -C config export
>>>>>> }
>>>>>> --
>>>>>> 2.31.1
>>>>>>
>>>>>>
>>>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>>>> Links: You receive all messages sent to this group.
>>>>>> View/Reply Online (#95912): https://lists.openembedded.org/g/openembedded-devel/message/95912
>>>>>> Mute This Topic: https://lists.openembedded.org/mt/89670512/1997914
>>>>>> Group Owner: openembedded-devel+owner@lists.openembedded.org
>>>>>> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
>>>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>>>>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-03-10 18:48 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-09 19:41 [meta-oe][PATCH] nspr-native: build correclty with extended buildtools Jeremy A. Puhlman
2022-03-09 20:06 ` [oe] " Khem Raj
2022-03-09 20:31 ` Jeremy Puhlman
2022-03-10 17:04 ` Khem Raj
2022-03-10 17:48 ` Ross Burton
2022-03-10 17:58 ` Jeremy Puhlman
2022-03-10 18:21 ` Khem Raj
2022-03-10 18:48 ` Jeremy Puhlman
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.