Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-119490

qcocoaapplicationdelegate.mm:354:20: error: cannot initialize return object of type 'BOOL'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.6.1
    • Core: Plugins
    • None
    • macOS
    • a29bff3d8 (dev), d84133fac (6.6), 248f8bff1 (dev), a0bdd2195 (dev), c98a4863d (6.6), 88f25422a (6.6), 78806d0d1 (tqtc/lts-6.5), daabe012e (tqtc/lts-6.5), ec87347f0 (tqtc/lts-6.5), cec2e4205 (dev), cfdffa17a (6.7), 6125a1db3 (6.6), 7308f4436 (tqtc/lts-6.5)

    Description

      6.6.1 fails to build on conda-forge:

      2023-11-27T09:13:40.9094190Z [1044/4210] Building OBJCXX object qtbase/src/plugins/platforms/cocoa/CMakeFiles/QCocoaIntegrationPlugin.dir/qcocoaapplicationdelegate.mm.o 2023-11-27T09:13:40.9196940Z FAILED: qtbase/src/plugins/platforms/cocoa/CMakeFiles/QCocoaIntegrationPlugin.dir/qcocoaapplicationdelegate.mm.o 2023-11-27T09:13:40.9381970Z $BUILD_PREFIX/bin/x86_64-apple-darwin13.4.0-clang++ -DGL_SILENCE_DEPRECATION -DQCocoaIntegrationPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_GUI_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_AS_CONST -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_PLUGIN -DQT_WARN_DEPRECATED_UP_TO=0x070000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I$SRC_DIR/build/qtbase/src/plugins/platforms/cocoa/QCocoaIntegrationPlugin_autogen/include -I$SRC_DIR/qtbase/src/plugins/platforms/cocoa -I$SRC_DIR/build/qtbase/src/plugins/platforms/cocoa -I$SRC_DIR/build/qtbase/include -I$SRC_DIR/build/qtbase/include/QtCore -I$SRC_DIR/qtbase/mkspecs/macx-clang -I$SRC_DIR/build/qtbase/src/corelib -I$SRC_DIR/build/qtbase/include/QtCore/6.6.1 -I$SRC_DIR/build/qtbase/include/QtCore/6.6.1/QtCore -I$SRC_DIR/build/qtbase/include/QtGui -I$SRC_DIR/build/qtbase/src/gui -I$SRC_DIR/build/qtbase/include/QtGui/6.6.1 -I$SRC_DIR/build/qtbase/include/QtGui/6.6.1/QtGui -x objective-c++ -DNDEBUG -O2 -std=c++17 -isysroot /Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk -mmacosx-version-min=10.15 -fPIC -fvisibility=hidden -Wall -Wextra -fno-exceptions -fPIC -MD -MT qtbase/src/plugins/platforms/cocoa/CMakeFiles/QCocoaIntegrationPlugin.dir/qcocoaapplicationdelegate.mm.o -MF qtbase/src/plugins/platforms/cocoa/CMakeFiles/QCocoaIntegrationPlugin.dir/qcocoaapplicationdelegate.mm.o.d -o qtbase/src/plugins/platforms/cocoa/CMakeFiles/QCocoaIntegrationPlugin.dir/qcocoaapplicationdelegate.mm.o -c $SRC_DIR/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm 2023-11-27T09:13:40.9506390Z $SRC_DIR/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm:354:40: warning: instance method '-applicationSupportsSecureRestorableState:' not found (return type defaults to 'id') [-Wobjc-method-access] 2023-11-27T09:13:40.9609350Z return [reflectionDelegate applicationSupportsSecureRestorableState:application]; 2023-11-27T09:13:40.9714820Z ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2023-11-27T09:13:40.9821130Z /Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/objc/NSObject.h:53:12: note: receiver is instance of class declared here 2023-11-27T09:13:40.9942580Z @interface NSObject <NSObject> { 2023-11-27T09:13:41.0064710Z ^ 2023-11-27T09:13:41.0205540Z $SRC_DIR/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm:354:20: error: cannot initialize return object of type 'BOOL' (aka 'signed char') with an rvalue of type 'id' 2023-11-27T09:13:41.0315710Z return [reflectionDelegate applicationSupportsSecureRestorableState:application]; 2023-11-27T09:13:41.0421940Z ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2023-11-27T09:13:41.0563980Z 1 warning and 1 error generated.

       

      here is the full log:

      https://dev.azure.com/conda-forge/84710dde-1620-425b-80d0-4cf5baca359d/_apis/build/builds/830936/logs/21

       

      cc vestbo 

      https://github.com/qt/qtbase/commit/546dae9285fe97defdab73437d6ae2bf19b806d8

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            jschueller Julien Schueller
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: