Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
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, 26 Aug 2026 22:04:45 +0200	[thread overview]
Message-ID: <ao9GvpCwy_2UKUEn@windsurf> (raw)
In-Reply-To: <anw8fVxA-RNGqSl1@windsurf>

Hello Alexander,

Do you have some updates about the S390 gcc build issues? (See below).

Thanks a lot for your feedback,

Thomas

On Wed, Aug 12, 2026 at 11:29:02AM +0200, Thomas Petazzoni wrote:
> 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

-- 
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

      parent reply	other threads:[~2026-08-26 20:04 UTC|newest]

Thread overview: 5+ 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
2026-08-12  9:32     ` Alexander Egorenkov
2026-08-26 20:04     ` Thomas Petazzoni via buildroot [this message]

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=ao9GvpCwy_2UKUEn@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