All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] site/common-musl: Set ac_cv_sys_file_offset_bits default to 64
@ 2023-01-07  0:08 Khem Raj
  2023-01-07  7:24 ` Nicolas Dechesne
  2023-01-07 20:13 ` [OE-core] " Richard Purdie
  0 siblings, 2 replies; 4+ messages in thread
From: Khem Raj @ 2023-01-07  0:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj, Nicolas Dechesne

off_t is always 64bit on musl regardless of 32bit or 64bit
architectures. autoconf has AC_SYS_LARGEFILE to detect correct off_t
size but it only work with glibc since it defines feature macros
_FILE_OFFSET_BITS=64 and _LARGEFILE_SOURCE but these macros are
not used on musl headers.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Nicolas Dechesne <nicolas.dechesne@linaro.org>
---
 meta/site/common-musl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/site/common-musl b/meta/site/common-musl
index 86aed4a38c..23e50ef749 100644
--- a/meta/site/common-musl
+++ b/meta/site/common-musl
@@ -15,6 +15,8 @@ ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=yes}
 ac_cv_func_getaddrinfo=${ac_cv_func_getaddrinfo=yes}
 ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped=yes}
 ac_cv_func_strtod=${ac_cv_func_strtod=yes}
+# off_t is always 64bit on musl systems
+ac_cv_sys_file_offset_bits=${ac_cv_sys_file_offset_bits=64}
 
 # glib
 glib_cv_strlcpy=${glib_cv_strlcpy=no}
-- 
2.39.0



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

* Re: [PATCH] site/common-musl: Set ac_cv_sys_file_offset_bits default to 64
  2023-01-07  0:08 [PATCH] site/common-musl: Set ac_cv_sys_file_offset_bits default to 64 Khem Raj
@ 2023-01-07  7:24 ` Nicolas Dechesne
  2023-01-07 20:13 ` [OE-core] " Richard Purdie
  1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Dechesne @ 2023-01-07  7:24 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]

On Sat, Jan 7, 2023 at 1:08 AM Khem Raj <raj.khem@gmail.com> wrote:

> off_t is always 64bit on musl regardless of 32bit or 64bit
> architectures. autoconf has AC_SYS_LARGEFILE to detect correct off_t
> size but it only work with glibc since it defines feature macros
> _FILE_OFFSET_BITS=64 and _LARGEFILE_SOURCE but these macros are
> not used on musl headers.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> Cc: Nicolas Dechesne <nicolas.dechesne@linaro.org>
>

Thanks. It fixes the build issue in e2fsprog I reported earlier.


> ---
>  meta/site/common-musl | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/site/common-musl b/meta/site/common-musl
> index 86aed4a38c..23e50ef749 100644
> --- a/meta/site/common-musl
> +++ b/meta/site/common-musl
> @@ -15,6 +15,8 @@
> ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=yes}
>  ac_cv_func_getaddrinfo=${ac_cv_func_getaddrinfo=yes}
>  ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped=yes}
>  ac_cv_func_strtod=${ac_cv_func_strtod=yes}
> +# off_t is always 64bit on musl systems
> +ac_cv_sys_file_offset_bits=${ac_cv_sys_file_offset_bits=64}
>
>  # glib
>  glib_cv_strlcpy=${glib_cv_strlcpy=no}
> --
> 2.39.0
>
>

[-- Attachment #2: Type: text/html, Size: 1897 bytes --]

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

* Re: [OE-core] [PATCH] site/common-musl: Set ac_cv_sys_file_offset_bits default to 64
  2023-01-07  0:08 [PATCH] site/common-musl: Set ac_cv_sys_file_offset_bits default to 64 Khem Raj
  2023-01-07  7:24 ` Nicolas Dechesne
@ 2023-01-07 20:13 ` Richard Purdie
  2023-01-08  2:08   ` Khem Raj
  1 sibling, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2023-01-07 20:13 UTC (permalink / raw)
  To: Khem Raj, openembedded-core; +Cc: Nicolas Dechesne

On Fri, 2023-01-06 at 16:08 -0800, Khem Raj wrote:
> off_t is always 64bit on musl regardless of 32bit or 64bit
> architectures. autoconf has AC_SYS_LARGEFILE to detect correct off_t
> size but it only work with glibc since it defines feature macros
> _FILE_OFFSET_BITS=64 and _LARGEFILE_SOURCE but these macros are
> not used on musl headers.
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> Cc: Nicolas Dechesne <nicolas.dechesne@linaro.org>
> ---
>  meta/site/common-musl | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta/site/common-musl b/meta/site/common-musl
> index 86aed4a38c..23e50ef749 100644
> --- a/meta/site/common-musl
> +++ b/meta/site/common-musl
> @@ -15,6 +15,8 @@ ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=yes}
>  ac_cv_func_getaddrinfo=${ac_cv_func_getaddrinfo=yes}
>  ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped=yes}
>  ac_cv_func_strtod=${ac_cv_func_strtod=yes}
> +# off_t is always 64bit on musl systems
> +ac_cv_sys_file_offset_bits=${ac_cv_sys_file_offset_bits=64}
>  

Not sure if this failure might be related to this change:

https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/6496/steps/12/logs/stdio

Cheers,

Richard


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

* Re: [OE-core] [PATCH] site/common-musl: Set ac_cv_sys_file_offset_bits default to 64
  2023-01-07 20:13 ` [OE-core] " Richard Purdie
@ 2023-01-08  2:08   ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2023-01-08  2:08 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core, Nicolas Dechesne

On Sat, Jan 7, 2023 at 12:13 PM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Fri, 2023-01-06 at 16:08 -0800, Khem Raj wrote:
> > off_t is always 64bit on musl regardless of 32bit or 64bit
> > architectures. autoconf has AC_SYS_LARGEFILE to detect correct off_t
> > size but it only work with glibc since it defines feature macros
> > _FILE_OFFSET_BITS=64 and _LARGEFILE_SOURCE but these macros are
> > not used on musl headers.
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > Cc: Nicolas Dechesne <nicolas.dechesne@linaro.org>
> > ---
> >  meta/site/common-musl | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/meta/site/common-musl b/meta/site/common-musl
> > index 86aed4a38c..23e50ef749 100644
> > --- a/meta/site/common-musl
> > +++ b/meta/site/common-musl
> > @@ -15,6 +15,8 @@ ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=yes}
> >  ac_cv_func_getaddrinfo=${ac_cv_func_getaddrinfo=yes}
> >  ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped=yes}
> >  ac_cv_func_strtod=${ac_cv_func_strtod=yes}
> > +# off_t is always 64bit on musl systems
> > +ac_cv_sys_file_offset_bits=${ac_cv_sys_file_offset_bits=64}
> >
>
> Not sure if this failure might be related to this change:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/6496/steps/12/logs/stdio
>

Yes its a side effect of this. We should have added
--disable-lfs-alias always. sending a patch for this package

> Cheers,
>
> Richard


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

end of thread, other threads:[~2023-01-08  2:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-07  0:08 [PATCH] site/common-musl: Set ac_cv_sys_file_offset_bits default to 64 Khem Raj
2023-01-07  7:24 ` Nicolas Dechesne
2023-01-07 20:13 ` [OE-core] " Richard Purdie
2023-01-08  2:08   ` Khem Raj

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.