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/Developer/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/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:309:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:417:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/cstddef:37:
../../version:1:1: error: C++ requires a type specifier for all declarations
SOURCE_VERSION="v32-Pre"
^
../../version:1:25: error: expected ';' after top level declarator
SOURCE_VERSION="v32-Pre"
^
In file included from AAFilter.cpp:45:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:309:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:418:
../../version:1:1: error: C++ requires a type specifier for all declarations
SOURCE_VERSION="v32-Pre"
^
../../version:1:25: error: expected ';' after top level declarator
SOURCE_VERSION="v32-Pre"
^
4 errors generated.
make[2]: *** [obj/AAFilter.o] Error 1
make[1]: *** [libmythsoundtouch-all] Error 2
make: *** [external] Error 2
Compiling Mythtv failed
Here's a snippet of my configure output:
#### MythTV CONFIGURATION ####
# Basic Settings
Qt minimum version 5.9
Qt installed version 5.15.2
Compile type profile
Compiler cache yes
DistCC no
qmake /opt/local/libexec/qt5/bin/qmake
install prefix /Users/jhoyt/mythtv-32/32-osx-64bit
runtime prefix ../Resources
CPU aarch64 (Apple M1)
NEON enabled yes (Intrinsics yes)
VFP enabled yes
Creating configuration files ...
# Input Support
Joystick menu no
lirc support no
libCEC device support no [/usr/include]
Apple Remote yes
Video4Linux support no
ivtv support no
HD-PVR support no
FireWire support no
DVB support no [/usr/include]
DVB-S2 support no
HDHomeRun support no
Sat>IP support yes
V@Box TV Gateway support yes
Ceton support yes
DVEO ASI support no
# Sound Output Support
PulseAudio support no
OSS support no
ALSA support no
JACK support default
libfftw3 support no
# Video Output Support
x11/xrandr support no
VideoToolBox support yes
VAAPI support no
DRM support no
Video4Linux codecs no (DRM no)
MMAL decoder support no
OpenGL yes (OpenGLES no)
EGL support no
Vulkan no (libglslang no)
MHEG support yes
libass subtitle support yes
# Misc Features
Frontend yes
Backend yes
Qt private headers no
Wayland extras no
multi threaded libavcodec yes
libxml2 support yes [/opt/local/include/libxml2]
libdns_sd (Bonjour) yes
libcrypto yes
gnutls yes
exiv2 support yes (internal)
bluray support yes (system)
BD-J (Bluray java) yes
BD-J type j2se
systemd_notify no
systemd_journal no
# Bindings
bindings_perl yes
bindings_python yes
bindings_php yes
# External Codec Options
mp3lame yes
xvid yes
x264 yes
x265 (HEVC) yes
vpx yes
libaom (AV1) yes
libdav1d (AV1) yes
# Compilation Options
C++ standard supported c++17
Enforce c++11 nullptr no
Enforce shadowed vars yes
Creating libs/libmythbase/mythconfig.h and libs/libmythbase/mythconfig.mak
libs/libmythbase/mythconfig.h is unchanged
libs/libmythbase/mythconfig.mak is unchanged
Configuring libexiv2...
Configuring libmythdvdnav...
Configuring libudfread...
Configuring libmythsoundtouch...
Any suggestions on how to troubleshoot this? If I add a ';' to
mythtv/mythtv/VERSION the "error: expected ';' after top level declarator"
errors go away.
Thanks for the help!
John
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/Developer/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/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:309:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:417:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/cstddef:37:
../../version:1:1: error: C++ requires a type specifier for all declarations
SOURCE_VERSION="v32-Pre"
^
../../version:1:25: error: expected ';' after top level declarator
SOURCE_VERSION="v32-Pre"
^
In file included from AAFilter.cpp:45:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:309:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:418:
../../version:1:1: error: C++ requires a type specifier for all declarations
SOURCE_VERSION="v32-Pre"
^
../../version:1:25: error: expected ';' after top level declarator
SOURCE_VERSION="v32-Pre"
^
4 errors generated.
make[2]: *** [obj/AAFilter.o] Error 1
make[1]: *** [libmythsoundtouch-all] Error 2
make: *** [external] Error 2
Compiling Mythtv failed
Here's a snippet of my configure output:
#### MythTV CONFIGURATION ####
# Basic Settings
Qt minimum version 5.9
Qt installed version 5.15.2
Compile type profile
Compiler cache yes
DistCC no
qmake /opt/local/libexec/qt5/bin/qmake
install prefix /Users/jhoyt/mythtv-32/32-osx-64bit
runtime prefix ../Resources
CPU aarch64 (Apple M1)
NEON enabled yes (Intrinsics yes)
VFP enabled yes
Creating configuration files ...
# Input Support
Joystick menu no
lirc support no
libCEC device support no [/usr/include]
Apple Remote yes
Video4Linux support no
ivtv support no
HD-PVR support no
FireWire support no
DVB support no [/usr/include]
DVB-S2 support no
HDHomeRun support no
Sat>IP support yes
V@Box TV Gateway support yes
Ceton support yes
DVEO ASI support no
# Sound Output Support
PulseAudio support no
OSS support no
ALSA support no
JACK support default
libfftw3 support no
# Video Output Support
x11/xrandr support no
VideoToolBox support yes
VAAPI support no
DRM support no
Video4Linux codecs no (DRM no)
MMAL decoder support no
OpenGL yes (OpenGLES no)
EGL support no
Vulkan no (libglslang no)
MHEG support yes
libass subtitle support yes
# Misc Features
Frontend yes
Backend yes
Qt private headers no
Wayland extras no
multi threaded libavcodec yes
libxml2 support yes [/opt/local/include/libxml2]
libdns_sd (Bonjour) yes
libcrypto yes
gnutls yes
exiv2 support yes (internal)
bluray support yes (system)
BD-J (Bluray java) yes
BD-J type j2se
systemd_notify no
systemd_journal no
# Bindings
bindings_perl yes
bindings_python yes
bindings_php yes
# External Codec Options
mp3lame yes
xvid yes
x264 yes
x265 (HEVC) yes
vpx yes
libaom (AV1) yes
libdav1d (AV1) yes
# Compilation Options
C++ standard supported c++17
Enforce c++11 nullptr no
Enforce shadowed vars yes
Creating libs/libmythbase/mythconfig.h and libs/libmythbase/mythconfig.mak
libs/libmythbase/mythconfig.h is unchanged
libs/libmythbase/mythconfig.mak is unchanged
Configuring libexiv2...
Configuring libmythdvdnav...
Configuring libudfread...
Configuring libmythsoundtouch...
Any suggestions on how to troubleshoot this? If I add a ';' to
mythtv/mythtv/VERSION the "error: expected ';' after top level declarator"
errors go away.
Thanks for the help!
John