Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile SwiftFoundation/Thread.swift. #34

Closed
weakish opened this issue Jul 5, 2016 · 1 comment
Closed

Failed to compile SwiftFoundation/Thread.swift. #34

weakish opened this issue Jul 5, 2016 · 1 comment

Comments

@weakish
Copy link

weakish commented Jul 5, 2016

On 713b3ce:

First, not found CUUID.

SwiftFoundation/Sources/SwiftFoundation/UUID.swift:14:12: error: no such module 'CUUID'
    import CUUID
           ^

Edited Package.swift fixing the above error:

--- a/Package.swift
+++ b/Package.swift
@@ -11,7 +11,8 @@ let package = Package(
     ],
     dependencies: [
         .Package(url: "https://github.com/PureSwift/CStatfs.git", majorVersion: 1),
-        .Package(url: "https://github.com/PureSwift/CJSONC.git", majorVersion: 1)
+        .Package(url: "https://github.com/PureSwift/CJSONC.git", majorVersion: 1),
+        .Package(url: "https://github.com/PureSwift/CUUID.git", majorVersion: 1)
     ],
     exclude: ["Xcode", "Carthage"]
 )

Then failed to compile SwiftFoundation/Thread.swift:

``
src/SwiftFoundation/Sources/SwiftFoundation/Thread.swift:30:54: error: va$
ue of type 'Unmanaged<Thread.Closure>' has no member 'toOpaque'
let pointer = UnsafeMutablePointer(holder.toOpaque())
^~~~~~ ~~~~~~~~
src/SwiftFoundation/Sources/SwiftFoundation/Thread.swift:89:65: error: ca$
not convert value of type 'UnsafeMutablePointer' (aka 'UnsafeMutablePoint$
r<()>') to expected argument type 'OpaquePointer'
let unmanaged = Unmanaged<Thread.Closure>.fromOpaque(arg!)
~~~^

@colemancda
Copy link
Member

Don't use the development snapshot, compile the latest Swift version. Now CUUID is part of the Glibc module map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants