[mythtv] compile issues - latest macOS SDK (11.3) / Xcode (11.5)

David Hampton mythtv at love2code.net
Sun May 16 16:42:07 UTC 2021


On Sun, 2021-05-16 at 09:08 -0400, John Hoyt wrote:
> I'm trying to build new app bundles for master and fixes/31 using my
> standard compile script, but am now getting errors in the compile
> process with the latest Xcode release.

> The error occurs on both master and fixes/31 for both intel and arm
> platforms.
> 
> Everything is still working on older versions of macOS (i.e. Catalina /
> High Sierra)
> 
> Here's the compiler error:
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C
> libmythsoundtouch all
> ccache clang++ -c -pipe -stdlib=libc++ -D_FILE_OFFSET_BITS=64 -DPIC -
> std=c++17 -faligned-new -DNDEBUG -fomit-frame-pointer -fPIC -
> DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -pthread -g -Wall -Wextra -
> Wpointer-arith -Wno-constant-logical-operand -Wno-unused-value -
> Qunused-arguments -Wimplicit-fallthrough -fPIC -std=gnu++1z  -arch
> arm64 -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De
> veloper/SDKs/MacOSX11.3.sdk -mmacosx-version-min=10.13 -w -
> DUSING_APPLEREMOTE -D_GNU_SOURCE -I. -I/opt/local/libexec/qt5/include -
> I/opt/local/include/libxml2 -I. -I../.. -
> I/opt/local/libexec/qt5/mkspecs/macx-clang -o obj/AAFilter.o
> AAFilter.cpp
> In file included from AAFilter.cpp:45:
> In file included from
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De
> veloper/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:309:
> In file included from
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De
> veloper/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:417:
> In file included from
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/De
> veloper/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/cstddef:37:

The problem is here.  The file /usr/include/c++/v1/cstddef should be
including /usr/include/c++/v1/version but is instead getting the file
"VERSION" from the mythtv sources. This shouldn't happen. System header
files should never include user header files.

I'm sorry I don't remember how I fixed it. I was changing a bunch of
things at the time, trying to get my OSX builder working again.

Are you using the system clang and llvm, or the ones installed by
macports? I'm using the system versions. I'm running XCode 12.4 and
using SDK 11.2 (I think).

David




More information about the mythtv-dev mailing list