Build Information
Failed to build PeripheryKit, reference main (a02676
), with Swift 5.9 for tvOS using Xcode 15.2 on 2 Jul 2024 09:37:16 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$workDir/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $workDir/.derivedData build -scheme PeripheryKit-Package -destination generic/platform=tvOS
Build Log
========================================
RunAll
========================================
Builder version: 4.44.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CmST0us/PeripheryKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CmST0us/PeripheryKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a02676d package: remote sysroot copy plugin package: add static and shared product target Cperiphery: bump to 1.0.0 version
Cloned https://github.com/CmST0us/PeripheryKit.git
Revision (git rev-parse @):
a02676dd096523ec792fab3574ae490b421f0364
SUCCESS checkout https://github.com/CmST0us/PeripheryKit.git at main
========================================
Build
========================================
Selected platform: tvOS
Swift version: 5.9
Building package at path: $workDir
https://github.com/CmST0us/PeripheryKit.git
Command line invocation:
/Applications/Xcode-15.2.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -resolvePackageDependencies
User defaults from command line:
IDEClonedSourcePackagesDirPathOverride = /Users/admin/builder/spi-builder-workspace/.dependencies
IDEPackageSupportUseBuiltinSCM = YES
Resolve Package Graph
Resolve Package Graph
Resolved source packages:
PeripheryKit: /Users/admin/builder/spi-builder-workspace
resolved source packages: PeripheryKit
{
"dependencies" : [
],
"manifest_display_name" : "PeripheryKit",
"name" : "PeripheryKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "PeripheryKit_static",
"targets" : [
"PeripheryKit"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "PeripheryKit_shared",
"targets" : [
"PeripheryKit"
],
"type" : {
"library" : [
"dynamic"
]
}
},
{
"name" : "pio",
"targets" : [
"pio"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "pio",
"module_type" : "SwiftTarget",
"name" : "pio",
"path" : "Sources/pio",
"product_memberships" : [
"pio"
],
"sources" : [
"pio.swift"
],
"target_dependencies" : [
"PeripheryKit"
],
"type" : "executable"
},
{
"c99name" : "PeripheryKitTests",
"module_type" : "SwiftTarget",
"name" : "PeripheryKitTests",
"path" : "Tests/PeripheryKitTests",
"sources" : [
"PeripheryKitTests.swift"
],
"target_dependencies" : [
"PeripheryKit"
],
"type" : "test"
},
{
"c99name" : "PeripheryKit",
"module_type" : "SwiftTarget",
"name" : "PeripheryKit",
"path" : "Sources/PeripheryKit",
"product_memberships" : [
"PeripheryKit_static",
"PeripheryKit_shared",
"pio"
],
"sources" : [
"Button.swift",
"Buzzer.swift",
"Delay.swift",
"GPIO.swift",
"GPIOEventDispatcher.swift",
"I2C.swift",
"LED.swift",
"PWM.swift",
"Utils/Data+Int.swift",
"Utils/Int+Data.swift"
],
"target_dependencies" : [
"Cperiphery"
],
"type" : "library"
},
{
"c99name" : "DownloadCPeriphery",
"module_type" : "PluginTarget",
"name" : "DownloadCPeriphery",
"path" : "Plugins/DownloadCPeriphery",
"plugin_capability" : {
"intent" : {
"description" : "Download c-periphery",
"type" : "custom",
"verb" : "download-c-periphery"
},
"permissions" : [
{
"network_scope" : {
"all" : {
"ports" : [
443
]
}
},
"reason" : "Download packages",
"type" : "allowNetworkConnections"
},
{
"network_scope" : {
"none" : {
}
},
"reason" : "Write packages",
"type" : "writeToPackageDirectory"
}
],
"type" : "command"
},
"sources" : [
"DownloadCPeriphery.swift"
],
"type" : "plugin"
},
{
"c99name" : "Cperiphery",
"module_type" : "ClangTarget",
"name" : "Cperiphery",
"path" : "Sources/Cperiphery",
"product_memberships" : [
"PeripheryKit_static",
"PeripheryKit_shared",
"pio"
],
"sources" : [
"gpio.c",
"gpio_cdev_v1.c",
"gpio_cdev_v2.c",
"gpio_sysfs.c",
"i2c.c",
"led.c",
"mmio.c",
"pwm.c",
"serial.c",
"shims.c",
"spi.c",
"version.c"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
{
"workspace" : {
"name" : "spi-builder-workspace",
"schemes" : [
"PeripheryKit_shared",
"PeripheryKit_static",
"PeripheryKit-Package",
"pio"
]
}
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun xcodebuild -IDEClonedSourcePackagesDirPathOverride=$workDir/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath $workDir/.derivedData build -scheme PeripheryKit-Package -destination generic/platform=tvOS
Command line invocation:
/Applications/Xcode-15.2.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme PeripheryKit-Package -destination generic/platform=tvOS
User defaults from command line:
IDEClonedSourcePackagesDirPathOverride = /Users/admin/builder/spi-builder-workspace/.dependencies
IDEDerivedDataPathOverride = /Users/admin/builder/spi-builder-workspace/.derivedData
IDEPackageSupportUseBuiltinSCM = YES
Resolve Package Graph
Resolved source packages:
PeripheryKit: /Users/admin/builder/spi-builder-workspace
Prepare packages
Compile plug-in “DownloadCPeriphery” in package “spi-builder-workspace”
[debug]: Compiling plugin to executable at /Users/admin/builder/spi-builder-workspace/.dependencies/plugins/DownloadCPeriphery
[debug]: Using compiler /Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
[debug]: Plugin compilation output directory '/Users/admin/builder/spi-builder-workspace/.dependencies/plugins'
[debug]: Computed hash of plugin compilation inputs: d45b10a161a969056ea38cc848d04b160b55b8dcbd8c242a16a59a0d2f8c00e9
Process build tool plug-in results
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (6 targets)
Target 'PeripheryKitTests' in project 'PeripheryKit'
➜ Explicit dependency on target 'Cperiphery' in project 'PeripheryKit'
➜ Explicit dependency on target 'PeripheryKit' in project 'PeripheryKit'
Target 'pio' in project 'PeripheryKit'
➜ Explicit dependency on target 'Cperiphery' in project 'PeripheryKit'
➜ Explicit dependency on target 'PeripheryKit' in project 'PeripheryKit'
Target 'PeripheryKit_static' in project 'PeripheryKit'
➜ Explicit dependency on target 'PeripheryKit' in project 'PeripheryKit'
➜ Explicit dependency on target 'Cperiphery' in project 'PeripheryKit'
Target 'PeripheryKit_shared' in project 'PeripheryKit'
➜ Explicit dependency on target 'PeripheryKit' in project 'PeripheryKit'
➜ Explicit dependency on target 'Cperiphery' in project 'PeripheryKit'
Target 'PeripheryKit' in project 'PeripheryKit'
➜ Explicit dependency on target 'Cperiphery' in project 'PeripheryKit'
Target 'Cperiphery' in project 'PeripheryKit' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
Build description signature: 3d01992fbb4546591c129e6378694f7b
Build description path: /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/XCBuildData/3d01992fbb4546591c129e6378694f7b.xcbuilddata
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products
ClangStatCache /Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-appletvos
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-appletvos
CreateBuildDirectory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
builtin-create-build-directory /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks
MkDir /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PeripheryKitTests.xctest (in target 'PeripheryKitTests' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/bin/mkdir -p /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PeripheryKitTests.xctest
MkDir /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks/PeripheryKit_shared.framework (in target 'PeripheryKit_shared' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/bin/mkdir -p /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks/PeripheryKit_shared.framework
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Cperiphery.modulemap (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Cperiphery.modulemap
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos/Cperiphery.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Cperiphery.modulemap (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Cperiphery.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/Cperiphery.LinkFileList (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/Cperiphery.LinkFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/PeripheryKit.modulemap (in target 'PeripheryKit' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/PeripheryKit.modulemap
Copy /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos/PeripheryKit.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/PeripheryKit.modulemap (in target 'PeripheryKit' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/PeripheryKit.modulemap /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit_const_extract_protocols.json (in target 'PeripheryKit' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit_const_extract_protocols.json
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit.SwiftFileList (in target 'PeripheryKit' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit.SwiftFileList
WriteAuxiliaryFile /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit-OutputFileMap.json (in target 'PeripheryKit' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
write-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit-OutputFileMap.json
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/version.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/version.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/version.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/version.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/version.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/version.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/version.o
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/shims.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/shims.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/shims.c:22:12: error: call to undeclared function 'clock_nanosleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
while (clock_nanosleep(CLOCK_MONOTONIC, 0, &req, &rem) == -1) {
^
1 error generated.
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/spi.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/spi.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.o
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:89:29: error: use of undeclared identifier 'B460800'
case 460800: return B460800;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:90:29: error: use of undeclared identifier 'B500000'
case 500000: return B500000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:91:29: error: use of undeclared identifier 'B576000'
case 576000: return B576000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:92:29: error: use of undeclared identifier 'B921600'
case 921600: return B921600;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:93:30: error: use of undeclared identifier 'B1000000'
case 1000000: return B1000000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:94:30: error: use of undeclared identifier 'B1152000'
case 1152000: return B1152000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:95:30: error: use of undeclared identifier 'B1500000'
case 1500000: return B1500000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:96:30: error: use of undeclared identifier 'B2000000'
case 2000000: return B2000000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:134:14: error: use of undeclared identifier 'B460800'
case B460800: return 460800;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:135:14: error: use of undeclared identifier 'B500000'
case B500000: return 500000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:136:14: error: use of undeclared identifier 'B576000'
case B576000: return 576000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:137:14: error: use of undeclared identifier 'B921600'
case B921600: return 921600;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:138:14: error: use of undeclared identifier 'B1000000'
case B1000000: return 1000000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:139:14: error: use of undeclared identifier 'B1152000'
case B1152000: return 1152000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:140:14: error: use of undeclared identifier 'B1500000'
case B1500000: return 1500000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:141:14: error: use of undeclared identifier 'B2000000'
case B2000000: return 2000000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:270:20: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
return ret;
~~~~~~ ^~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:279:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
return bytes_read;
~~~~~~ ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:288:12: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
return ret;
~~~~~~ ^~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:300:27: error: use of undeclared identifier 'TIOCINQ'
if (ioctl(serial->fd, TIOCINQ, count) < 0)
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:348:42: warning: implicit conversion loses integer precision: 'speed_t' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
*baudrate = _serial_bits_to_baudrate(cfgetospeed(&termios_settings));
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/pwm.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/pwm.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/pwm.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/pwm.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/pwm.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/pwm.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/pwm.o
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/mmio.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/mmio.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/mmio.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/mmio.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/mmio.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/mmio.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/mmio.o
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/led.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/led.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/led.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/led.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/led.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c:114:16: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if ((ret = read(fd, buf, sizeof(buf))) < 0) {
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c:126:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32]
*brightness = strtoul(buf, NULL, 10);
~ ^~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c:141:16: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if ((ret = read(fd, buf, sizeof(buf))) < 0) {
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c:153:27: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32]
led->max_brightness = strtoul(buf, NULL, 10);
~ ^~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/i2c.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/i2c.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/i2c.c:20:10: fatal error: 'linux/i2c.h' file not found
#include <linux/i2c.h>
^~~~~~~~~~~~~
1 error generated.
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_sysfs.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_sysfs.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_sysfs.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_sysfs.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_sysfs.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_sysfs.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_sysfs.o
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v2.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v2.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v2.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v2.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v2.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v2.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v2.o
SwiftDriver PeripheryKit normal arm64 com.apple.xcode.tools.swift.compiler (in target 'PeripheryKit' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-SwiftDriver -- /Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name PeripheryKit -Onone -enforce-exclusivity\=checked @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -Xcc -fmodule-map-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos/Cperiphery.modulemap -DXcode -sdk /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -target arm64-apple-tvos12.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -I /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit.swiftmodule -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xfrontend -package-name -Xfrontend spi_builder_workspace -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace -experimental-emit-module-separately -disable-cmo
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v1.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v1.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v1.c:21:10: fatal error: 'linux/gpio.h' file not found
#include <linux/gpio.h>
^~~~~~~~~~~~~~
1 error generated.
SwiftEmitModule normal arm64 Emitting\ module\ for\ PeripheryKit (in target 'PeripheryKit' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-swiftTaskExecution -- /Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/PeripheryKit/Button.swift /Users/admin/builder/spi-builder-workspace/Sources/PeripheryKit/Buzzer.swift /Users/admin/builder/spi-builder-workspace/Sources/PeripheryKit/Delay.swift /Users/admin/builder/spi-builder-workspace/Sources/PeripheryKit/GPIO.swift /Users/admin/builder/spi-builder-workspace/Sources/PeripheryKit/GPIOEventDispatcher.swift /Users/admin/builder/spi-builder-workspace/Sources/PeripheryKit/I2C.swift /Users/admin/builder/spi-builder-workspace/Sources/PeripheryKit/LED.swift /Users/admin/builder/spi-builder-workspace/Sources/PeripheryKit/PWM.swift /Users/admin/builder/spi-builder-workspace/Sources/PeripheryKit/Utils/Data+Int.swift /Users/admin/builder/spi-builder-workspace/Sources/PeripheryKit/Utils/Int+Data.swift -target arm64-apple-tvos12.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -I /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -no-color-diagnostics -enable-testing -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -profile-generate -profile-coverage-mapping -swift-version 5 -enforce-exclusivity\=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -package-name spi_builder_workspace -const-gather-protocols-file /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit_const_extract_protocols.json -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/admin/builder/spi-builder-workspace -resource-dir /Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos/Cperiphery.modulemap -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/swift-overrides.hmap -Xcc -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -module-name PeripheryKit -disable-clang-spi -target-sdk-version 17.2 -target-sdk-name appletvos17.2 -external-plugin-path /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/usr/lib/swift/host/plugins\#/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/usr/local/lib/swift/host/plugins\#/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib/swift/host/plugins\#/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/local/lib/swift/host/plugins\#/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit.swiftsourceinfo -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit-Swift.h -serialize-diagnostics-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit-master-emit-module.dia -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit-master-emit-module.d -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit.abi.json
Command SwiftEmitModule failed with a nonzero exit code
Resolve Package Graph
** BUILD FAILED **
The following build commands failed:
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/i2c.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v1.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
SwiftEmitModule normal arm64 Emitting\ module\ for\ PeripheryKit (in target 'PeripheryKit' from project 'PeripheryKit')
(3 failures)
Command line invocation:
/Applications/Xcode-15.2.0.app/Contents/Developer/usr/bin/xcodebuild -IDEClonedSourcePackagesDirPathOverride=/Users/admin/builder/spi-builder-workspace/.dependencies -skipMacroValidation -skipPackagePluginValidation -derivedDataPath /Users/admin/builder/spi-builder-workspace/.derivedData build -scheme PeripheryKit-Package -destination generic/platform=tvOS
User defaults from command line:
IDEClonedSourcePackagesDirPathOverride = /Users/admin/builder/spi-builder-workspace/.dependencies
IDEDerivedDataPathOverride = /Users/admin/builder/spi-builder-workspace/.derivedData
IDEPackageSupportUseBuiltinSCM = YES
Resolve Package Graph
Resolved source packages:
PeripheryKit: /Users/admin/builder/spi-builder-workspace
Prepare packages
Compile plug-in “DownloadCPeriphery” in package “spi-builder-workspace”
[debug]: Compiling plugin to executable at /Users/admin/builder/spi-builder-workspace/.dependencies/plugins/DownloadCPeriphery
[debug]: Using compiler /Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
[debug]: Plugin compilation output directory '/Users/admin/builder/spi-builder-workspace/.dependencies/plugins'
[debug]: Computed hash of plugin compilation inputs: d45b10a161a969056ea38cc848d04b160b55b8dcbd8c242a16a59a0d2f8c00e9
Process build tool plug-in results
ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (6 targets)
Target 'PeripheryKitTests' in project 'PeripheryKit'
➜ Explicit dependency on target 'Cperiphery' in project 'PeripheryKit'
➜ Explicit dependency on target 'PeripheryKit' in project 'PeripheryKit'
Target 'pio' in project 'PeripheryKit'
➜ Explicit dependency on target 'Cperiphery' in project 'PeripheryKit'
➜ Explicit dependency on target 'PeripheryKit' in project 'PeripheryKit'
Target 'PeripheryKit_static' in project 'PeripheryKit'
➜ Explicit dependency on target 'PeripheryKit' in project 'PeripheryKit'
➜ Explicit dependency on target 'Cperiphery' in project 'PeripheryKit'
Target 'PeripheryKit_shared' in project 'PeripheryKit'
➜ Explicit dependency on target 'PeripheryKit' in project 'PeripheryKit'
➜ Explicit dependency on target 'Cperiphery' in project 'PeripheryKit'
Target 'PeripheryKit' in project 'PeripheryKit'
➜ Explicit dependency on target 'Cperiphery' in project 'PeripheryKit'
Target 'Cperiphery' in project 'PeripheryKit' (no dependencies)
GatherProvisioningInputs
CreateBuildDescription
ClangStatCache /Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache
cd /Users/admin/builder/spi-builder-workspace/.swiftpm/xcode
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -o /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/mmio.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/mmio.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/mmio.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/mmio.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/mmio.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/mmio.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/mmio.o
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/spi.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/spi.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/spi.c:19:10: fatal error: 'linux/ioctl.h' file not found
#include <linux/ioctl.h>
^~~~~~~~~~~~~~~
1 error generated.
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/pwm.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/pwm.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/pwm.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/pwm.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/pwm.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/pwm.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/pwm.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/pwm.c:194:16: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if ((ret = read(fd, buf, len)) < 0) {
~ ^~~~~~~~~~~~~~~~~~
1 warning generated.
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/shims.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/shims.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/shims.c:22:12: error: call to undeclared function 'clock_nanosleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
while (clock_nanosleep(CLOCK_MONOTONIC, 0, &req, &rem) == -1) {
^
1 error generated.
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:89:29: error: use of undeclared identifier 'B460800'
case 460800: return B460800;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:90:29: error: use of undeclared identifier 'B500000'
case 500000: return B500000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:91:29: error: use of undeclared identifier 'B576000'
case 576000: return B576000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:92:29: error: use of undeclared identifier 'B921600'
case 921600: return B921600;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:93:30: error: use of undeclared identifier 'B1000000'
case 1000000: return B1000000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:94:30: error: use of undeclared identifier 'B1152000'
case 1152000: return B1152000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:95:30: error: use of undeclared identifier 'B1500000'
case 1500000: return B1500000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:96:30: error: use of undeclared identifier 'B2000000'
case 2000000: return B2000000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:134:14: error: use of undeclared identifier 'B460800'
case B460800: return 460800;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:135:14: error: use of undeclared identifier 'B500000'
case B500000: return 500000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:136:14: error: use of undeclared identifier 'B576000'
case B576000: return 576000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:137:14: error: use of undeclared identifier 'B921600'
case B921600: return 921600;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:138:14: error: use of undeclared identifier 'B1000000'
case B1000000: return 1000000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:139:14: error: use of undeclared identifier 'B1152000'
case B1152000: return 1152000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:140:14: error: use of undeclared identifier 'B1500000'
case B1500000: return 1500000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:141:14: error: use of undeclared identifier 'B2000000'
case B2000000: return 2000000;
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:270:20: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
return ret;
~~~~~~ ^~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:279:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
return bytes_read;
~~~~~~ ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:288:12: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
return ret;
~~~~~~ ^~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:300:27: error: use of undeclared identifier 'TIOCINQ'
if (ioctl(serial->fd, TIOCINQ, count) < 0)
^
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:348:42: warning: implicit conversion loses integer precision: 'speed_t' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
*baudrate = _serial_bits_to_baudrate(cfgetospeed(&termios_settings));
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c:622:42: warning: implicit conversion loses integer precision: 'speed_t' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
baudrate = _serial_bits_to_baudrate(cfgetospeed(&termios_settings));
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings and 17 errors generated.
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/led.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/led.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/led.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/led.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/led.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c:114:16: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if ((ret = read(fd, buf, sizeof(buf))) < 0) {
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c:126:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32]
*brightness = strtoul(buf, NULL, 10);
~ ^~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c:141:16: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if ((ret = read(fd, buf, sizeof(buf))) < 0) {
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/led.c:153:27: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32]
led->max_brightness = strtoul(buf, NULL, 10);
~ ^~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/i2c.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/i2c.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/i2c.c:20:10: fatal error: 'linux/i2c.h' file not found
#include <linux/i2c.h>
^~~~~~~~~~~~~
1 error generated.
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_sysfs.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_sysfs.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_sysfs.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_sysfs.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_sysfs.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_sysfs.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_sysfs.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_sysfs.c:177:16: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if ((ret = read(fd, buf, sizeof(buf))) < 0) {
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_sysfs.c:243:16: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if ((ret = read(fd, buf, sizeof(buf))) < 0) {
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_sysfs.c:322:16: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if ((ret = read(fd, buf, sizeof(buf))) < 0) {
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_sysfs.c:383:16: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if ((ret = readlink(gpio_path, gpiochip_path, sizeof(gpiochip_path))) < 0)
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_sysfs.c:417:16: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if ((ret = read(fd, str, len)) < 0) {
~ ^~~~~~~~~~~~~~~~~~
5 warnings generated.
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v2.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v2.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v2.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v2.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v2.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v2.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v2.o
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v1.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
/Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -ivfsstatcache /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -target arm64-apple-tvos12.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules -gmodules -fmodules-cache-path\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=Cperiphery -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DSWIFT_PACKAGE -DDEBUG\=1 -DPERIPHERY_GPIO_CDEV_SUPPORT\=1 -isysroot /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -fprofile-instr-generate -fcoverage-mapping -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources-normal/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources/arm64 -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/DerivedSources -F/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F/Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -iframework /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -DXcode -MMD -MT dependencies -MF /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.d --serialize-diagnostics /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.dia -c /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v1.c -o /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.o -index-unit-output-path /PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.o
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v1.c:21:10: fatal error: 'linux/gpio.h' file not found
#include <linux/gpio.h>
^~~~~~~~~~~~~~
1 error generated.
SwiftDriver PeripheryKit normal arm64 com.apple.xcode.tools.swift.compiler (in target 'PeripheryKit' from project 'PeripheryKit')
cd /Users/admin/builder/spi-builder-workspace
builtin-SwiftDriver -- /Applications/Xcode-15.2.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -module-name PeripheryKit -Onone -enforce-exclusivity\=checked @/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -Xcc -fmodule-map-file\=/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/GeneratedModuleMaps-appletvos/Cperiphery.modulemap -DXcode -sdk /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk -target arm64-apple-tvos12.0 -g -module-cache-path /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/admin/builder/spi-builder-workspace/.derivedData/Index.noindex/DataStore -swift-version 5 -I /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -I /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/lib -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/PackageFrameworks -F /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos -F /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/Library/Frameworks -F /Applications/Xcode-15.2.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS17.2.sdk/Developer/Library/Frameworks -c -j10 -enable-batch-mode -incremental -Xcc -ivfsstatcache -Xcc /Users/admin/builder/spi-builder-workspace/.derivedData/SDKStatCaches.noindex/appletvos17.2-21K354-d04792babcd4d6c925192122b83e5b58.sdkstatcache -output-file-map /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit-OutputFileMap.json -use-frontend-parseable-output -save-temps -no-color-diagnostics -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit.swiftmodule -validate-clang-modules-once -clang-build-session-file /Users/admin/builder/spi-builder-workspace/.derivedData/ModuleCache.noindex/Session.modulevalidation -Xfrontend -package-name -Xfrontend spi_builder_workspace -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/swift-overrides.hmap -emit-const-values -Xfrontend -const-gather-protocols-file -Xfrontend /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit_const_extract_protocols.json -Xcc -I/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Products/Debug-appletvos/include -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/DerivedSources-normal/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/DerivedSources/arm64 -Xcc -I/Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/PeripheryKit.build/Objects-normal/arm64/PeripheryKit-Swift.h -working-directory /Users/admin/builder/spi-builder-workspace -experimental-emit-module-separately -disable-cmo
** BUILD FAILED **
The following build commands failed:
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/spi.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/spi.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/shims.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/shims.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/serial.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/serial.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/i2c.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/i2c.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
CompileC /Users/admin/builder/spi-builder-workspace/.derivedData/Build/Intermediates.noindex/PeripheryKit.build/Debug-appletvos/Cperiphery.build/Objects-normal/arm64/gpio_cdev_v1.o /Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/gpio_cdev_v1.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Cperiphery' from project 'PeripheryKit')
(5 failures)
BUILD FAILURE 5.9 tvOS