All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Olivain <ju.o@free.fr>
To: Joseph Zikusooka <josephzik@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] host-m4 build on Fedora 42 fails
Date: Sat, 19 Apr 2025 14:29:18 +0200	[thread overview]
Message-ID: <dfe20dbb0429ce970599a992005b9ffa@free.fr> (raw)
In-Reply-To: <CAPWx8vsoJUt8YMJG1aUqFRK1=yizNbgjVjGL1Q1+9ygjJGnZLA@mail.gmail.com>

Hi Joseph,

Thanks for reporting the issue.

On 18/04/2025 16:14, Joseph Zikusooka wrote:
> Recently upgraded to Fedora 42 and since then I am unable to compile
> buildroot.  Make fails at the host-m4 package.
> I looked up several sources and found this:
> https://lists.gnu.org/archive/html/m4-discuss/2025-02/msg00000.html
> 
> The work around on Fedora 42 was to build m4 with the environment
> flags as follows:
> CFLAGS='-std=gnu17' ./configure && make
> 
> I tried to patch m4.mk as follows, but the build is still failing.  Any 
> ideas?
> 
> --- a/m4.mk     2025-04-18 17:02:01.174923317 +0300
> +++ b/m4.mk     2025-04-18 17:03:29.285694673 +0300
> @@ -10,4 +10,7 @@
>  M4_LICENSE = GPL-3.0+
>  M4_LICENSE_FILES = COPYING
> 
> +M4_CONF_ENV = CFLAGS="-std=gnu17"
> +M4_MAKE_ENV = CFLAGS="-std=gnu17"
> +

To workaround this gcc15 issue with the current m4
version 1.4.19, you should probably pass the CFLAGS as:

HOST_M4_CONF_ENV = CFLAGS="$(HOST_CFLAGS) -std=gnu17"

Also, there is an upcoming m4 release which will fix
this gcc 15 issue. See:
https://git.savannah.gnu.org/cgit/m4.git/commit/?h=branch-1.4&id=a22c9802dd7e724eaefb21dc21d84ac2d3a49c89

More specifically:
"
** Update to comply with newer C standards, and inherit portability
    improvements from gnulib.
"

If this new m4 release is not published in the coming days/weeks
please submit an updated version of this patch to fix this issue.
Please also add a comment that this CFLAGS modification is needed
for m4-1.4.19 and host-gcc15 and should be removed in the next
bump to 1.4.20.

Best regards,

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

  reply	other threads:[~2025-04-19 12:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-18 14:14 [Buildroot] host-m4 build on Fedora 42 fails Joseph Zikusooka
2025-04-19 12:29 ` Julien Olivain [this message]
2025-04-19 16:56   ` Joseph Zikusooka
2025-04-21 14:00     ` Julien Olivain
2025-04-21 18:21       ` Joseph Zikusooka
2025-04-21 19:02         ` Joseph Zikusooka
2025-04-22 19:01           ` Julien Olivain

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=dfe20dbb0429ce970599a992005b9ffa@free.fr \
    --to=ju.o@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=josephzik@gmail.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 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.