[core-packages-team 5/5] DRAFT gnu: gcc: Update gcc, gcc-toolchain to 14.

  • Open
  • quality assurance status badge
Details
One participant
  • Janneke Nieuwenhuizen
Owner
unassigned
Submitted by
Janneke Nieuwenhuizen
Severity
normal
J
J
Janneke Nieuwenhuizen wrote on 3 Dec 22:07 +0100
(address . guix-patches@gnu.org)
87ed2ofpbo.fsf@gnu.org
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

Toggle snippet (3 lines)
"CFLAGS=-g -O2 -Wno-implicit-function-declaration"

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

Toggle snippet (3 lines)
[-DCMAKE_}C_FLAGS=-Wno-error=implicit-function-declaration"

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
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
J
J
Janneke Nieuwenhuizen wrote on 5 Dec 20:45 +0100
(address . guix-patches@gnu.org)
87ttbh52xh.fsf@gnu.org
Janneke Nieuwenhuizen writes:

Hi,

Toggle quote (4 lines)
> 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.

[..]

I've all but reconfigured--guix system reconfigure as non-root--my
system, without childhurd, using what is now core-packages-team-old.
That really wasn't so bad, many packages just build with gcc-14.

I have tried to keep the scope of changes as small as possible but
attempted to "fix" packages build failures also by upgrading the
package. For commencement and base packages I kept the scope narrow:
x86_64-linux, because it has proven to be very hard to predict what's
needed on other architectures. For other packages, such as "zip", I
just added the mostly harmless -Wno-implicit-function-declaration flag
unguarded.

The *-old branch has a couple of hacks that neutralize impact to
commencement packages, marked "REMOVEME", to avoid world rebuilds as
sometimes some base package builds in commencement, but fails to build
lateron.

The new, cleaned-up, and rebased core-packages-team branch is as such
untested, but "should work". WDYT? Can we point the build-farm to this
branch to help out?

Greetings,
Janneke

--
Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com| Avatar® https://AvatarAcademy.com
J
J
Janneke Nieuwenhuizen wrote 7 days ago
(address . guix-patches@gnu.org)
87ldwqavrf.fsf@gnu.org
Janneke Nieuwenhuizen writes:

Hi,

Toggle quote (8 lines)
>> 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.
>
> [..]
>
> I've all but reconfigured--guix system reconfigure

That was apparently not true, somewhere in the process I somehow built from
another branch. Anyway, still making good progress.... :-/

On IRC, Efraim reports that i686-linux and aarch64-linux fail to build
hello on current core-packages-team. That makes me reconsider whether
this strategy

Toggle quote (3 lines)
> I kept the scope narrow: x86_64-linux, because it has proven to be
> very hard to predict what's needed on other architectures.

which makes a lot of sense for patches that go to "master" is a good
strategy for core-packages-team. Possibly it's better to use an
unlimited scope? Oh well.

Greetings,
Janneke -- building /gnu/store/m5m6qzlxypk1y58yp69501rhq5qmz3r4-llvm-18.1.8.drv...

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

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 74676@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 74676
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch