Opened 18 months ago

Last modified 18 months ago

#67571 assigned defect

qt5-qtwebengine: fatal error: 'mach/host_security.h' file not found

Reported by: dbl001 (dbl) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: qt5-qtwebengine

Description

I'm on MacOS Ventura 13.4 Here's an example of the compiler errors:

:info:build In file included from ../../3rdparty/chromium/gpu/command_buffer/service/shared_image_backing_gl_texture.cc:5:
:info:build In file included from ../../3rdparty/chromium/gpu/command_buffer/service/shared_image_backing_factory_gl_texture.h:13:
:info:build In file included from ../../3rdparty/chromium/gpu/command_buffer/service/shared_image_backing_factory.h:15:
:info:build In file included from ../../3rdparty/chromium/ui/gfx/gpu_memory_buffer.h:11:
:info:build In file included from ../../3rdparty/chromium/base/memory/unsafe_shared_memory_region.h:10:
:info:build In file included from ../../3rdparty/chromium/base/memory/platform_shared_memory_region.h:17:
:info:build In file included from ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/mach.h:67:
:info:build ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/mach_interface.h:44:10: fatal error: 'mach/host_security.h' file not found
:info:build #include <mach/host_security.h>
:info:build          ^~~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
:info:build [15215/24009] ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -MMD -MF obj/gpu/command_buffer/service/gles2_sources/shared_image_representation.o.d -DOFFICIAL_BUILD -DTOOLKIT_QT -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1430 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGPU_GLES2_IMPLEMENTATION -DRASTER_IMPLEMENTATION -DWEBGPU_IMPLEMENTATION -DWEBP_EXTERN=extern -DUSE_EGL -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DSK_BUILD_FOR_MAC -DSK_METAL -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DANGLE_USE_ABSEIL -DABSL_ALLOCATOR_NOTHROW=1 -I../../3rdparty/chromium/third_party/mesa_headers -Igen -I../../3rdparty/chromium -I../../3rdparty/chromium/third_party/khronos -I../../3rdparty/chromium/gpu -I../../3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../3rdparty/chromium/third_party/libwebp/src -Igen/third_party/dawn/src/include -I../../3rdparty/chromium/third_party/dawn/src/include -I../../3rdparty/chromium/third_party/skia -I../../3rdparty/chromium/third_party/libgifcodec -I../../3rdparty/chromium/third_party/abseil-cpp -I../../3rdparty/chromium/third_party/boringssl/src/include -I../../3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../3rdparty/chromium/third_party/protobuf/src -I../../3rdparty/chromium/third_party/ced/src -I../../3rdparty/chromium/third_party/icu/source/common -I../../3rdparty/chromium/third_party/icu/source/i18n -I../../3rdparty/chromium/third_party/angle/include -I../../3rdparty/chromium/third_party/angle/src -I../../3rdparty/chromium/third_party/angle/src/common/third_party/base -I../../3rdparty/chromium/third_party/abseil-cpp -Igen/angle -I../../3rdparty/chromium/third_party/angle/include -I../../3rdparty/chromium/third_party/angle/include -I../../3rdparty/chromium/third_party/re2/src -I../../3rdparty/chromium/third_party/zlib -I../../3rdparty/chromium/third_party/mesa_headers -fno-strict-aliasing -fstack-protector -Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unknown-warning-option -fcolor-diagnostics -fmerge-all-constants -arch x86_64 -Wall -Wextra -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-psabi -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wno-max-tokens -Oz -fno-omit-frame-pointer -g0 -isysroot ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -mmacosx-version-min=13.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wshadow -Wexit-time-destructors -Wshadow -Wexit-time-destructors -Wshadow -Wexit-time-destructors -Wno-shorten-64-to-32 -Wno-parentheses-equality -Wno-tautological-compare -Wno-thread-safety-attributes -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++14 -fno-trigraphs -Wno-trigraphs -stdlib=libc++ -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../3rdparty/chromium/gpu/command_buffer/service/shared_image_representation.cc -o obj/gpu/command_buffer/service/gles2_sources/shared_image_representation.o
:info:build FAILED: obj/gpu/command_buffer/service/gles2_sources/shared_image_representation.o

