Bug 258451 - [GTK] Since 2.40.x releases, build fails on FreeBSD
Summary: [GTK] Since 2.40.x releases, build fails on FreeBSD
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Other
: P3 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2023-06-23 05:43 PDT by olivier
Modified: 2024-06-11 09:02 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description olivier 2023-06-23 05:43:39 PDT
I try to update port of WebKitGtk on FreeBSD, and since the 2.40.0 release, each build fails (no problem with the 2.38.x releases). It is always in same stage. It is not easy to find root cause, because sources are huge.

>FAILED: Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-54928a2b-22.cpp.o
>
>In file included from <built-in>:1:
>In file included from /usr/ports/www/webkit2-gtk4/work/webkitgtk-2.40.2/Source/WebKit/WebKit2Prefix.h:75:
>In file included from /usr/include/c++/v1/algorithm:667:
>In file included from /usr/include/c++/v1/functional:499:
>In file included from /usr/include/c++/v1/__functional/bind.h:17:
>/usr/include/c++/v1/tuple:1596:5: error: attempt to use a deleted function
>    _VSTD::__invoke_constexpr(
>    ^
>/usr/include/c++/v1/__config:826:15: note: expanded from macro '_VSTD'
>#define _VSTD std
>              ^

Full log is available here [1] (and with clang 15 [2]).

Tested with clang 14 (this is default compiler) and clang 15. Previous maintainer activated c++20 features (but I also tested with -std=gnu++20, because with gcc this stage finished well, and -std=c++11). When unified sources are disabled (-DENABLE_UNIFIED_BUILDS=OFF), compilation fails much earlier.

Below options used:

--  ENABLE_BUBBLEWRAP_SANDBOX ..................... OFF
--  ENABLE_DOCUMENTATION                            ON
--  ENABLE_DRAG_SUPPORT ........................... ON
--  ENABLE_GAMEPAD                                  OFF
--  ENABLE_GLES2 .................................. OFF
--  ENABLE_INTROSPECTION                            ON
--  ENABLE_JOURNALD_LOG ........................... OFF
--  ENABLE_MEDIA_SOURCE                             ON
--  ENABLE_MINIBROWSER ............................ ON
--  ENABLE_PDFJS                                    ON
--  ENABLE_QUARTZ_TARGET .......................... OFF
--  ENABLE_SPELLCHECK                               ON
--  ENABLE_TOUCH_EVENTS ........................... ON
--  ENABLE_VIDEO                                    true
--  ENABLE_WAYLAND_TARGET ......................... true
--  ENABLE_WEBDRIVER                                OFF
--  ENABLE_WEB_AUDIO .............................. true
--  ENABLE_WEB_CRYPTO                               ON
--  ENABLE_X11_TARGET ............................. ON
--  USE_AVIF                                        ON
--  USE_GBM ....................................... ON
--  USE_GTK4                                        ON
--  USE_JPEGXL .................................... OFF
--  USE_LCMS                                        ON
--  USE_LIBHYPHEN ................................. ON
--  USE_LIBSECRET                                   ON
--  USE_OPENGL_OR_ES .............................. ON
--  USE_OPENJPEG                                    ON
--  USE_SOUP2 ..................................... OFF
--  USE_WOFF2                                       ON

[1] https://codeberg.org/olivierd/freebsd-ports-wip/raw/branch/master/logs/webkit2-gtk4-2.40.2.log
[2] https://codeberg.org/olivierd/freebsd-ports-wip/src/branch/master/logs/clang15-webkit2-gtk4-2.40.2.log
Comment 1 olivier 2023-07-01 21:23:38 PDT
Build still fails (in same stage), with the latest release 2.40.3 and this time tested with clang 16 too.
Comment 2 Charlie Li 2024-02-07 14:28:10 PST
With ENABLED_UNIFIED_BUILDS=OFF, culprit seems to be Source/WebKit/WebProcess/WebCoreSupport/WebFileSystemStorageConnection.cpp. Can't find anything obvious that changed in that file between 2.38 and 2.40. 2.42 continues to have this error.