[MacPorts] #69644: CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'pthread_np.h' file not found #include <pthread_np.h>

MacPorts noreply at macports.org
Mon Apr 1 14:52:54 UTC 2024


#69644: CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'pthread_np.h'
file not found #include <pthread_np.h>
--------------------+----------------------------
 Reporter:  dbl001  |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:  MacPorts 2.9.2
Component:  ports   |    Version:  2.9.1
 Keywords:          |       Port:  webkit2-gtk
--------------------+----------------------------
 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


 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69644>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list