Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
1.15.0
-
None
-
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.6
BuildVersion: 18G95
$ /usr/bin/clang --version
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ xcodebuild -version
Xcode 9.4.1
Build version 9F2000
$ sw_vers ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G95 $ /usr/bin/clang --version Apple LLVM version 9.1.0 (clang-902.0.39.2) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin $ xcodebuild -version Xcode 9.4.1 Build version 9F2000
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".