unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Janneke Nieuwenhuizen <janneke@gnu.org>
To: 74676@debbugs.gnu.org
Cc: "Andreas Enge" <andreas@enge.fr>,
	"Ludovic Courtès" <ludo@gnu.org>,
	"Efraim Flashner" <efraim@flashner.co.il>,
	"Ekaitz Zarraga" <ekaitz@elenq.tech>,
	"Janneke Nieuwenhuizen" <janneke@gnu.org>
Subject: [bug#74676] [core-packages-team 5/5] DRAFT gnu: gcc: Update gcc, gcc-toolchain to 14.
Date: Tue, 03 Dec 2024 22:07:23 +0100	[thread overview]
Message-ID: <87ed2ofpbo.fsf@gnu.org> (raw)

Hello,

So, I've just built "hello" for x86_64-linux on "core-packages-team"
(yay!) mostly re-using gcc-14 patches/workarounds that I created for the
Hurd.

We probably want to keep this [switch to gcc-14] patch "bubbling" up on
top of the gcc-14 patches until the gcc-14 transition is done, keeping
every commit buildable.

Just opening this bug by sendding this email to have a placeholder for
discussing this, for the patches see "core-packages-team" (hope that's
OK).

Anyway, I have been using variants of

--8<---------------cut here---------------start------------->8---
"CFLAGS=-g -O2 -Wno-implicit-function-declaration"
--8<---------------cut here---------------end--------------->8---

while Ludo in hot-patch mode this morning used the already somewhat nicer

--8<---------------cut here---------------start------------->8---
[-DCMAKE_}C_FLAGS=-Wno-error=implicit-function-declaration"
--8<---------------cut here---------------end--------------->8---

To get build gcc-final to build on the 64bit Hurd I finally created a
gcc.sh wrapper script, after trying all kinds of variations of CFLAGS,
CFLAGS_FOR_BUILD in #:configure-flags, #:make-flags, see also
<https://gcc.gnu.org/gcc-14/porting_to.html> where they even suggest
using "-fpermissive".

Before pointing the build farm to core-packages-team and starting the
"real work" we may want to think about how to go forward.  On the one
hand, having CFLAGS patches littered all over the place is not great, on
the other hand, if we were to add compatibility flags to a wrapper for
gcc, or into build systems, we may never get rid of such a "feature".
Thoughts?

Greetings,
Janneke

-- 
Janneke Nieuwenhuizen <janneke@gnu.org>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com




             reply	other threads:[~2024-12-03 21:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-03 21:07 Janneke Nieuwenhuizen [this message]
2024-12-05 19:45 ` [bug#74676] [core-packages-team 5/5] DRAFT gnu: gcc: Update gcc, gcc-toolchain to 14 Janneke Nieuwenhuizen
2024-12-08 18:13   ` Janneke Nieuwenhuizen

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ed2ofpbo.fsf@gnu.org \
    --to=janneke@gnu.org \
    --cc=74676@debbugs.gnu.org \
    --cc=andreas@enge.fr \
    --cc=efraim@flashner.co.il \
    --cc=ekaitz@elenq.tech \
    --cc=ludo@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).