[MacPorts] #65632: clang-14 doesn't work on macOS 10.7

MacPorts noreply at macports.org
Sun Aug 7 21:30:52 UTC 2022


#65632: clang-14 doesn't work on macOS 10.7
--------------------+------------------------------
 Reporter:  catap   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  clang-14 llvm-14
--------------------+------------------------------
 I've installed clang-14 to macOS 10.7 as `port install clang-14`. An
 attempt to compile trivial program:
 {{{
 #include <iostream>
 using namespace std;
 int main() {
    cout << "Hello, World!" << endl;
    return 0;
 }
 }}}
 fails as:
 {{{
 2022-08-07 23:27:22.779 xcodebuild[4172:807] [MT] DVTAssertions: ASSERTION
 FAILURE in
 /SourceCache/DVTFoundation/DVTFoundation-1195/Framework/Classes/FilePaths/DVTFilePath.m:364
 Details:  fsrep is absolute (starts with /)
 ('/opt/local/libexec/llvm-14/bin/clang++') parentPath must be nil but it
 is not
 ('<DVTFilePath:0x401bb9e80:'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin'>')
 Object:   <DVTFilePath>
 Method:
 +_filePathForParent:fileSystemRepresentation:length:allowCreation:
 Thread:   <NSThread: 0x40010a220>{name = (null), num = 1}
 Hints: None
 Backtrace:
   0  0x000000010e6ca77f -[DVTAssertionHandler
 handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:]
 (in DVTFoundation)
   1  0x000000010e6ca5d5 _DVTAssertionFailureHandler (in DVTFoundation)
   2  0x000000010e6500d7 +[DVTFilePath
 _filePathForParent:fileSystemRepresentation:length:allowCreation:] (in
 DVTFoundation)
   3  0x000000010e64fde1 +[DVTFilePath _filePathForParent:pathString:] (in
 DVTFoundation)
   4  0x000000010e68209e -[DVTSearchPath
 pathForFileWithRelativePathString:] (in DVTFoundation)
   5  0x000000010f5e4ce6 -[Xcode3SDK absolutePathToBinaryNamed:error:] (in
 DevToolsCore)
   6  0x000000010ed1cb07 -[Xcode3CommandLineBuildTool
 _printPathToBinaryAndExit] (in Xcode3Core)
   7  0x000000010ed1df9e -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
   8  0x000000010e647db6 (in xcodebuild)
   9  0x000000010e647c2c (in xcodebuild)
  10  0x0000000000000005
 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild fails with 6
 - Device not configured
 }}}
 thus, an attempt to simple run `clang++-mp-14` fails:
 {{{
 macos-lion:tmp catap$ clang++-mp-14
 2022-08-07 23:29:23.656 xcodebuild[4188:807] [MT] DVTAssertions: ASSERTION
 FAILURE in
 /SourceCache/DVTFoundation/DVTFoundation-1195/Framework/Classes/FilePaths/DVTFilePath.m:364
 Details:  fsrep is absolute (starts with /)
 ('/opt/local/libexec/llvm-14/bin/clang++') parentPath must be nil but it
 is not
 ('<DVTFilePath:0x400eb16a0:'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin'>')
 Object:   <DVTFilePath>
 Method:
 +_filePathForParent:fileSystemRepresentation:length:allowCreation:
 Thread:   <NSThread: 0x40010a220>{name = (null), num = 1}
 Hints: None
 Backtrace:
   0  0x0000000101a0777f -[DVTAssertionHandler
 handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:]
 (in DVTFoundation)
   1  0x0000000101a075d5 _DVTAssertionFailureHandler (in DVTFoundation)
   2  0x000000010198d0d7 +[DVTFilePath
 _filePathForParent:fileSystemRepresentation:length:allowCreation:] (in
 DVTFoundation)
   3  0x000000010198cde1 +[DVTFilePath _filePathForParent:pathString:] (in
 DVTFoundation)
   4  0x00000001019bf09e -[DVTSearchPath
 pathForFileWithRelativePathString:] (in DVTFoundation)
   5  0x0000000102926ce6 -[Xcode3SDK absolutePathToBinaryNamed:error:] (in
 DevToolsCore)
   6  0x0000000102057b07 -[Xcode3CommandLineBuildTool
 _printPathToBinaryAndExit] (in Xcode3Core)
   7  0x0000000102058f9e -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
   8  0x000000010197fdb6 (in xcodebuild)
   9  0x000000010197fc2c (in xcodebuild)
  10  0x0000000000000005
 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild fails with 6
 - Device not configured
 macos-lion:tmp catap$
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65632>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list