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

macOS: 'array' file not found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 1.15.0
    • Toolchains: Xcode
    • None
    • macOS

    Description

      A file #including <array> fails to build:

      /usr/bin/clang++ -g -O0 -Wall -Wextra -target x86_64-apple-macosx-macho -pipe -fexceptions -fvisibility=default -fPIC -std=c++11 -o /Users/berlin/jenkins/workspace/qt-creator-macos-4.11-with-tests2/label/osx-qa-builder/src/plugins/clangtools/unit-tests/build-stdc++11-includes-Desktop-Debug/Debug/Standard-C---Includes.c9a77e83/3a52ce780950d4d9/main.cpp.o -c /Users/berlin/jenkins/workspace/qt-creator-macos-4.11-with-tests2/label/osx-qa-builder/src/plugins/clangtools/unit-tests/stdc++11-includes/main.cpp
      /Users/berlin/jenkins/workspace/qt-creator-macos-4.11-with-tests2/label/osx-qa-builder/src/plugins/clangtools/unit-tests/stdc++11-includes/main.cpp:4:10: fatal error: 'array' file not found
      #include <array>
               ^~~~~~~
      1 error generated.
      Process failed with exit code 1.
      

      I've noticed that removing "-target x86_64-apple-macosx-macho" from the command line fixes the problem. Then it will take the default target "x86_64-apple-darwin18.7.0".

      Attachments

        Activity

          People

            arch Ivan Komissarov
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: