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

Linux: clang fails to build project if precompile_header turned on

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Some future release
    • Build tools: qmake
    • None
    • Linux, clang 3.1, CONFIG+=precompile_header, PRECOMPILED_HEADER=(filename)

      Bug appears on Linux (and probably MacOSX) with any qmake project.

      When precomile_header turned on via qmake variable CONFIG, and PRECOMPILED_HEADER variable set, clang creates directory "$targetName" in build dir, and writes "c++.pch" file into it.

      On linkage step, ld attemts to write binary file "$targetName" and fails with message "/usr/bin/ld: cannot open output file untitled: Is a directory".

      Curious fact: changing qmake variable TARGET doesn't fix problem: in this case clang saves c++.pch into $$OUT_PWS/$$TARGET directory, but TARGET=bin/(appname) will fix.

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

            qtbuildsystem Qt Build System Team
            sergey-shambir Sergey Shambir
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes