From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Alexander Egorenkov <egorenar@linux.ibm.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] S390 Buildroot/gcc build issue
Date: Wed, 12 Aug 2026 11:28:55 +0200 [thread overview]
Message-ID: <anw8fVxA-RNGqSl1@windsurf> (raw)
In-Reply-To: <87h5kzya8h.fsf@li-0ccc18cc-2c67-11b2-a85c-a193851e4c5d.ibm.com>
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
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-08-12 9:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-11 11:42 [Buildroot] S390 Buildroot/gcc build issue Thomas Petazzoni via buildroot
2026-08-12 9:11 ` Alexander Egorenkov
2026-08-12 9:28 ` Thomas Petazzoni via buildroot [this message]
2026-08-12 9:32 ` Alexander Egorenkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=anw8fVxA-RNGqSl1@windsurf \
--to=buildroot@buildroot.org \
--cc=egorenar@linux.ibm.com \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).