All of lore.kernel.org
 help / color / mirror / Atom feed
* [kirkstone][PATCH] gcc: depend on zstd-native
@ 2022-06-01 20:55 Jeremy A. Puhlman
  2022-06-01 22:15 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Jeremy A. Puhlman @ 2022-06-01 20:55 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jeremy A. Puhlman

Sharing sstate cache binaries between two systems, one with libzstd installed
and the other without, leads to various gcc components being linked against
the system libzstd and failing to run on the system with out it installed.

Make zstd-native from our system available.

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
---
 meta/recipes-devtools/gcc/gcc-11.2.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gcc/gcc-11.2.inc b/meta/recipes-devtools/gcc/gcc-11.2.inc
index 68e0d203fc..e2a28468f5 100644
--- a/meta/recipes-devtools/gcc/gcc-11.2.inc
+++ b/meta/recipes-devtools/gcc/gcc-11.2.inc
@@ -11,7 +11,7 @@ BINV = "11.2.0"
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
 
 DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
-NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
+NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native zstd-native"
 
 LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only"
 
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [OE-core] [kirkstone][PATCH] gcc: depend on zstd-native
  2022-06-01 20:55 [kirkstone][PATCH] gcc: depend on zstd-native Jeremy A. Puhlman
@ 2022-06-01 22:15 ` Richard Purdie
  2022-06-01 22:27   ` Jeremy Puhlman
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2022-06-01 22:15 UTC (permalink / raw)
  To: Jeremy Puhlman, openembedded-core

On Wed, 2022-06-01 at 16:55 -0400, Jeremy Puhlman wrote:
> Sharing sstate cache binaries between two systems, one with libzstd installed
> and the other without, leads to various gcc components being linked against
> the system libzstd and failing to run on the system with out it installed.
> 
> Make zstd-native from our system available.
> 
> Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
> ---
>  meta/recipes-devtools/gcc/gcc-11.2.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-devtools/gcc/gcc-11.2.inc b/meta/recipes-devtools/gcc/gcc-11.2.inc
> index 68e0d203fc..e2a28468f5 100644
> --- a/meta/recipes-devtools/gcc/gcc-11.2.inc
> +++ b/meta/recipes-devtools/gcc/gcc-11.2.inc
> @@ -11,7 +11,7 @@ BINV = "11.2.0"
>  FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
>  
>  DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
> -NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
> +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native zstd-native"
>  
>  LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only"

Does master have that issue?

Cheers,

Richard


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] [kirkstone][PATCH] gcc: depend on zstd-native
  2022-06-01 22:15 ` [OE-core] " Richard Purdie
@ 2022-06-01 22:27   ` Jeremy Puhlman
  2022-06-01 22:29     ` Steve Sakoman
  0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Puhlman @ 2022-06-01 22:27 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core



On 6/1/2022 3:15 PM, Richard Purdie wrote:
> On Wed, 2022-06-01 at 16:55 -0400, Jeremy Puhlman wrote:
>> Sharing sstate cache binaries between two systems, one with libzstd installed
>> and the other without, leads to various gcc components being linked against
>> the system libzstd and failing to run on the system with out it installed.
>>
>> Make zstd-native from our system available.
>>
>> Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
>> ---
>>   meta/recipes-devtools/gcc/gcc-11.2.inc | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-devtools/gcc/gcc-11.2.inc b/meta/recipes-devtools/gcc/gcc-11.2.inc
>> index 68e0d203fc..e2a28468f5 100644
>> --- a/meta/recipes-devtools/gcc/gcc-11.2.inc
>> +++ b/meta/recipes-devtools/gcc/gcc-11.2.inc
>> @@ -11,7 +11,7 @@ BINV = "11.2.0"
>>   FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
>>   
>>   DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
>> -NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
>> +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native zstd-native"
>>   
>>   LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only"
> Does master have that issue?
>
> Cheers,
>
> Richard

I would would be really surprised if it didn't, since it appears gcc is 
explicilty decidding to use the library if it is there. The patch 
cherry-picks with
name fuzzing so if we want to start it there, I can resubmit on master.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] [kirkstone][PATCH] gcc: depend on zstd-native
  2022-06-01 22:27   ` Jeremy Puhlman
@ 2022-06-01 22:29     ` Steve Sakoman
  2022-06-01 23:04       ` Jeremy Puhlman
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Sakoman @ 2022-06-01 22:29 UTC (permalink / raw)
  To: Jeremy Puhlman; +Cc: Richard Purdie, openembedded-core

