Uploaded image for project: 'Swift'
  1. Swift
  2. SR-11880

swift/utils/build-script fails building with --xcode parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Project Infrastructure
    • Labels:
      None
    • Environment:

      macOS 10.15.1 (19B88)

      Xcode 11.2 Build version 11B52

      Description

      ./swift/utils/build-script --xcode fails on building the compiler-rt with the following message:

      === BUILD TARGET clang_rt.builtins_x86_64h_osx OF PROJECT LLVM WITH CONFIGURATION RelWithDebInfo ===
      
      Check dependencies
      No architectures to compile for (ARCHS=x86_64h, VALID_ARCHS=i386 x86_64).
      
      ** BUILD FAILED **
      
      
      The following build commands failed:
      	Check dependencies
      

      The cause of this issue is that the build configuration for Xcode doesn't skip building compiler-rt. It was introduced in the following line: https://github.com/apple/swift/commit/ac4ac89ecea2c943ab2e6a787609a6b22301eba5#diff-65b44eb6cb88af2161d8e1176231aad0R1680 merged in this PR: https://github.com/apple/swift/pull/28341

      Also, there is a topic on the Swift forums https://forums.swift.org/t/error-running-build-script-no-architectures-to-compile-for/31050  with a discussion about this issue.

        Attachments

          Activity

            People

            Assignee:
            ixrevo Alexander Sokol
            Reporter:
            ixrevo Alexander Sokol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: