swift-http-types icon indicating copy to clipboard operation
swift-http-types copied to clipboard

Build issue on nightly-6.0-amazonlinux2

Open AndrewBarba opened this issue 1 year ago • 10 comments

I'm currently experiencing build issues on nightly-6.0-amazonlinux2. Appears related to the new Foundation on nightly:

/workspace/.build/checkouts/swift-http-types/Sources/HTTPTypesFoundation/HTTPRequest+URL.swift:15:8: error: no such module 'CoreFoundation'
 13 | //===----------------------------------------------------------------------===//
 14 | 
 15 | import CoreFoundation
    |        `- error: no such module 'CoreFoundation'
 16 | import Foundation
 17 | import HTTPTypes

Edit: Full command used to build

/usr/local/bin/docker run \
  --platform linux/arm64 \
  --rm \
  -v ./:/workspace \
  -w /workspace \
  swiftlang/swift:nightly-6.0-amazonlinux2 bash -cl swift build -c release -Xswiftc -Osize --static-swift-stdlib

AndrewBarba avatar Jul 30 '24 15:07 AndrewBarba