Re: [Buildroot] S390 Buildroot/gcc build issue

Thomas Petazzoni via buildroot <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <anw8fVxA-RNGqSl1@windsurf>
Hello,

On Wed, Aug 12, 2026 at 11:11:10AM +0200, Alexander Egorenkov wrote:

> the types _Decimal* require for the host compiler to be built with
> --enable-decimal-float.

What do you call the "host compiler" in this context?

Are you talking about the native gcc compiler available on the host,
or the cross-compiler built by Buildroot?

> 
> package/gcc/gcc.mk:
> -------------------
> 
> HOST_GCC_COMMON_CONF_OPTS = \
> 	--target=$(GNU_TARGET_NAME) \
> 	--with-sysroot=$(STAGING_DIR) \
> 	--enable-__cxa_atexit \
> 	--with-gnu-ld \
> 	--disable-libssp \
> 	--disable-multilib \
> 	--disable-decimal-float                 <----- !!!

These are the common options...

> Can we turn --disable-decimal-float into --enable-decimal-float on
> s390x arch ? It fixed the problem for me.
> 
> package/gcc/gcc.mk:
> -------------------
> 
> ifeq ($(BR2_s390x),y)
> HOST_GCC_COMMON_CONF_OPTS += \
> 	--with-long-double-128 \
> 	--enable-decimal-float                 <----- !!!

and for S390, it gets overridden.

See: it's the same variable that gets appended, so at the end we have:

HOST_GCC_COMMON_CONF_OPTS = \
	[...]
	--disable-decimal-float \
	[...]
	--enable-decimal-float

So on S390, the cross-compiler is built with --enable-decimal-float.

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.