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

Qbs confused by explicit "-include" when precompiled headers are used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 1.12.2
    • Toolchains: GCC
    • None

    Description

      import qbs
      
      CppApplication {
          name: "the-app"
          files: ["main.cpp"]
          cpp.cxxFlags: base.concat(["-include", "/home/nik/work/pch/qbs/included.h"]) // TODO: Adapt your path
      
          Group {
              files: ["precompiled-header.pch"]
              fileTags: ["cpp_pch_src"]
          }
      }
      

      Compiling this results in

      15:35:32: Running steps for project pro...
      compiling main.cpp [the-app]
      /usr/lib/icecc/bin/g++ -g -O0 -Wall -Wextra -m64 -pipe -fexceptions -fvisibility=default -include /home/nik/work/pch/qbs/included.h -include /home/nik/work/pch/build-pro-Desktop-Debug/qtc_Desktop_Debug/the-app.16c8070d/the-app_cpp -fPIC -o /home/nik/work/pch/build-pro-Desktop-Debug/qtc_Desktop_Debug/the-app.16c8070d/3a52ce780950d4d9/main.cpp.o -c /home/nik/work/pch/qbs/main.cpp
      cc1plus: fatal error: /home/nik/work/pch/build-pro-Desktop-Debug/qtc_Desktop_Debug/the-app.16c8070d/the-app_cpp: No such file or directory
      compilation terminated.
      Process failed with exit code 1.
      The following products could not be built for configuration qtc_Desktop_Debug:
      the-app
      Error while building/deploying project pro (kit: Desktop)
      When executing step "Qbs Build"
      15:35:32: Elapsed time: 00:00.
      

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              kosjar Nikolai Kosjar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes