Bug 232394

Summary: Fail build with -DENABLE_WEB_AUDIO=OFF -DENABLE_VIDEO=OFF in webkit2gtk 2.34.1 (gtk3)
Product: WebKit Reporter: sL1pKn07 <sl1pkn07>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Blocker CC: alex_y_xu, aperez, mcatanzaro
Priority: P2    
Version: Other   
Hardware: PC   
OS: Linux   

Description sL1pKn07 2021-10-27 11:44:10 PDT
Fail build Webkit2gtk 2.34.1 if set 

    -DENABLE_WEB_AUDIO=OFF \
    -DENABLE_VIDEO=OFF \


~~~
[ 38%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-aba958d6-1.cpp.o
In file included from /usr/include/c++/11.1.0/bits/move.h:57,
                 from /usr/include/c++/11.1.0/bits/stl_pair.h:59,
                 from /usr/include/c++/11.1.0/bits/stl_algobase.h:64,
                 from /usr/include/c++/11.1.0/memory:63,
                 from /tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/StdLibExtras.h:30,
                 from /tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/FastMalloc.h:26,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/config.h:56,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AXImage.cpp:29,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-aba958d6-1.cpp:1:
/usr/include/c++/11.1.0/type_traits: In instantiation of 'struct std::is_base_of<WebCore::Node, WebCore::HTMLMediaElement>':
/usr/include/c++/11.1.0/type_traits:3184:69:   required from 'constexpr const bool std::is_base_of_v<WebCore::Node, WebCore::HTMLMediaElement>'
/tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/TypeCasts.h:64:24:   required from 'bool WTF::is(ArgType*) [with ExpectedType = WebCore::HTMLMediaElement; ArgType = WebCore::Node]'
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AXObjectCache.cpp:532:29:   required from here
/usr/include/c++/11.1.0/type_traits:1372:38: error: invalid use of incomplete type 'class WebCore::HTMLMediaElement'
 1372 |     : public integral_constant<bool, __is_base_of(_Base, _Derived)>
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/dom/Element.h:28,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/dom/StyledElement.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/html/HTMLElement.h:26,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/html/LabelableElement.h:33,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/html/HTMLFormControlElement.h:28,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/html/HTMLFormControlElementWithState.h:26,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/html/HTMLTextFormControlElement.h:27,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AccessibilityObjectInterface.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AccessibilityObject.h:32,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AccessibilityNodeObject.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AccessibilityRenderObject.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AXImage.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AXImage.cpp:30,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-aba958d6-1.cpp:1:
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/dom/Document.h:163:7: note: forward declaration of 'class WebCore::HTMLMediaElement'
  163 | class HTMLMediaElement;
      |       ^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11.1.0/bits/move.h:57,
                 from /usr/include/c++/11.1.0/bits/stl_pair.h:59,
                 from /usr/include/c++/11.1.0/bits/stl_algobase.h:64,
                 from /usr/include/c++/11.1.0/memory:63,
                 from /tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/StdLibExtras.h:30,
                 from /tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/FastMalloc.h:26,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/config.h:56,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AXImage.cpp:29,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-aba958d6-1.cpp:1:
/usr/include/c++/11.1.0/type_traits: In instantiation of 'constexpr const bool std::is_base_of_v<WebCore::Node, WebCore::HTMLMediaElement>':
/tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/TypeCasts.h:64:24:   required from 'bool WTF::is(ArgType*) [with ExpectedType = WebCore::HTMLMediaElement; ArgType = WebCore::Node]'
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AXObjectCache.cpp:532:29:   required from here
/usr/include/c++/11.1.0/type_traits:3184:69: error: 'value' is not a member of 'std::is_base_of<WebCore::Node, WebCore::HTMLMediaElement>'
 3184 |   inline constexpr bool is_base_of_v = is_base_of<_Base, _Derived>::value;
      |                                                                     ^~~~~
In file included from /tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/Ref.h:33,
                 from /tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/RefPtr.h:28,
                 from /tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/HashFunctions.h:26,
                 from /tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/HashTraits.h:26,
                 from /tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/ObjectIdentifier.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/page/FrameIdentifier.h:28,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/loader/FrameLoaderClient.h:32,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AccessibilityObjectInterface.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AccessibilityObject.h:32,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AccessibilityNodeObject.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AccessibilityRenderObject.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AXImage.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AXImage.cpp:30,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-aba958d6-1.cpp:1:
/tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/TypeCasts.h: In instantiation of 'bool WTF::is(ArgType*) [with ExpectedType = WebCore::HTMLMediaElement; ArgType = WebCore::Node]':
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/accessibility/AXObjectCache.cpp:532:29:   required from here
/tmp/makepkg/webkit2gtk/src/build/WTF/Headers/wtf/TypeCasts.h:64:24: error: non-constant condition for static assertion
   64 |     static_assert(std::is_base_of_v<ArgType, ExpectedType>, "Unnecessary type check");
      |                   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/build.make:6403: Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-aba958d6-1.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1149: Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
~~~

cmake status:

~~~
-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CMake build type is: Release
-- Found Perl: /usr/bin/perl (found suitable version "5.34.0", minimum required is "5.10.0") 
-- Found PerlModules: TRUE  found components: JSON::PP 
-- Found Python: /usr/bin/python3.9 (found version "3.9.7") found components: Interpreter 
-- Found Ruby: /usr/bin/ruby (found suitable version "3.0.2", minimum required is "1.9") 
-- Enabling ccache: Couldn't find ccache program. Not enabling it.
-- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing
-- Performing Test C_COMPILER_SUPPORTS_-fno-strict-aliasing - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-strict-aliasing - Success
-- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions
-- Performing Test C_COMPILER_SUPPORTS_-fno-exceptions - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-exceptions - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-rtti - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-tautological-compare
-- Performing Test C_COMPILER_SUPPORTS_-Wno-tautological-compare - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-tautological-compare
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-tautological-compare - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wcast-align
-- Performing Test C_COMPILER_SUPPORTS_-Wcast-align - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wformat-security
-- Performing Test C_COMPILER_SUPPORTS_-Wformat-security - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute
-- Performing Test C_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith
-- Performing Test C_COMPILER_SUPPORTS_-Wpointer-arith - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wundef
-- Performing Test C_COMPILER_SUPPORTS_-Wundef - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings
-- Performing Test C_COMPILER_SUPPORTS_-Wwrite-strings - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align
-- Performing Test CXX_COMPILER_SUPPORTS_-Wcast-align - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security
-- Performing Test CXX_COMPILER_SUPPORTS_-Wformat-security - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute
-- Performing Test CXX_COMPILER_SUPPORTS_-Wmissing-format-attribute - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith
-- Performing Test CXX_COMPILER_SUPPORTS_-Wpointer-arith - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wundef
-- Performing Test CXX_COMPILER_SUPPORTS_-Wundef - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings
-- Performing Test CXX_COMPILER_SUPPORTS_-Wwrite-strings - Success
-- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments
-- Performing Test C_COMPILER_SUPPORTS_-Qunused-arguments - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized
-- Performing Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality
-- Performing Test C_COMPILER_SUPPORTS_-Wno-parentheses-equality - Failed
-- Performing Test C_COMPILER_SUPPORTS_-Wno-misleading-indentation
-- Performing Test C_COMPILER_SUPPORTS_-Wno-misleading-indentation - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi
-- Performing Test C_COMPILER_SUPPORTS_-Wno-psabi - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments
-- Performing Test CXX_COMPILER_SUPPORTS_-Qunused-arguments - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-parentheses-equality - Failed
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-misleading-indentation
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-misleading-indentation - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-psabi - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-noexcept-type - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-array-bounds
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-array-bounds - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-nonnull
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-nonnull - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-expansion-to-defined
-- Performing Test C_COMPILER_SUPPORTS_-Wno-expansion-to-defined - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-expansion-to-defined
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-expansion-to-defined - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wall
-- Performing Test C_COMPILER_SUPPORTS_-Wall - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wextra
-- Performing Test C_COMPILER_SUPPORTS_-Wextra - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wall
-- Performing Test CXX_COMPILER_SUPPORTS_-Wall - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wextra
-- Performing Test CXX_COMPILER_SUPPORTS_-Wextra - Success
-- Performing Test ATOMICS_ARE_BUILTIN
-- Performing Test ATOMICS_ARE_BUILTIN - Success
-- Performing Test STD_FILESYSTEM_IS_AVAILABLE
-- Performing Test STD_FILESYSTEM_IS_AVAILABLE - Success
-- Looking for features.h
-- Looking for features.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for langinfo.h
-- Looking for langinfo.h - found
-- Looking for sys/mman.h
-- Looking for sys/mman.h - found
-- Looking for pthread_np.h
-- Looking for pthread_np.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/timeb.h
-- Looking for sys/timeb.h - found
-- Looking for linux/memfd.h
-- Looking for linux/memfd.h - found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - not found
-- Looking for IsDebuggerPresent
-- Looking for IsDebuggerPresent - not found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for malloc_trim
-- Looking for malloc_trim - found
-- Looking for strnstr
-- Looking for strnstr - not found
-- Looking for timegm
-- Looking for timegm - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for regexec
-- Looking for regexec - found
-- Looking for pthread_main_np
-- Looking for pthread_main_np - not found
-- Looking for timingsafe_bcmp
-- Looking for timingsafe_bcmp - not found
-- Looking for SIGTRAP
-- Looking for SIGTRAP - found
-- Performing Test HAVE_STAT_BIRTHTIME_value
-- Performing Test HAVE_STAT_BIRTHTIME_value - Failed
-- Performing Test HAVE_TM_GMTOFF_value
-- Performing Test HAVE_TM_GMTOFF_value - Success
-- Performing Test HAVE_TM_ZONE_value
-- Performing Test HAVE_TM_ZONE_value - Success
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of __int128_t
-- Check size of __int128_t - done
-- Found Cairo: /usr/lib/libcairo.so (found suitable version "1.17.4", minimum required is "1.14.0") 
-- Found Fontconfig: /usr/lib/libfontconfig.so (found suitable version "2.13.94", minimum required is "2.8.0") 
-- Found Freetype: /usr/lib/libfreetype.so (found suitable version "2.11.0", minimum required is "2.4.2") 
-- Found LibGcrypt: /usr/lib/libgcrypt.so (found suitable version "1.9.4", minimum required is "1.6.0") 
-- Found GLIB: /usr/include/glib-2.0;/usr/lib/glib-2.0/include (found suitable version "2.70.0", minimum required is "2.44.0") 
-- Found the following HarfBuzz libraries:
--  HarfBuzz (required): /usr/lib/libharfbuzz.so
--  ICU (required): /usr/lib/libharfbuzz-icu.so
-- Found HarfBuzz: /usr/include/harfbuzz (found suitable version "3.0.0", minimum required is "0.9.18") 
-- Found the following ICU libraries:
--   data (required)
--   i18n (required)
--   uc (required)
-- Found ICU: /usr/include (found suitable version "69.1", minimum required is "61.2") 
-- Found JPEG: /usr/lib/libjpeg.so (found version "80") 
-- Found LibXml2: /usr/lib/libxml2.so (found suitable version "2.9.12", minimum required is "2.8.0") 
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11") 
-- Found PNG: /usr/lib/libpng.so (found version "1.6.37") 
-- Found SQLite3: /usr/lib/libsqlite3.so (found version "3.36.0") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Checking for module 'atk'
--   Found atk, version 2.36.0
-- Found ATK: /usr/include/atk-1.0 (found suitable version "2.36.0", minimum required is "2.16.0") 
-- Found the following WebP libraries:
--  WebP (required): /usr/lib/libwebp.so
--  demux (required): /usr/lib/libwebpdemux.so
-- Found WebP: /usr/include  
-- Checking for module 'atspi-2'
--   Found atspi-2, version 2.40.3
-- Found ATSPI: /usr/include/at-spi-2.0;/usr/include/dbus-1.0;/usr/lib/dbus-1.0/include;/usr/include/glib-2.0;/usr/lib/glib-2.0/include (Required is at least version "2.5.3") 
-- Checking for module 'egl'
--   Found egl, version 1.5
-- Found EGL: /usr/include  
-- Checking for module 'gl'
--   Found gl, version 1.2
-- Found OpenGL: /usr/include  
-- Looking for include file GL/glx.h
-- Looking for include file GL/glx.h - found
-- Checking for module 'glesv2'
--   Found glesv2, version 3.2
-- Found OpenGLES2: /usr/lib/libGLESv2.so (found version "3.2") 
-- Disabling ENABLE_MEDIA_CONTROLS_SCRIPT since ENABLE_VIDEO is disabled.
-- Disabling ENABLE_MEDIA_SOURCE since ENABLE_VIDEO is disabled.
-- Disabling ENABLE_VIDEO_USES_ELEMENT_FULLSCREEN since ENABLE_VIDEO is disabled.
-- Disabling USE_GSTREAMER_GL since ENABLE_VIDEO is disabled.
-- Checking for module 'gtk+-3.0'
--   Found gtk+-3.0, version 3.24.30
-- Checking for module 'gtk+-unix-print-3.0'
--   Found gtk+-unix-print-3.0, version 3.24.30
-- Found GTK: 3.24.30 (Required is at least version "3.22.0") 
-- Found LibSoup: /usr/include/libsoup-2.4 (found suitable version "2.74.1", minimum required is "2.54.0") 
-- Found WPE: /usr/lib/libwpe-1.0.so (found suitable version "1.12.0", minimum required is "1.3.0") 
-- Found WPEBackend_fdo: /usr/include/wpe-fdo-1.0 (found suitable version "1.12.0", minimum required is "1.6.0") 
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") 
-- Found Manette: /usr/include/libmanette (found suitable version "0.2.6", minimum required is "0.2.4") 
-- Found LibXslt: /usr/lib/libxslt.so (found suitable version "1.1.34", minimum required is "1.1.7") 
-- Checking for module 'libsecret-1'
--   Found libsecret-1, version 0.20.4
-- Found Libsecret: /usr/include/libsecret-1;/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/libmount;/usr/include/blkid;/usr/include/gio-unix-2.0  
-- Checking for module 'gobject-introspection-1.0'
--   Found gobject-introspection-1.0, version 1.70.0
-- Checking for module 'libtasn1'
--   Found libtasn1, version 4.17.0
-- Found Libtasn1: /usr/lib/libtasn1.so  
-- Checking for module 'enchant-2'
--   Found enchant-2, version 2.3.1
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Checking for modules 'wayland-client;wayland-server;wayland-egl'
--   Found wayland-client, version 1.19.0
--   Found wayland-server, version 1.19.0
--   Found wayland-egl, version 18.1.0
-- Found Wayland: wayland-server;wayland-egl;wayland-client  
-- Checking for module 'wayland-protocols'
--   Found wayland-protocols, version 1.23
-- Found LibNotify: /usr/include/gdk-pixbuf-2.0;/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/libpng16;/usr/include/libmount;/usr/include/blkid (found version "0.7.9") 
-- Found Hyphen: /usr/include  
-- Found OpenJPEG: /usr/lib/libopenjp2.so (found suitable version "2.4.0", minimum required is "2.2.0") 
-- Checking for module 'libwoff2dec'
--   Found libwoff2dec, version 1.0.2
-- Found the following WOFF2 libraries:
--  WOFF2 (required): /usr/lib/libwoff2common.so
--  dec (required): /usr/lib/libwoff2dec.so
-- Found WOFF2: /usr/lib/libwoff2common.so (found suitable version "1.0.2", minimum required is "1.0.2") 
-- Found Systemd: /usr/lib/libsystemd.so (found version "249") 
-- Release logs will be sent to the Systemd journal
-- Found LCMS2: /usr/lib/liblcms2.so (found version "2.12") 
-- Found Libseccomp: /usr/lib/libseccomp.so (found version "2.5.2") 
-- Found Gperf: /usr/bin/gperf (Required is at least version "3.0.1") 
-- Platform-specific CMakeLists not found: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/bmalloc/PlatformGTK.cmake
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WTF/wtf/PlatformGTK.cmake
-- Copying generate-unified-source-bundles.rb to: /tmp/makepkg/webkit2gtk/src/build/WTF/Scripts
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/JavaScriptCore/PlatformGTK.cmake
-- Performing Test CXX_COMPILER_SUPPORTS_-ffp-contract=off
-- Performing Test CXX_COMPILER_SUPPORTS_-ffp-contract=off - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-slp-vectorize
-- Performing Test CXX_COMPILER_SUPPORTS_-fno-slp-vectorize - Failed
-- Using source list file: Sources.txt
-- Using source list file: inspector/remote/SourcesGLib.txt
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/JavaScriptCore/shell/PlatformGTK.cmake
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/ThirdParty/ANGLE/PlatformGTK.cmake
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-cast-align
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-cast-align - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-extra
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-extra - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-suggest-attribute=format
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-suggest-attribute=format - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-undef
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-undef - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-unused-parameter
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-unused-parameter - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-return-type
-- Performing Test CXX_COMPILER_SUPPORTS_-Wno-return-type - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-cast-function-type
-- Performing Test C_COMPILER_SUPPORTS_-Wno-cast-function-type - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-sign-compare
-- Performing Test C_COMPILER_SUPPORTS_-Wno-sign-compare - Success
-- Performing Test C_COMPILER_SUPPORTS_-Wno-unused-parameter
-- Performing Test C_COMPILER_SUPPORTS_-Wno-unused-parameter - Success
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebInspectorUI/PlatformGTK.cmake
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/PAL/pal/PlatformGTK.cmake
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebCore/PlatformGTK.cmake
-- Using source list file: Sources.txt
-- Using source list file: platform/SourcesCairo.txt
-- Using source list file: platform/SourcesGCrypt.txt
-- Using source list file: platform/SourcesSoup.txt
-- Using source list file: SourcesGTK.txt
-- Using source list file: platform/SourcesGLib.txt
-- Looking for shm_open
-- Looking for shm_open - not found
-- Looking for shm_open
-- Looking for shm_open - found
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebKit/PlatformGTK.cmake
-- Using source list file: Sources.txt
-- Using source list file: SourcesGTK.txt
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/WebDriver/PlatformGTK.cmake
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Source/PlatformGTK.cmake
-- Found Gettext: /usr/bin/msgmerge (found version "0.21") 
-- Using platform-specific CMakeLists: /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.1/Tools/PlatformGTK.cmake
-- Enabled features:
--  ENABLE_BUBBLEWRAP_SANDBOX ..................... ON
--  ENABLE_DRAG_SUPPORT                             ON
--  ENABLE_GAMEPAD ................................ ON
--  ENABLE_GLES2                                    OFF
--  ENABLE_GTKDOC ................................. ON
--  ENABLE_INTROSPECTION                            ON
--  ENABLE_MEDIA_SOURCE ........................... OFF
--  ENABLE_MINIBROWSER                              ON
--  ENABLE_QUARTZ_TARGET .......................... OFF
--  ENABLE_SPELLCHECK                               ON
--  ENABLE_TOUCH_EVENTS ........................... ON
--  ENABLE_VIDEO                                    OFF
--  ENABLE_WAYLAND_TARGET ......................... ON
--  ENABLE_WEBDRIVER                                ON
--  ENABLE_WEB_AUDIO .............................. OFF
--  ENABLE_WEB_CRYPTO                               ON
--  ENABLE_X11_TARGET ............................. ON
--  USE_AVIF                                        OFF
--  USE_GTK4 ...................................... OFF
--  USE_LCMS                                        ON
--  USE_LIBHYPHEN ................................. ON
--  USE_LIBNOTIFY                                   ON
--  USE_LIBSECRET ................................. ON
--  USE_OPENGL_OR_ES                                ON
--  USE_OPENJPEG .................................. ON
--  USE_SOUP2                                       ON
--  USE_SYSTEMD ................................... ON
--  USE_WOFF2                                       ON
--  USE_WPE_RENDERER .............................. ON
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/makepkg/webkit2gtk/src/build
~~~

~~~
   cmake "../webkitgtk-${pkgver}" \
    -DPORT=GTK \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_INSTALL_LIBEXECDIR=lib \
    -DCMAKE_SKIP_RPATH=ON \
    -DUSE_SOUP2=ON \
    -DENABLE_GTKDOC=ON \
    -DENABLE_WEB_AUDIO=OFF \
    -DENABLE_VIDEO=OFF \
    -DENABLE_MINIBROWSER=ON \
    -DPYTHON_EXECUTABLE=/usr/bin/python \

  make
~~~

cmake 3.21.3
gcc 11.1.0

greetings
Comment 1 alex_y_xu 2021-11-14 15:31:15 PST
applying this patch on 2.34.1 resolved the issue for me:

diff -ru webkitgtk-2.34.1/Source/WebCore/accessibility/AXObjectCache.cpp b/Source/WebCore/accessibility/AXObjectCache.cpp
--- webkitgtk-2.34.1/Source/WebCore/accessibility/AXObjectCache.cpp     2021-09-02 02:33:26.000000000 -0400
+++ b/Source/WebCore/accessibility/AXObjectCache.cpp    2021-11-14 11:52:02.335845108 -0500
@@ -528,9 +528,11 @@
         || (is<HTMLImageElement>(node) && downcast<HTMLImageElement>(node)->hasAttributeWithoutSynchronization(usemapAttr)))
         return false;

+#if ENABLE(VIDEO)
     // Exclude video and audio elements.
     if (is<HTMLMediaElement>(node))
         return false;
+#endif

     return true;
 }
diff -ru webkitgtk-2.34.1/Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp b/Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp
--- webkitgtk-2.34.1/Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp     2021-09-01 05:16:50.000000000 -0400
+++ b/Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp    2021-11-14 12:10:00.801054150 -0500
@@ -269,11 +269,13 @@
     m_secondaryContext.drawPattern(nativeImage, imageSize, destRect, tileRect, patternTransform, phase, spacing, options);
 }

+#if ENABLE(VIDEO)
 void BifurcatedGraphicsContext::paintFrameForMedia(MediaPlayer& player, const FloatRect& destination)
 {
     m_primaryContext.paintFrameForMedia(player, destination);
     m_secondaryContext.paintFrameForMedia(player, destination);
 }
+#endif

 void BifurcatedGraphicsContext::scale(const FloatSize& scale)
 {
Comment 2 sL1pKn07 2021-11-18 07:14:03 PST
thansk for the patch works correct

greetiungs!
Comment 3 alex_y_xu 2021-12-05 14:13:44 PST
duplicate of bug 232264
Comment 4 sL1pKn07 2021-12-30 07:36:30 PST
fails again in 2.34.3


[ 38%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp.o
In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/X11/Xutil.h:53,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/x11/XUniquePtr.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/glx/GLContextGLX.h:25,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp:20,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp:1:
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:84:5: error: expected identifier before numeric constant
   84 |     None,
      |     ^~~~
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:84:5: error: expected '}' before numeric constant
In file included from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/DisplayRefreshMonitor.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/gtk/DisplayRefreshMonitorGtk.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/gtk/DisplayRefreshMonitorGtk.cpp:27,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp:4:
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:83:39: note: to match this '{'
   83 | enum class DynamicRangeMode : uint8_t {
      |                                       ^
In file included from /usr/include/X11/Xlib.h:44,
                 from /usr/include/X11/Xutil.h:53,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/x11/XUniquePtr.h:31,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/glx/GLContextGLX.h:25,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp:20,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp:1:
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:84:5: error: expected unqualified-id before numeric constant
   84 |     None,
      |     ^~~~
In file included from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/DisplayRefreshMonitor.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/gtk/DisplayRefreshMonitorGtk.h:30,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/graphics/gtk/DisplayRefreshMonitorGtk.cpp:27,
                 from /tmp/makepkg/webkit2gtk/src/build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp:4:
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:93:11: error: 'DynamicRangeMode' does not name a type
   93 | constexpr DynamicRangeMode preferredDynamicRangeMode(Widget* = nullptr) { return DynamicRangeMode::Standard; }
      |           ^~~~~~~~~~~~~~~~
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:99:47: error: 'Widget' was not declared in this scope; did you mean 'WebCore::Widget'?
   99 | constexpr bool screenSupportsHighDynamicRange(Widget* = nullptr) { return false; }
      |                                               ^~~~~~
      |                                               WebCore::Widget
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:56:7: note: 'WebCore::Widget' declared here
   56 | class Widget;
      |       ^~~~~~
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:99:55: error: expected primary-expression before '=' token
   99 | constexpr bool screenSupportsHighDynamicRange(Widget* = nullptr) { return false; }
      |                                                       ^
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:108:30: error: 'PlatformDisplayID' was not declared in this scope; did you mean 'WebCore::PlatformDisplayID'?
  108 | const ScreenData* screenData(PlatformDisplayID screendisplayID);
      |                              ^~~~~~~~~~~~~~~~~
      |                              WebCore::PlatformDisplayID
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:58:7: note: 'WebCore::PlatformDisplayID' declared here
   58 | using PlatformDisplayID = uint32_t;
      |       ^~~~~~~~~~~~~~~~~
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:109:16: error: 'PlatformDisplayID' does not name a type; did you mean 'PlatformDisplay_h'?
  109 | WEBCORE_EXPORT PlatformDisplayID primaryScreenDisplayID();
      |                ^~~~~~~~~~~~~~~~~
      |                PlatformDisplay_h
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:161:1: error: expected declaration before '}' token
  161 | } // namespace WebCore
      | ^
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.34.3/Source/WebCore/platform/PlatformScreen.h:173:5: error: template argument 2 is invalid
  173 |     >;
      |     ^
make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/build.make:9735: Source/WebCore/CMakeFiles/WebCore.dir/__/__/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-38.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1149:
Comment 5 Michael Catanzaro 2022-05-26 09:39:27 PDT
Is this still broken?
Comment 6 sL1pKn07 2022-05-26 09:57:33 PDT
(In reply to Michael Catanzaro from comment #5)
> Is this still broken?

let me check (my last build is 2.34.5, now build process for 2.36.2)
Comment 7 Adrian Perez 2023-02-16 06:13:15 PST
IIRC, we made sure that this combination of options builds okay
in the 2.36.x releases, even if in theory disabling the multimedia
support is not something we officially support.

I have just completed a build of 2.38.5 with -DENABLE_WEB_AUDIO=OFF
and -DENABLE_VIDEO=OFF and it succeeded, so it seems things are still
good on this front.
Comment 8 sL1pKn07 2024-03-29 08:03:09 PDT
same issue in 2.44.0

[ 39%] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/FormatConverter.cpp.o
In file included from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.44.0/Source/WebCore/platform/graphics/FormatConverter.h:32,
                 from /tmp/makepkg/webkit2gtk/src/webkitgtk-2.44.0/Source/WebCore/platform/graphics/FormatConverter.cpp:32:
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.44.0/Source/WebCore/platform/graphics/GraphicsContextGL.h:1619:20: error: 'VideoFrame' was not declared in this scope
 1619 |     virtual RefPtr<VideoFrame> surfaceBufferToVideoFrame(SurfaceBuffer) = 0;
      |                    ^~~~~~~~~~
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.44.0/Source/WebCore/platform/graphics/GraphicsContextGL.h:1619:30: error: template argument 1 is invalid
 1619 |     virtual RefPtr<VideoFrame> surfaceBufferToVideoFrame(SurfaceBuffer) = 0;
      |                              ^
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.44.0/Source/WebCore/platform/graphics/GraphicsContextGL.h:1619:30: error: template argument 2 is invalid
/tmp/makepkg/webkit2gtk/src/webkitgtk-2.44.0/Source/WebCore/platform/graphics/GraphicsContextGL.h:1619:30: error: template argument 3 is invalid
make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/build.make:1159: Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/FormatConverter.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1370: Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
make: *** [Makefile:156: all] Error 2


co'mon...

greetings
Comment 9 Michael Catanzaro 2024-03-29 10:01:42 PDT
(In reply to sL1pKn07 from comment #8)
> co'mon...

Pull requests are welcome. Generally nobody is going to fix build failures for you.

I'm going to go ahead and close this bug again because the build failure you posted doesn't look at all similar to the one reported here. That's surely a completely different problem.
Comment 10 sL1pKn07 2024-03-29 10:05:36 PDT
is the same problem:

Fail build with -DENABLE_WEB_AUDIO=OFF -DENABLE_VIDEO=OFF

the output can be different. but the trigger is the same

greetings
Comment 11 Michael Catanzaro 2024-03-29 10:12:58 PDT
Report a new bug. Don't reopen this one. The build with -DENABLE_VIDEO=OFF breaks every few weeks; if you try to use one bug report for every failure, it's going to quickly become 500 comments long.
Comment 12 sL1pKn07 2024-03-29 10:14:36 PDT
and become 500 new bugs in the buglist, if you prefeer that, ok. i'm go ahead

greetings
Comment 13 sL1pKn07 2024-03-29 10:23:24 PDT
done https://bugs.webkit.org/show_bug.cgi?id=271893