Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. MacOS: Project ERROR: failed to parse default search paths from compiler output
Forum Updated to NodeBB v4.3 + New Features

MacOS: Project ERROR: failed to parse default search paths from compiler output

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
8 Posts 4 Posters 3.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jippos
    wrote on 19 Sept 2023, 08:15 last edited by
    #1

    My MacOS decided to upgrade SDK from 13.3 to 14.0 without asking and broke my build.

    qmake gives error :
    "Project ERROR: failed to parse default search paths from compiler output
    11:10:45: The process "/Users/xxxxxxx/Qt/6.5.2/macos/bin/qmake" exited with code 3.
    Error while building/deploying project kponsoolss (kit: Qt 6.5.2 for macOS)
    When executing step "qmake""

    qmake debug shows:

    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: calling built-in isEmpty(QMAKE_DEFAULT_LIBDIRS)
    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: test function returned true
    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: OR
    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: skipped test function "isEmpty"
    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: AND
    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: NOT
    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: condition "integrity" is false
    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: AND
    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: evaluating test function "error"
    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: calling built-in error("failed to parse default search paths from compiler output")
    Project ERROR: failed to parse default search paths from compiler output
    DEBUG 1: /Users/xxxxxxxxxxxx/Qt/6.5.2/macos/mkspecs/features/toolchain.prf:291: aborting block, function status: error

    I'm running Ventura 13.5.2 on ARM Macbook.
    Qt Creator 11.0.2
    Based on Qt 6.4.3 (Clang 13.0 (Apple), arm64)
    Built on Aug 12 2023 01:27:44

    I have tried:

    • install Qt toolchain
    • re-install whole Qt
    • tested xcode (it builds fine)

    I have no clue where to start fixing this issue.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jippos
      wrote on 19 Sept 2023, 08:54 last edited by
      #2

      Some xcode-test commands:

      xcode-select -print-path
      /Applications/Xcode.app/Contents/Developer

      xcrun -sdk macosx -find clang
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

      xcrun -sdk macosx --show-sdk-path
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jadamec
        wrote on 19 Sept 2023, 11:42 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • J Offline
          J Offline
          jadamec
          wrote on 19 Sept 2023, 12:07 last edited by jadamec
          #4

          Seems like it is a reported bug, fixed in Qt 6.5.3 or Qt 6.6
          https://bugreports.qt.io/browse/QTBUG-117225

          So this issue can be solved by downloading toolchain.prf from the commit and replacing your current mkspecs/features/toolchain.prf. This works on my computer.

          J F B 3 Replies Last reply 19 Sept 2023, 13:09
          4
          • J jadamec
            19 Sept 2023, 12:07

            Seems like it is a reported bug, fixed in Qt 6.5.3 or Qt 6.6
            https://bugreports.qt.io/browse/QTBUG-117225

            So this issue can be solved by downloading toolchain.prf from the commit and replacing your current mkspecs/features/toolchain.prf. This works on my computer.

            J Offline
            J Offline
            jippos
            wrote on 19 Sept 2023, 13:09 last edited by
            #5

            @jadamec Thank you so much for replying. I need to try this out!

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jippos
              wrote on 19 Sept 2023, 13:28 last edited by
              #6

              Yes, I can confirm that fix worked.

              1 Reply Last reply
              0
              • J jadamec
                19 Sept 2023, 12:07

                Seems like it is a reported bug, fixed in Qt 6.5.3 or Qt 6.6
                https://bugreports.qt.io/browse/QTBUG-117225

                So this issue can be solved by downloading toolchain.prf from the commit and replacing your current mkspecs/features/toolchain.prf. This works on my computer.

                F Offline
                F Offline
                flavves
                wrote on 30 Oct 2023, 09:41 last edited by
                #7

                @jadamec its working!

                1 Reply Last reply
                0
                • J jadamec
                  19 Sept 2023, 12:07

                  Seems like it is a reported bug, fixed in Qt 6.5.3 or Qt 6.6
                  https://bugreports.qt.io/browse/QTBUG-117225

                  So this issue can be solved by downloading toolchain.prf from the commit and replacing your current mkspecs/features/toolchain.prf. This works on my computer.

                  B Offline
                  B Offline
                  bebege
                  wrote on 4 Jan 2024, 00:30 last edited by bebege 1 Apr 2024, 00:32
                  #8

                  @jadamec Thank you for the response. I tried this but I'm still seeing the same error. which is strange because according to the git diff, the updated .prf file no longer contains the same text for the error. Perhaps something has been cached on my end. Do I need to do anything beyond replacing the qtbase/mkspecs/feature/toolchain.prf file with the updated/fixed version from the commit?

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved