Build Information
Failed to build DRBGs, reference main (db1b3e
), with Swift 6.1 for Wasm on 13 Jun 2025 13:26:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sbooth/DRBGs.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/sbooth/DRBGs
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at db1b3e8 Add `wyrand` PRNG (#27)
Cloned https://github.com/sbooth/DRBGs.git
Revision (git rev-parse @):
db1b3e8ef86076ebe6b2f4a24d243118449767bd
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/sbooth/DRBGs.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/sbooth/DRBGs.git
https://github.com/sbooth/DRBGs.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "DRBGs",
"name" : "DRBGs",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "DRBGs",
"targets" : [
"DRBGs"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DRBGsTests",
"module_type" : "SwiftTarget",
"name" : "DRBGsTests",
"path" : "Tests/DRBGsTests",
"sources" : [
"DRBGsTests.swift"
],
"target_dependencies" : [
"DRBGs"
],
"type" : "test"
},
{
"c99name" : "DRBGs",
"module_type" : "SwiftTarget",
"name" : "DRBGs",
"path" : "Sources/DRBGs",
"product_memberships" : [
"DRBGs"
],
"sources" : [
"FixedWidthInteger+Rotation.swift",
"RandomNumberGenerator+unitDouble.swift",
"SplitMix64.swift",
"WYRand.swift",
"Xoroshiro128Plus.swift",
"Xoroshiro128PlusPlus.swift",
"Xoroshiro128StarStar.swift",
"Xoshiro256Plus.swift",
"Xoshiro256PlusPlus.swift",
"Xoshiro256StarStar.swift",
"Xoshiro512Plus.swift",
"Xoshiro512PlusPlus.swift",
"Xoshiro512StarStar.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling DRBGs Xoroshiro128StarStar.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:39:12: error: cannot find 'open' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:39:33: error: cannot find 'O_RDONLY' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:42:4: error: cannot find 'close' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
42 | close(fd)
| `- error: cannot find 'close' in scope
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:44:3: error: cannot find 'read' in scope
42 | close(fd)
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:42:12: error: cannot find 'open' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:42:33: error: cannot find 'O_RDONLY' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:45:4: error: cannot find 'close' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
45 | close(fd)
| `- error: cannot find 'close' in scope
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:47:3: error: cannot find 'read' in scope
45 | close(fd)
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
48 | }
49 |
[4/15] Compiling DRBGs Xoshiro256Plus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:39:12: error: cannot find 'open' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:39:33: error: cannot find 'O_RDONLY' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:42:4: error: cannot find 'close' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
42 | close(fd)
| `- error: cannot find 'close' in scope
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:44:3: error: cannot find 'read' in scope
42 | close(fd)
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:42:12: error: cannot find 'open' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:42:33: error: cannot find 'O_RDONLY' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:45:4: error: cannot find 'close' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
45 | close(fd)
| `- error: cannot find 'close' in scope
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:47:3: error: cannot find 'read' in scope
45 | close(fd)
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
48 | }
49 |
[5/16] Compiling DRBGs Xoshiro512PlusPlus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
[6/16] Compiling DRBGs Xoshiro512Plus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:42:12: error: cannot find 'open' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:42:33: error: cannot find 'O_RDONLY' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:45:4: error: cannot find 'close' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
45 | close(fd)
| `- error: cannot find 'close' in scope
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:47:3: error: cannot find 'read' in scope
45 | close(fd)
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
48 | }
49 |
[7/16] Compiling DRBGs Xoshiro256PlusPlus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
[8/16] Compiling DRBGs Xoshiro256StarStar.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
[9/16] Compiling DRBGs Xoshiro512StarStar.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/16] Compiling DRBGs FixedWidthInteger+Rotation.swift
[11/16] Compiling DRBGs RandomNumberGenerator+unitDouble.swift
[12/16] Emitting module DRBGs
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
[13/16] Compiling DRBGs SplitMix64.swift
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:22:12: error: cannot find 'open' in scope
20 | /// Initializes the generator with a random seed
21 | public init() {
22 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:22:33: error: cannot find 'O_RDONLY' in scope
20 | /// Initializes the generator with a random seed
21 | public init() {
22 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:25:4: error: cannot find 'close' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
25 | close(fd)
| `- error: cannot find 'close' in scope
26 | }
27 | read(fd, &state, MemoryLayout<UInt64>.size)
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:27:3: error: cannot find 'read' in scope
25 | close(fd)
26 | }
27 | read(fd, &state, MemoryLayout<UInt64>.size)
| `- error: cannot find 'read' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:27:12: error: cannot find 'open' in scope
25 | /// Initializes the generator with a random seed
26 | public init() {
27 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:27:33: error: cannot find 'O_RDONLY' in scope
25 | /// Initializes the generator with a random seed
26 | public init() {
27 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:30:4: error: cannot find 'close' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
30 | close(fd)
| `- error: cannot find 'close' in scope
31 | }
32 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:32:3: error: cannot find 'read' in scope
30 | close(fd)
31 | }
32 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
33 | }
34 |
[14/16] Compiling DRBGs WYRand.swift
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:22:12: error: cannot find 'open' in scope
20 | /// Initializes the generator with a random seed
21 | public init() {
22 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:22:33: error: cannot find 'O_RDONLY' in scope
20 | /// Initializes the generator with a random seed
21 | public init() {
22 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:25:4: error: cannot find 'close' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
25 | close(fd)
| `- error: cannot find 'close' in scope
26 | }
27 | read(fd, &state, MemoryLayout<UInt64>.size)
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:27:3: error: cannot find 'read' in scope
25 | close(fd)
26 | }
27 | read(fd, &state, MemoryLayout<UInt64>.size)
| `- error: cannot find 'read' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:27:12: error: cannot find 'open' in scope
25 | /// Initializes the generator with a random seed
26 | public init() {
27 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:27:33: error: cannot find 'O_RDONLY' in scope
25 | /// Initializes the generator with a random seed
26 | public init() {
27 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:30:4: error: cannot find 'close' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
30 | close(fd)
| `- error: cannot find 'close' in scope
31 | }
32 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:32:3: error: cannot find 'read' in scope
30 | close(fd)
31 | }
32 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
33 | }
34 |
[15/16] Compiling DRBGs Xoroshiro128Plus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:51:12: error: cannot find 'open' in scope
49 | /// Initializes the generator with a random seed
50 | public init() {
51 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:51:33: error: cannot find 'O_RDONLY' in scope
49 | /// Initializes the generator with a random seed
50 | public init() {
51 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:54:4: error: cannot find 'close' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
54 | close(fd)
| `- error: cannot find 'close' in scope
55 | }
56 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:56:3: error: cannot find 'read' in scope
54 | close(fd)
55 | }
56 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
57 | }
58 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:39:12: error: cannot find 'open' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:39:33: error: cannot find 'O_RDONLY' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:42:4: error: cannot find 'close' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
42 | close(fd)
| `- error: cannot find 'close' in scope
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:44:3: error: cannot find 'read' in scope
42 | close(fd)
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
45 | }
46 |
[16/16] Compiling DRBGs Xoroshiro128PlusPlus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:51:12: error: cannot find 'open' in scope
49 | /// Initializes the generator with a random seed
50 | public init() {
51 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:51:33: error: cannot find 'O_RDONLY' in scope
49 | /// Initializes the generator with a random seed
50 | public init() {
51 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:54:4: error: cannot find 'close' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
54 | close(fd)
| `- error: cannot find 'close' in scope
55 | }
56 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:56:3: error: cannot find 'read' in scope
54 | close(fd)
55 | }
56 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
57 | }
58 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:39:12: error: cannot find 'open' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:39:33: error: cannot find 'O_RDONLY' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:42:4: error: cannot find 'close' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
42 | close(fd)
| `- error: cannot find 'close' in scope
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:44:3: error: cannot find 'read' in scope
42 | close(fd)
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
45 | }
46 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling DRBGs Xoroshiro128StarStar.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:39:12: error: cannot find 'open' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:39:33: error: cannot find 'O_RDONLY' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:42:4: error: cannot find 'close' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
42 | close(fd)
| `- error: cannot find 'close' in scope
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:44:3: error: cannot find 'read' in scope
42 | close(fd)
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:42:12: error: cannot find 'open' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:42:33: error: cannot find 'O_RDONLY' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:45:4: error: cannot find 'close' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
45 | close(fd)
| `- error: cannot find 'close' in scope
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:47:3: error: cannot find 'read' in scope
45 | close(fd)
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
48 | }
49 |
[3/14] Compiling DRBGs Xoshiro256Plus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:39:12: error: cannot find 'open' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:39:33: error: cannot find 'O_RDONLY' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:42:4: error: cannot find 'close' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
42 | close(fd)
| `- error: cannot find 'close' in scope
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:44:3: error: cannot find 'read' in scope
42 | close(fd)
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
45 | }
46 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:42:12: error: cannot find 'open' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:42:33: error: cannot find 'O_RDONLY' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:45:4: error: cannot find 'close' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
45 | close(fd)
| `- error: cannot find 'close' in scope
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:47:3: error: cannot find 'read' in scope
45 | close(fd)
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
48 | }
49 |
[4/15] Compiling DRBGs Xoshiro512Plus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:42:12: error: cannot find 'open' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:42:33: error: cannot find 'O_RDONLY' in scope
40 | /// Initializes the generator with a random seed
41 | public init() {
42 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:45:4: error: cannot find 'close' in scope
43 | precondition(fd >= 0, "Unable to open /dev/urandom")
44 | defer {
45 | close(fd)
| `- error: cannot find 'close' in scope
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:47:3: error: cannot find 'read' in scope
45 | close(fd)
46 | }
47 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
48 | }
49 |
[5/15] Compiling DRBGs Xoshiro512PlusPlus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
[6/15] Compiling DRBGs Xoshiro256PlusPlus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
[7/15] Compiling DRBGs Xoshiro256StarStar.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
[8/15] Compiling DRBGs Xoroshiro128Plus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:51:12: error: cannot find 'open' in scope
49 | /// Initializes the generator with a random seed
50 | public init() {
51 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:51:33: error: cannot find 'O_RDONLY' in scope
49 | /// Initializes the generator with a random seed
50 | public init() {
51 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:54:4: error: cannot find 'close' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
54 | close(fd)
| `- error: cannot find 'close' in scope
55 | }
56 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:56:3: error: cannot find 'read' in scope
54 | close(fd)
55 | }
56 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
57 | }
58 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:39:12: error: cannot find 'open' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:39:33: error: cannot find 'O_RDONLY' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:42:4: error: cannot find 'close' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
42 | close(fd)
| `- error: cannot find 'close' in scope
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:44:3: error: cannot find 'read' in scope
42 | close(fd)
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
45 | }
46 |
[9/15] Compiling DRBGs Xoroshiro128PlusPlus.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:51:12: error: cannot find 'open' in scope
49 | /// Initializes the generator with a random seed
50 | public init() {
51 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:51:33: error: cannot find 'O_RDONLY' in scope
49 | /// Initializes the generator with a random seed
50 | public init() {
51 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:54:4: error: cannot find 'close' in scope
52 | precondition(fd >= 0, "Unable to open /dev/urandom")
53 | defer {
54 | close(fd)
| `- error: cannot find 'close' in scope
55 | }
56 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:56:3: error: cannot find 'read' in scope
54 | close(fd)
55 | }
56 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
57 | }
58 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:39:12: error: cannot find 'open' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:39:33: error: cannot find 'O_RDONLY' in scope
37 | /// Initializes the generator with a random seed
38 | public init() {
39 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:42:4: error: cannot find 'close' in scope
40 | precondition(fd >= 0, "Unable to open /dev/urandom")
41 | defer {
42 | close(fd)
| `- error: cannot find 'close' in scope
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:44:3: error: cannot find 'read' in scope
42 | close(fd)
43 | }
44 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
45 | }
46 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/15] Compiling DRBGs FixedWidthInteger+Rotation.swift
[11/15] Compiling DRBGs RandomNumberGenerator+unitDouble.swift
[12/15] Emitting module DRBGs
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoroshiro128StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro256StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512Plus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512PlusPlus.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
[13/15] Compiling DRBGs SplitMix64.swift
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:22:12: error: cannot find 'open' in scope
20 | /// Initializes the generator with a random seed
21 | public init() {
22 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:22:33: error: cannot find 'O_RDONLY' in scope
20 | /// Initializes the generator with a random seed
21 | public init() {
22 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:25:4: error: cannot find 'close' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
25 | close(fd)
| `- error: cannot find 'close' in scope
26 | }
27 | read(fd, &state, MemoryLayout<UInt64>.size)
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:27:3: error: cannot find 'read' in scope
25 | close(fd)
26 | }
27 | read(fd, &state, MemoryLayout<UInt64>.size)
| `- error: cannot find 'read' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:27:12: error: cannot find 'open' in scope
25 | /// Initializes the generator with a random seed
26 | public init() {
27 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:27:33: error: cannot find 'O_RDONLY' in scope
25 | /// Initializes the generator with a random seed
26 | public init() {
27 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:30:4: error: cannot find 'close' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
30 | close(fd)
| `- error: cannot find 'close' in scope
31 | }
32 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:32:3: error: cannot find 'read' in scope
30 | close(fd)
31 | }
32 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
33 | }
34 |
[14/15] Compiling DRBGs WYRand.swift
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:22:12: error: cannot find 'open' in scope
20 | /// Initializes the generator with a random seed
21 | public init() {
22 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:22:33: error: cannot find 'O_RDONLY' in scope
20 | /// Initializes the generator with a random seed
21 | public init() {
22 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:25:4: error: cannot find 'close' in scope
23 | precondition(fd >= 0, "Unable to open /dev/urandom")
24 | defer {
25 | close(fd)
| `- error: cannot find 'close' in scope
26 | }
27 | read(fd, &state, MemoryLayout<UInt64>.size)
/host/spi-builder-workspace/Sources/DRBGs/SplitMix64.swift:27:3: error: cannot find 'read' in scope
25 | close(fd)
26 | }
27 | read(fd, &state, MemoryLayout<UInt64>.size)
| `- error: cannot find 'read' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:27:12: error: cannot find 'open' in scope
25 | /// Initializes the generator with a random seed
26 | public init() {
27 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:27:33: error: cannot find 'O_RDONLY' in scope
25 | /// Initializes the generator with a random seed
26 | public init() {
27 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:30:4: error: cannot find 'close' in scope
28 | precondition(fd >= 0, "Unable to open /dev/urandom")
29 | defer {
30 | close(fd)
| `- error: cannot find 'close' in scope
31 | }
32 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/WYRand.swift:32:3: error: cannot find 'read' in scope
30 | close(fd)
31 | }
32 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
33 | }
34 |
[15/15] Compiling DRBGs Xoshiro512StarStar.swift
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:12:8: error: Unsupported Platform
10 | import Glibc
11 | #else
12 | #error("Unsupported Platform")
| `- error: Unsupported Platform
13 | #endif
14 |
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:38:12: error: cannot find 'open' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'open' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:38:33: error: cannot find 'O_RDONLY' in scope
36 | /// Initializes the generator with a random seed
37 | public init() {
38 | let fd = open("/dev/urandom", O_RDONLY)
| `- error: cannot find 'O_RDONLY' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:41:4: error: cannot find 'close' in scope
39 | precondition(fd >= 0, "Unable to open /dev/urandom")
40 | defer {
41 | close(fd)
| `- error: cannot find 'close' in scope
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
/host/spi-builder-workspace/Sources/DRBGs/Xoshiro512StarStar.swift:43:3: error: cannot find 'read' in scope
41 | close(fd)
42 | }
43 | read(fd, &state, MemoryLayout<StateType>.size)
| `- error: cannot find 'read' in scope
44 | }
45 |
BUILD FAILURE 6.1 wasm