[MacPorts] #62421: mkvtoolnix 55.0.0: fails to build on macOS 10.14.6

MacPorts noreply at macports.org
Wed Mar 10 10:05:07 UTC 2021


#62421: mkvtoolnix 55.0.0: fails to build on macOS 10.14.6
----------------------+------------------------
 Reporter:  mopihopi  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:  mkvtoolnix
----------------------+------------------------
 Upgrading mkvtoolnix from @53.0.0_0+qtgui to @55.0.0+qtgui on macOS
 10.14.6 18G8022 with Xcode 10.3 10G8 fails:
 {{{
 $ sudo port upgrade mkvtoolnix
 --->  Computing dependencies for mkvtoolnix
 --->  Fetching archive for mkvtoolnix
 --->  Attempting to fetch mkvtoolnix-55.0.0_0+qtgui.darwin_18.x86_64.tbz2
 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/mkvtoolnix
 --->  Attempting to fetch mkvtoolnix-55.0.0_0+qtgui.darwin_18.x86_64.tbz2
 from https://kmq.jp.packages.macports.org/mkvtoolnix
 --->  Attempting to fetch mkvtoolnix-55.0.0_0+qtgui.darwin_18.x86_64.tbz2
 from https://mse.uk.packages.macports.org/mkvtoolnix
 --->  Fetching distfiles for mkvtoolnix
 --->  Verifying checksums for mkvtoolnix
 --->  Extracting mkvtoolnix
 --->  Configuring mkvtoolnix
 Error: Failed to configure mkvtoolnix, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mkvtoolnix/mkvtoolnix/work/mkvtoolnix-55.0.0/config.log
 Error: Failed to configure mkvtoolnix: configure failure: command
 execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mkvtoolnix/mkvtoolnix/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 $
 }}}
 It fails in the configure phase:
 {{{
 :info:configure checking compiler type and version... clang 11.0.0
 :info:configure checking for lld... no
 :info:configure checking for support for the "-std=c++17" flag...
 -std=c++17
 :info:configure checking for support for C++17 feature "attribute
 'maybe_unused'"... yes
 :info:configure checking for support for C++17 feature "nested namespace
 definition"... yes
 :info:configure checking for support for C++17 feature "structured
 bindings"... yes
 :info:configure checking for support for C++17 feature "std::optional"...
 yes
 :info:configure checking for support for C++17 feature "std::gcd"... yes
 :info:configure checking for support for C++17 feature "constexpr if"...
 yes
 :info:configure checking for support for C++17 feature "file system
 library"... no
 :info:configure checking for libraries to link against for the file system
 library...
 :info:configure The following features of the C++17 standards are not
 supported by /usr/bin/clang++:
 :info:configure   * file system library (C++17)
 :info:configure If you are using the GNU C compiler collection (gcc), you
 need
 :info:configure at least v8; for clang v7 and newer should work.
 :info:configure configure: error: support for required C++17 features
 incomplete
 }}}
 The config.log shows the compiler error that caused the configure test to
 fail:
 {{{
 configure:6955: checking for support for C++17 feature "file system
 library"
 configure:6984: /usr/bin/clang++ -c -pipe -Os -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch
 x86_64 -std=c++17 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 conftest.cpp >&5
 conftest.cpp:29:49: error: 'path' is unavailable: introduced in macOS
 10.15
 return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 :
 0;
                                                 ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24:
 note: 'path' has been explicitly marked unavailable here
 class _LIBCPP_TYPE_VIS path {
                        ^
 conftest.cpp:29:32: error: 'path<char [12], void>' is unavailable:
 introduced in macOS 10.15
 return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 :
 0;
                                ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:773:3:
 note: 'path<char [12], void>' has been explicitly marked unavailable here
   path(const _Source& __src, format = format::auto_format) {
   ^
 conftest.cpp:29:32: error: 'path' is unavailable: introduced in macOS
 10.15
 return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 :
 0;
                                ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:773:3:
 note: 'path' has been explicitly marked unavailable here
   path(const _Source& __src, format = format::auto_format) {
   ^
 conftest.cpp:29:32: error: '~path' is unavailable: introduced in macOS
 10.15
 return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 :
 0;
                                ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:791:3:
 note: '~path' has been explicitly marked unavailable here
   ~path() = default;
   ^
 conftest.cpp:29:25: error: 'exists' is unavailable: introduced in macOS
 10.15
 return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 :
 0;
                         ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:1617:39:
 note: 'exists' has been explicitly marked unavailable here
 inline _LIBCPP_INLINE_VISIBILITY bool exists(const path& __p) {
                                       ^
 5 errors generated.
 configure:6984: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "MKVToolNix"
 | #define PACKAGE_TARNAME "mkvtoolnix"
 | #define PACKAGE_VERSION "55.0.0"
 | #define PACKAGE_STRING "MKVToolNix 55.0.0"
 | #define PACKAGE_BUGREPORT
 "https://gitlab.com/mbunkus/mkvtoolnix/issues/"
 | #define PACKAGE_URL ""
 | #define HAVE_STDIO_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_UNISTD_H 1
 | #define STDC_HEADERS 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_SYSCALL_H 1
 | #define HAVE_VSSCANF 1
 | #define HAVE_SYSCALL 1
 | /* end confdefs.h.  */
 | #include <filesystem>
 | int
 | main (void)
 | {
 | return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1
 : 0;
 |   ;
 |   return 0;
 | }
 configure:7001: result: no
 configure:7009: checking for libraries to link against for the file system
 library
 configure:7040: /usr/bin/clang++ -o conftest -pipe -Os -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch
 x86_64 -std=c++17 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 -L/opt/local/lib -Wl,-headerpad_max_install_names -stdlib=libc++
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
 -arch x86_64 conftest.cpp  -lstdc++fs >&5
 conftest.cpp:29:49: error: 'path' is unavailable: introduced in macOS
 10.15
 return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 :
 0;
                                                 ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:739:24:
 note: 'path' has been explicitly marked unavailable here
 class _LIBCPP_TYPE_VIS path {
                        ^
 conftest.cpp:29:32: error: 'path<char [12], void>' is unavailable:
 introduced in macOS 10.15
 return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 :
 0;
                                ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:773:3:
 note: 'path<char [12], void>' has been explicitly marked unavailable here
   path(const _Source& __src, format = format::auto_format) {
   ^
 conftest.cpp:29:32: error: 'path' is unavailable: introduced in macOS
 10.15
 return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 :
 0;
                                ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:773:3:
 note: 'path' has been explicitly marked unavailable here
   path(const _Source& __src, format = format::auto_format) {
   ^
 conftest.cpp:29:32: error: '~path' is unavailable: introduced in macOS
 10.15
 return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 :
 0;
                                ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:791:3:
 note: '~path' has been explicitly marked unavailable here
   ~path() = default;
   ^
 conftest.cpp:29:25: error: 'exists' is unavailable: introduced in macOS
 10.15
 return std::filesystem::exists(std::filesystem::path{"/etc/passwd"}) ? 1 :
 0;
                         ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/filesystem:1617:39:
 note: 'exists' has been explicitly marked unavailable here
 inline _LIBCPP_INLINE_VISIBILITY bool exists(const path& __p) {
                                       ^
 5 errors generated.
 configure:7040: $? = 1
 }}}

 The error can also be seen on the buildbot:
 https://build.macports.org/builders/ports-10.14_x86_64-builder/builds/80684

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


More information about the macports-tickets mailing list