Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] coreutils-9.3: build failure
@ 2023-05-03  2:01 Christian Stewart
  2023-05-03 18:10 ` Peter Seiderer
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Stewart @ 2023-05-03  2:01 UTC (permalink / raw)
  To: Buildroot Mailing List

Hi all,

The update to coreutils 9.3 seems to have broken the build:

configure: error: cannot run test program while cross compiling
See 'config.log' for more details
make[1]: *** [package/pkg-generic.mk:283:
/build/coreutils-9.3/.stamp_configured] Error 1


Minimal reproduction:

BR2_x86_64=y
BR2_KERNEL_HEADERS_6_3=y
BR2_BINUTILS_VERSION_2_39_X=y
BR2_GCC_VERSION_12_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_OPTIMIZE_2=y
B2_INIT_SYSTEMD=y
BR2_SYSTEM_BIN_SH_BASH=y
BR2_GENERATE_LOCALE="C en_US"
BR2_PACKAGE_COREUTILS=y

Thanks for any help debugging this.

best regards,
Christian Stewart
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] coreutils-9.3: build failure
  2023-05-03  2:01 [Buildroot] coreutils-9.3: build failure Christian Stewart
@ 2023-05-03 18:10 ` Peter Seiderer
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Seiderer @ 2023-05-03 18:10 UTC (permalink / raw)
  To: Christian Stewart; +Cc: Buildroot Mailing List

Hello Christian,

On Tue, 2 May 2023 19:01:33 -0700, Christian Stewart <christian@aperture.us> wrote:

> Hi all,
>
> The update to coreutils 9.3 seems to have broken the build:
>
> configure: error: cannot run test program while cross compiling
> See 'config.log' for more details
> make[1]: *** [package/pkg-generic.mk:283:
> /build/coreutils-9.3/.stamp_configured] Error 1
>
>
> Minimal reproduction:
>
> BR2_x86_64=y
> BR2_KERNEL_HEADERS_6_3=y
> BR2_BINUTILS_VERSION_2_39_X=y
> BR2_GCC_VERSION_12_X=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_OPTIMIZE_2=y
> B2_INIT_SYSTEMD=y
> BR2_SYSTEM_BIN_SH_BASH=y
> BR2_GENERATE_LOCALE="C en_US"
> BR2_PACKAGE_COREUTILS=y
>
> Thanks for any help debugging this.

Thanks for the bug report (and specially for the minimal defconfig for
reproduction), the build failure can be fixed by:

diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 2c12e8ef2f..cf42a8aff8 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -51,6 +51,7 @@ COREUTILS_CONF_ENV = ac_cv_c_restrict=no \
        gl_cv_func_tzset_clobber=no \
        gl_cv_func_working_mkstemp=yes \
        gl_cv_func_working_utimes=yes \
+       gl_cv_macro_MB_CUR_MAX_good=yes \
        gl_getline_needs_run_time_check=no \
        gl_cv_have_proc_uptime=yes \
        utils_cv_localtime_cache=no \

Proper patch will follow...

Regards,
Peter


>
> best regards,
> Christian Stewart
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2023-05-03 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-03  2:01 [Buildroot] coreutils-9.3: build failure Christian Stewart
2023-05-03 18:10 ` Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox