Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1074

Module validation script errors hide exceptions thrown from Probe configure scripts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 1.7.1
    • some future version
    • General
    • None
    • e2e754ddd7e7d50b99aa99369c1f2b8611d43a55

    Description

      https://codereview.qt-project.org/#/c/179393/ was not enough.

      Currently, an invalid compiler path results in a very cryptic error message like:

      Restoring build graph from disk
      Resolving project for configuration default
      ERROR: <install-root>/share/qbs/modules/cpp/GenericGCC.qbs:198 The following properties are not set. Set them in your profile or product:
      cpp.architecture: you might want to re-run 'qbs-setup-toolchains'
      cpp.compilerVersionMajor
      cpp.compilerVersionMinor
      cpp.compilerVersionPatch
      cpp.compilerIncludePaths
      cpp.compilerFrameworkPaths
      cpp.compilerLibraryPaths
      The following properties have invalid values:
      cpp.compilerVersion: must be a version number with 3 components
      cpp.compilerVersionMajor: must be an integer >= 1
      cpp.compilerVersionMinor: must be an integer >= 0
      cpp.compilerVersionPatch: must be an integer >= 0

      vs the far more comprehensible (expected) output:

      Restoring build graph from disk
      Resolving project for configuration default
      ERROR: <install-root>/share/qbs/imports/qbs/Probes/GccProbe.qbs:58:16 Error: Error running '/usr/bin/clang': execve: No such file or directory

      As discovered by a user with invalid Qt Creator kit setups in 4.2.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes