Opened 7 months ago

Closed 7 months ago

#69644 closed defect (duplicate)

webkit2-gtk: GStreamerGL is needed for USE_GSTREAMER_GL

Reported by: dbl001 (dbl) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc: mascguy (Christopher Nielsen), cooljeanius (Eric Gallager)
Port: webkit2-gtk

Description

I'm on MacOS Sonoma

Source file was:
int main() { return 0; }
Determining if the include file features.h exists failed with the following output:
Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp

Run Build Command(s):ninja cmTC_d503e && [1/2] Building C object CMakeFiles/cmTC_d503e.dir/CheckIncludeFile.c.o
FAILED: CMakeFiles/cmTC_d503e.dir/CheckIncludeFile.c.o
/usr/bin/clang   -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -fPIE -MD -MT CMakeFiles/cmTC_d503e.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_d503e.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_d503e.dir/CheckIncludeFile.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'features.h' file not found
#include <features.h>
         ^~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.



Determining if the include file pthread_np.h exists failed with the following output:
Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp

Run Build Command(s):ninja cmTC_92f1f && [1/2] Building C object CMakeFiles/cmTC_92f1f.dir/CheckIncludeFile.c.o
FAILED: CMakeFiles/cmTC_92f1f.dir/CheckIncludeFile.c.o
/usr/bin/clang   -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -fPIE -MD -MT CMakeFiles/cmTC_92f1f.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_92f1f.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_92f1f.dir/CheckIncludeFile.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'pthread_np.h' file not found
#include <pthread_np.h>
         ^~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.



Determining if the include file linux/memfd.h exists failed with the following output:
Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp

Run Build Command(s):ninja cmTC_65d8f && [1/2] Building C object CMakeFiles/cmTC_65d8f.dir/CheckIncludeFile.c.o
FAILED: CMakeFiles/cmTC_65d8f.dir/CheckIncludeFile.c.o
/usr/bin/clang   -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -fPIE -MD -MT CMakeFiles/cmTC_65d8f.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_65d8f.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_65d8f.dir/CheckIncludeFile.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'linux/memfd.h' file not found
#include <linux/memfd.h>
         ^~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.



Determining if the function _aligned_malloc exists failed with the following output:
Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp

Run Build Command(s):ninja cmTC_2ff82 && [1/2] Building C object CMakeFiles/cmTC_2ff82.dir/CheckFunctionExists.c.o
[2/2] Linking C executable cmTC_2ff82
FAILED: cmTC_2ff82
: && /usr/bin/clang -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=_aligned_malloc -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk CMakeFiles/cmTC_2ff82.dir/CheckFunctionExists.c.o -o cmTC_2ff82   && :
Undefined symbols for architecture x86_64:
  "__aligned_malloc", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.



Determining if the function IsDebuggerPresent exists failed with the following output:
Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp

Run Build Command(s):ninja cmTC_dbe9c && [1/2] Building C object CMakeFiles/cmTC_dbe9c.dir/CheckFunctionExists.c.o
[2/2] Linking C executable cmTC_dbe9c
FAILED: cmTC_dbe9c
: && /usr/bin/clang -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -pipe -Os -DNDEBUG -I/opt/local/include -Wno-deprecated-declarations -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-strict-aliasing -fno-exceptions -DCHECK_FUNCTION_EXISTS=IsDebuggerPresent -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-min=14.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk CMakeFiles/cmTC_dbe9c.dir/CheckFunctionExists.c.o -o cmTC_dbe9c   && :
Undefined symbols for architecture x86_64:
  "_IsDebuggerPresent", referenced from:
      _main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.



Determining if the function malloc_trim exists failed with the following output:
Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeTmp

Run Build Command(s):ninja cmTC_cd687 && [1/2] Building C object CMakeFiles/cmTC_cd687.dir/CheckFunctionExists.c.o


Attachments (2)

CMakeError.log (10.9 KB) - added by dbl001 (dbl) 7 months ago.
main.log (53.3 KB) - added by dbl001 (dbl) 7 months ago.

Download all attachments as: .zip

Change History (8)

Changed 7 months ago by dbl001 (dbl)

Attachment: CMakeError.log added

comment:1 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: mascguy added
Milestone: MacPorts 2.9.2
Owner: set to dbevans
Status: newassigned

What is the actual problem? The output you showed in the ticket description seems to be CMake correctly determining that various features are not available on macOS. Can you attach the main.log file?

comment:2 Changed 7 months ago by dbl001 (dbl)

Milestone: MacPorts 2.9.2
:info:configure CMake Error at Source/cmake/GStreamerChecks.cmake:34 (message):
:info:configure   GStreamerGL is needed for USE_GSTREAMER_GL.
:info:configure Call Stack (most recent call first):
:info:configure   Source/cmake/OptionsGTK.cmake:453 (include)
:info:configure   Source/cmake/WebKitCommon.cmake:56 (include)
:info:configure   CMakeLists.txt:169 (include)
:info:configure -- Configuring incomplete, errors occurred!
:info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeOutput.log".
:info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeError.log".
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build" && /opt/local/bin/cmake -G "Ninja" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=ninja -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DPORT=GTK -DENABLE_INTROSPECTION=ON -DENABLE_VIDEO=ON -DUSE_SYSTEM_MALLOC=OFF -DPERL_EXECUTABLE=/opt/local/bin/perl5.34 -DENABLE_QUARTZ_TARGET=OFF -DENABLE_X11_TARGET=ON -DENABLE_OPENGL=ON -DENABLE_MINIBROWSER=ON -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="14.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/webkitgtk-2.28.2
:info:configure Exit code: 1
:error:configure Failed to configure webkit2-gtk: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/work/build/CMakeFiles/CMakeError.log
:error:configure Failed to configure webkit2-gtk: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing 
:debug:configure "$procedure $targetname" 
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_www_webkit2-gtk/webkit2-gtk/main.log for details.
/error

Changed 7 months ago by dbl001 (dbl)

Attachment: main.log added

comment:3 Changed 7 months ago by jmroot (Joshua Root)

Milestone: MacPorts 2.9.2

comment:4 Changed 7 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:5 Changed 7 months ago by cooljeanius (Eric Gallager)

This is just ticket #69640 again

comment:6 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: assignedclosed
Summary: CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'pthread_np.h' file not found #include <pthread_np.h>webkit2-gtk: GStreamerGL is needed for USE_GSTREAMER_GL
Note: See TracTickets for help on using tickets.