Bug 265948 - [exp-run] Update GCC_DEFAULT from 11 to 12
Summary: [exp-run] Update GCC_DEFAULT from 11 to 12
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Lorenzo Salvadore
URL:
Keywords:
Depends on: 263543 266190 266191 266192 266193 266194 266195 266196
Blocks:
  Show dependency treegraph
 
Reported: 2022-08-19 19:34 UTC by Lorenzo Salvadore
Modified: 2022-12-03 16:01 UTC (History)
2 users (show)

See Also:
salvadore: exp-run?


Attachments
Patch to update GCC default version from 11 to 12 (711 bytes, patch)
2022-08-19 19:34 UTC, Lorenzo Salvadore
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Salvadore freebsd_committer freebsd_triage 2022-08-19 19:34:31 UTC
Created attachment 236018 [details]
Patch to update GCC default version from 11 to 12

GCC 12.2 has just been released. Now that GCC 12 is at its second minor version, it is a good time to see if we can update our GCC default version.
Comment 2 Antoine Brodin freebsd_committer freebsd_triage 2022-09-03 08:06:45 UTC
New failure logs on 12.3 amd64:

http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/cvc-1.1.3.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/raknet-3.9.2_10,1.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/openmsx-18.0.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/opencoarrays-2.9.0.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/fenics-basix-0.5.0.p0.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/ised-2.7.1_7.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/octopus-11.4.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/edk2-bhyve-g202202_1.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/edk2-fvp-g202202_1.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/edk2-qemu-i386-g202202_1.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/edk2-qemu-x64-g202202_1.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/edk2-rpi3-g202202_1.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/edk2-rpi4-g202202_1.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/edk2-xen-x64-g202202_1.log
http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-08-30_18h10m18s/logs/errors/edk2-macchiatobin-g202202_1.log
Comment 3 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-09-03 09:58:48 UTC
Thank you very much Antoine.

I have prepared all the bug reports needed to address the failures.
Comment 4 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-10-08 10:19:32 UTC
Add dependency on bug #257060: the last few missing bugs could probably be fixed by enforcing the use of GCC 11, but then it important to solve the conflict between GCC 11 and GCC 12 ports reported in bug #257060.
Comment 5 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-10-30 11:31:31 UTC
Enabling D lang compiler is needed to bootstap lang/ldc. GDC has just been enabled for GCC_DEFAULT, which is still GCC 11. It should be unsured that GDC is still available when GCC_DEFAULT is switched to GCC 12, so add bug #266825 to the dependencies.
Comment 6 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-10-30 12:40:22 UTC
Remove dependency on bug #266825: the patch for lang/ldc already enforces using GCC 11 and enabling D on GCC 12 is hard due to bootstraping issue, so we can deal with this problem later and focus on the other issues for now.
Comment 7 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-11-09 13:37:34 UTC
All known bugs have been fixed at least as much as needed for the update. Time for another exp-run.

Antoine, can you deal with it please? Thanks in advance.
Comment 9 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-11-16 09:46:25 UTC
Thanks Antoine, I have re-opened the relevant bug reports.
Comment 10 commit-hook freebsd_committer freebsd_triage 2022-12-03 14:29:37 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=68552883830e2267970941f532e512c444366835

commit 68552883830e2267970941f532e512c444366835
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2022-08-19 19:23:23 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2022-12-03 14:28:13 +0000

    Mk/bsd.default-versions.mk: Switch default GCC from 11 to 12

    PR:             265948
    Tested by:      antoine (exp-runs)

 Mk/bsd.default-versions.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 11 Lorenzo Salvadore freebsd_committer freebsd_triage 2022-12-03 14:31:12 UTC
GCC default version has finally been updated.

Thanks to everyone who helped in the process.
Comment 12 Gerald Pfeifer freebsd_committer freebsd_triage 2022-12-03 16:01:10 UTC
Very well done, Lorenzo! And congratulations!