Opened 7 years ago

Closed 7 years ago

#55774 closed defect (invalid)

qt5-qtbase @5.10.0: error: 'LSCopyDefaultApplicationURLForURL' is only available on macOS 10.10 or newer

Reported by: cgilles (HumanDynamo) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ctreleaven (Craig Treleaven)
Port: qt5-qtbase

Description (last modified by ryandesign (Ryan Carsten Schmidt))

--->  Fetching distfiles for qt5-qtbase
--->  Attempting to fetch qtbase-everywhere-src-5.10.0.tar.xz from https://distfiles.macports.org/qt5
--->  Verifying checksums for qt5-qtbase
--->  Extracting qt5-qtbase
--->  Applying patches to qt5-qtbase
--->  Configuring qt5-qtbase
--->  Building qt5-qtbase
Error: Failed to build qt5-qtbase: command execution failed
Error: See /opt/digikam/var/macports/logs/_opt_digikam_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port qt5 failed

Attachments (1)

main.log (648.6 KB) - added by cgilles (HumanDynamo) 7 years ago.
qt5-qtbase compilation trace

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by cgilles (HumanDynamo)

Attachment: main.log added

qt5-qtbase compilation trace

comment:1 Changed 7 years ago by cgilles (HumanDynamo)

MacOS : 10.12.6 computer : MacBook Pro mi-2012 XCode : 9.1 (9B55)

comment:2 Changed 7 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven added

comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to MarcusCalhoun-Lopez
Status: newassigned
Summary: Qt5.10 compilation failedqt5-qtbase @5.10.0: error: 'LSCopyDefaultApplicationURLForURL' is only available on macOS 10.10 or newer

The problem appears to be that the build has requested the OS X 10.8 deployment target, but is using a function not available until OS X 10.10. A simple solution might be for the build not to request the OS X 10.8 deployment target.

:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -ffunction-sections -Os -fPIC -std=c++1z -fapplication-extension  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -mmacosx-version-min=10.8 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Werror=unguarded-availability -Werror=unguarded-availability-new -Werror=unsupported-availability-guard -DQT_VERSION_STR='"5.10.0"' -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=10 -DQT_VERSION_PATCH=0 -DQT_BOOTSTRAPPED -DQT_NO_CAST_TO_ASCII -DQT_NO_FOREACH -DQT_NO_CAST_FROM_ASCII -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I. -I/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.10.0/lib/QtCore.framework/Headers -I/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.10.0/lib/QtCore.framework/Headers/5.10.0 -I/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.10.0/lib/QtCore.framework/Headers/5.10.0/QtCore -I/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.10.0/lib/QtXml.framework/Headers -I/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.10.0/lib/QtXml.framework/Headers/5.10.0 -I/opt/digikam/var/macports/build/_opt_digikam_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.10.0/lib/QtXml.framework/Headers/5.10.0/QtXml -I../../../include -I../../../include/QtCore -I../../../include/QtCore/5.10.0 -I../../../include/QtCore/5.10.0/QtCore -I../../../include/QtXml -I../../../include/QtXml/5.10.0 -I../../../include/QtXml/5.10.0/QtXml -I../../../mkspecs/macx-clang -o .obj/qcore_mac_objc.o ../../corelib/kernel/qcore_mac_objc.mm
:info:build ../../corelib/io/qfilesystemengine_unix.cpp:168:41: error: 'LSCopyDefaultApplicationURLForURL' is only available on macOS 10.10 or newer [-Werror,-Wunguarded-availability]
:info:build         QCFType<CFURLRef> application = LSCopyDefaultApplicationURLForURL(url,
:info:build                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

comment:4 Changed 7 years ago by cgilles (HumanDynamo)

yes. For digiKam packaging, we set MacOS backward compatibility to 10.8.. This have work properly until now as we use Qt 5.8. from Macports. After a big update, Qt 5.10 is here, and do not compile.

Do you think that a patch to make Qt 5.10 compatible with older MacOS as 10.8 at least is reasonable or it's a waste of time, as we certainly patch code without to run regression tests.

As i can see here :

http://doc.qt.io/qt-5/supported-platforms.html

Qt team test with MacOS 10.11 for Qt 5.10.

I rebuild whole digiKam PKG from scratch with OSX 10.10 backward compatibility to see if it work.

Gilles Caulier

comment:5 Changed 7 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: invalid
Status: assignedclosed

With your current setup, I believe you have two options:

  1. Do not change the default MACOSX_DEPLOYMENT_TARGET
  2. Install an older version of Qt instead (e.g. qt57-qtbase, which is Qt 5.7)

Based on previous experience, it is unlikely we could get Qt 5.10 to be compatible with OS X 10.8.

Please feel free to reopen if this is not a satisfactory resolution.

Note: See TracTickets for help on using tickets.