Bug 279162

Summary: www/qt5-webengine fails to build using poudriere on amd64 14.1-STABLE
Product: Ports & Packages Reporter: Robert Cina <transitive>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: New ---    
Severity: Affects Only Me CC: agh
Priority: --- Flags: bugzilla: maintainer-feedback? (kde)
Version: Latest   
Hardware: amd64   
OS: Any   
Bug Depends on:    
Bug Blocks: 279187    

Description Robert Cina 2024-05-19 14:32:14 UTC
My system:

FreeBSD alto.my.domain 14.1-STABLE FreeBSD 14.1-STABLE stable/14-45764d1d4 GENERIC amd64


www/qt5-webengine fails to build using poudriere on my system after the latest update.

The following is from the build log:

./../../../../kde-qtwebengine-5.15.16p9/src/3rdparty/chromium/third_party/blink/renderer/core/html/parser/css_preload_scanner.cc:239:7: note: in instantiation of function template specialization 'WTF::EqualIgnoringASCIICase<7UL>' requested here
  239 |   if (EqualIgnoringASCIICase(rule_, "import")) {
      |       ^
98 warnings generated.
[ 91% 22433/24384] ACTION //chrome/app:generated_resources_grit(/wrkdirs/usr/ports/www/qt5-webengine/work/.build/src/toolchain:target)
ninja: build stopped: subcommand failed.
*** [run_ninja] Error code 1

make[3]: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build/src/core
1 error

make[3]: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build/src/core
*** [sub-gn_run-pro-make_first] Error code 2

make[2]: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build/src/core
1 error

make[2]: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build/src/core
*** [sub-core-make_first] Error code 2

make[1]: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build/src
1 error

make[1]: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build/src
*** [sub-src-make_first] Error code 2

make: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build
1 error

make: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/www/qt5-webengine
=>> Cleaning up wrkdir
===>  Cleaning for qt5-webengine-5.15.16.p9_2
build of www/qt5-webengine | qt5-webengine-5.15.16.p9_2 ended at Sun May 19 09:27:07 EDT 2024
build time: 00:11:20
!!! build failure encountered !!!



Any help to fix the issue is welcome. Thanks.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-05-22 17:13:52 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1e1a1e9ebc2aae54c1c274ac3bbe329de54704b3

commit 1e1a1e9ebc2aae54c1c274ac3bbe329de54704b3
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2024-05-22 16:45:35 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2024-05-22 17:13:01 +0000

    devel/ninja: Roll back to 1.11.1

    Despite passing an exp-run and successful local builds, there still
    exists a race condition in www/qt[56]-webengine when building with
    ninja 1.12.x that is proving difficult to solve. After a successful
    build, it seems subsequent builds fail when using ccache with a
    generated header missing before it is needed at compile time.

    Even after adding //chrome/app:generated_resources_grit as a dep in
    src/3rdparty/chromium/chrome/browser/devtools/BUILD.gn, the build is
    still failing with:

    ../../../../../qtwebengine-everywhere-src-6.7.0/src/3rdparty/chromium/chrome/browser/devtools/devtools_file_helper.cc:31:10:
    fatal error: 'chrome/grit/generated_resources.h' file not found

    This comes very late in the build, so trial and error attempts to fix
    this are tedious, costing an hour+ of build time with each attempt.
    Reverting to ninja 1.11.1 gets things building again while this can
    sorted out in the background under less stressful conditions.

    This partially reverts bb0835fd3aa268260cc9eae4ba0cad55814d6265.

    PR:             279162, 279164
    Reported by:    Robert Cina <transitive@gmail.com>

 devel/ninja/Makefile | 4 ++--
 devel/ninja/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)