On Wed, Jun 1, 2022 at 12:27 PM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>
>
>
> On 6/1/2022 3:15 PM, Richard Purdie wrote:
> > On Wed, 2022-06-01 at 16:55 -0400, Jeremy Puhlman wrote:
> >> Sharing sstate cache binaries between two systems, one with libzstd installed
> >> and the other without, leads to various gcc components being linked against
> >> the system libzstd and failing to run on the system with out it installed.
> >>
> >> Make zstd-native from our system available.
> >>
> >> Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
> >> ---
> >>   meta/recipes-devtools/gcc/gcc-11.2.inc | 2 +-
> >>   1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/meta/recipes-devtools/gcc/gcc-11.2.inc b/meta/recipes-devtools/gcc/gcc-11.2.inc
> >> index 68e0d203fc..e2a28468f5 100644
> >> --- a/meta/recipes-devtools/gcc/gcc-11.2.inc
> >> +++ b/meta/recipes-devtools/gcc/gcc-11.2.inc
> >> @@ -11,7 +11,7 @@ BINV = "11.2.0"
> >>   FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
> >>
> >>   DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
> >> -NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
> >> +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native zstd-native"
> >>
> >>   LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only"
> > Does master have that issue?
> >
> > Cheers,
> >
> > Richard
>
> I would would be really surprised if it didn't, since it appears gcc is
> explicilty decidding to use the library if it is there. The patch
> cherry-picks with
> name fuzzing so if we want to start it there, I can resubmit on master.

Yes, please do!  I'll cherry-pick to kirkstone after it hits master.

Steve


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [OE-core] [kirkstone][PATCH] gcc: depend on zstd-native
  2022-06-01 22:29     ` Steve Sakoman
@ 2022-06-01 23:04       ` Jeremy Puhlman
  0 siblings, 0 replies; 5+ messages in thread
From: Jeremy Puhlman @ 2022-06-01 23:04 UTC (permalink / raw)
  To: Steve Sakoman; +Cc: Richard Purdie, openembedded-core



On 6/1/2022 3:29 PM, Steve Sakoman wrote:
> On Wed, Jun 1, 2022 at 12:27 PM Jeremy Puhlman <jpuhlman@mvista.com> wrote:
>>
>>
>> On 6/1/2022 3:15 PM, Richard Purdie wrote:
>>> On Wed, 2022-06-01 at 16:55 -0400, Jeremy Puhlman wrote:
>>>> Sharing sstate cache binaries between two systems, one with libzstd installed
>>>> and the other without, leads to various gcc components being linked against
>>>> the system libzstd and failing to run on the system with out it installed.
>>>>
>>>> Make zstd-native from our system available.
>>>>
>>>> Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
>>>> ---
>>>>    meta/recipes-devtools/gcc/gcc-11.2.inc | 2 +-
>>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/meta/recipes-devtools/gcc/gcc-11.2.inc b/meta/recipes-devtools/gcc/gcc-11.2.inc
>>>> index 68e0d203fc..e2a28468f5 100644
>>>> --- a/meta/recipes-devtools/gcc/gcc-11.2.inc
>>>> +++ b/meta/recipes-devtools/gcc/gcc-11.2.inc
>>>> @@ -11,7 +11,7 @@ BINV = "11.2.0"
>>>>    FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
>>>>
>>>>    DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
>>>> -NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native"
>>>> +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native zstd-native"
>>>>
>>>>    LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only"
>>> Does master have that issue?
>>>
>>> Cheers,
>>>
>>> Richard
>> I would would be really surprised if it didn't, since it appears gcc is
>> explicilty decidding to use the library if it is there. The patch
>> cherry-picks with
>> name fuzzing so if we want to start it there, I can resubmit on master.
> Yes, please do!  I'll cherry-pick to kirkstone after it hits master.

Did a quick build on master and yeah, it links against libzstd.so.1.

tmp/work/x86_64-linux/gcc-cross-x86_64/12.1.0-r0/image/home/cluge/builds/centos7/x86-generic-64-5.10-4.0-cgx/build/tmp/work/x86_64-linux/gcc-cross-x86_64/12.1.0-r0/recipe-sysroot-native/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/12.1.0/cc1
   NEEDED               libmpc.so.3
   NEEDED               libmpfr.so.6
   NEEDED               libgmp.so.10
   NEEDED               libz.so.1
   NEEDED               libzstd.so.1
   NEEDED               libm.so.6
   NEEDED               libc.so.6
   NEEDED               ld-linux-x86-64.so.2

Patch for master submitted.

>
> Steve


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-01 23:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-01 20:55 [kirkstone][PATCH] gcc: depend on zstd-native Jeremy A. Puhlman
2022-06-01 22:15 ` [OE-core] " Richard Purdie
2022-06-01 22:27   ` Jeremy Puhlman
2022-06-01 22:29     ` Steve Sakoman
2022-06-01 23:04       ` 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.