Bug 286084 - www/qt6-webengine: Build failure on 14.2-RELEASE
Summary: www/qt6-webengine: Build failure on 14.2-RELEASE
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-13 23:30 UTC by Joel Bodenmann
Modified: 2025-04-14 18:38 UTC (History)
2 users (show)

See Also:
jhale: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Bodenmann freebsd_committer freebsd_triage 2025-04-13 23:30:21 UTC
I'm seeing a poudriere build failure on www/qt6-webengine on:

> ./gen/third_party/blink/renderer/core/css/css_property_names.cc:362:7: error: fallthrough annotation does not directly precede switch label

and a bunch of similar errors in the same file.
Full build log here [1].


[1] https://freebsd.binaries.simulton.com/data/142Ramd64-main/2025-04-13_21h58m54s/logs/errors/qt6-webengine-6.8.3_1.log
Comment 1 Jason E. Hale freebsd_committer freebsd_triage 2025-04-14 02:41:41 UTC
It seems like the recent update of gperf to 3.2 (bug #286026) broke this. CC'ing maintainer of gperf since this is generated code and not much I can do about it on the webengine side of things. I suggest downgrading to gperf 3.1 while this gets sorted.
Comment 2 Jason E. Hale freebsd_committer freebsd_triage 2025-04-14 03:02:52 UTC
This seems to be the regressing commit in gperf:
https://git.savannah.gnu.org/gitweb/?p=gperf.git;a=commit;h=0d37a8763d9a5169ee2cb71a0281f859ca159b87
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2025-04-14 07:53:52 UTC
Thanks, I will see if I get a fix soon, or revert.
Comment 4 commit-hook freebsd_committer freebsd_triage 2025-04-14 08:05:31 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9fdad9848fef30b9ffcf6f4a101f5b08c8f10237

commit 9fdad9848fef30b9ffcf6f4a101f5b08c8f10237
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2025-04-14 08:04:57 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2025-04-14 08:04:57 +0000

    devel/gperf: update to 3.2.1

    disable keyword '[[fallthrough]]'
    PR: 286084

 devel/gperf/Makefile                    |  4 ++--
 devel/gperf/distinfo                    |  6 +++---
 devel/gperf/files/patch-output.cc (new) | 14 ++++++++++++++
 3 files changed, 19 insertions(+), 5 deletions(-)
Comment 5 Jason E. Hale freebsd_committer freebsd_triage 2025-04-14 08:32:07 UTC
Joel, could you please report back if the last commit to devel/gperf fixes the issue for you?
Comment 6 Dirk Meyer freebsd_committer freebsd_triage 2025-04-14 09:56:09 UTC
Bruno Haible wrote:

It's not gperf which causes this syntax error, it's the post-processing
done by third_party/blink/renderer/build/scripts/gperf.py. It apparently
replaces
      /*FALLTHROUGH*/
with
      [[fallthrough]];
This replacement made sense with gperf versions < 3.2. But with gperf-3.2 it is
not necessary any more.

See
https://bugs.gentoo.org/attachment.cgi?id=924201&action=diff and
https://bugs.gentoo.org/953436

Thanks to Thomas Klausner for the pointers.
Comment 7 Joel Bodenmann freebsd_committer freebsd_triage 2025-04-14 12:42:48 UTC
(In reply to Jason E. Hale from comment #5)

It's looking good.
www/qt6-webengine also builds successfully again.

Thank you all!
Comment 8 commit-hook freebsd_committer freebsd_triage 2025-04-14 18:38:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9bb351b004d643c5f853e757777f08dc31a2137a

commit 9bb351b004d643c5f853e757777f08dc31a2137a
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-04-14 18:24:11 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-04-14 18:37:39 +0000

    www/qt6-webengine: Fix build with gperf >= 3.2

    Blink was making no longer needed substitutions to the generated code
    adding extra [[fallthrough]] attributes which caused build errors.

    Thanks to dinoex for working through this with me.

    PR:             286084
    Obtained from:  Gentoo

 ...rty_blink_renderer_build_scripts_gperf.py (new) | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)