Attachments (1)

main.log.gz (590.6 KB) - added by dbl001 (dbl) 18 months ago.

Download all attachments as: .zip

Change History (8)

Changed 18 months ago by dbl001 (dbl)

Attachment: main.log.gz added

comment:1 Changed 18 months ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:2 Changed 18 months ago by chrstphrchvz (Christopher Chavez)

This reminds me of the reporter’s previous ticket #66369. Can the reporter confirm /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/host_security.h is indeed present?

comment:3 Changed 18 months ago by dbl001 (dbl)

% xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

% ls -l  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/host_security.h
-rw-r--r--  8 root  wheel  6410 Mar  6 20:32 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include/mach/host_security.h
Last edited 18 months ago by dbl001 (dbl) (previous) (diff)

comment:4 Changed 18 months ago by neverpanic (Clemens Lang)

Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:5 Changed 18 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: Build Errors: Include files not foundqt5-qtwebengine: fatal error: 'mach/host_security.h' file not found

comment:6 Changed 18 months ago by dbl001 (dbl)

I tried to build again and the second time it worked... not sure what's going on.

% sudo port selfupdate
Enter PIN for 'Certificate For PIV Authentication (Yubico PIV Authentication)': 
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.8.1 installed,
MacPorts base version 2.8.1 downloaded.
--->  Updating the ports tree
sudo port upgrade outdated
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
(ai) davidlaxer@bluediamond build % sudo port upgrade outdated
--->  Computing dependencies for qt5-qtwebengine
--->  Fetching archive for qt5-qtwebengine
--->  Attempting to fetch qt5-qtwebengine-5.15.14_2.darwin_22.x86_64.tbz2 from https://packages.macports.org/qt5-qtwebengine
--->  Attempting to fetch qt5-qtwebengine-5.15.14_2.darwin_22.x86_64.tbz2.rmd160 from https://packages.macports.org/qt5-qtwebengine
--->  Installing qt5-qtwebengine @5.15.14_2
--->  Cleaning qt5-qtwebengine
--->  Computing dependencies for qt5-qtwebengine
--->  Deactivating qt5-qtwebengine @5.15.14_1
--->  Cleaning qt5-qtwebengine
--->  Activating qt5-qtwebengine @5.15.14_2
--->  Cleaning qt5-qtwebengine
--->  Computing dependencies for qt6-qtwebengine
--->  Fetching archive for qt6-qtwebengine
--->  Attempting to fetch qt6-qtwebengine-6.4.3_2.darwin_22.x86_64.tbz2 from https://packages.macports.org/qt6-qtwebengine
--->  Attempting to fetch qt6-qtwebengine-6.4.3_2.darwin_22.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/qt6-qtwebengine
--->  Attempting to fetch qt6-qtwebengine-6.4.3_2.darwin_22.x86_64.tbz2 from http://mirror.fcix.net/macports/packages/qt6-qtwebengine
--->  Fetching distfiles for qt6-qtwebengine
--->  Attempting to fetch qtwebengine-everywhere-src-6.4.3.tar.xz from https://distfiles.macports.org/qt6
--->  Attempting to fetch qtwebengine-everywhere-src-6.4.3.tar.xz from https://ywg.ca.distfiles.macports.org/mirror/macports/distfiles/qt6
--->  Verifying checksums for qt6-qtwebengine                                   
--->  Extracting qt6-qtwebengine
--->  Configuring qt6-qtwebengine
--->  Building qt6-qtwebengine                           
--->  Staging qt6-qtwebengine into destroot              
--->  Installing qt6-qtwebengine @6.4.3_2                
--->  Cleaning qt6-qtwebengine
--->  Computing dependencies for qt6-qtwebengine
--->  Deactivating qt6-qtwebengine @6.4.3_1
--->  Cleaning qt6-qtwebengine
--->  Activating qt6-qtwebengine @6.4.3_2
--->  Cleaning qt6-qtwebengine
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  No broken ports found.

comment:7 Changed 18 months ago by chrstphrchvz (Christopher Chavez)

It worked because the binary archive from the buildbot is now available, and it was used instead of building locally.

Note: See TracTickets for help on using tickets.