pointfreeco / swift-gen Goto Github PK
View Code? Open in Web Editor NEW๐ฑ Composable, transformable, controllable randomness.
Home Page: https://www.pointfree.co/episodes/ep49-generative-art-part-1
License: MIT License
๐ฑ Composable, transformable, controllable randomness.
Home Page: https://www.pointfree.co/episodes/ep49-generative-art-part-1
License: MIT License
Hi Brandon, Stephen,
just a little heads up: Gen is currently failing to build on macOS/ARM:
env DEVELOPER_DIR="/Applications/Xcode_12_beta_6.app" xcrun swift build
/Users/builder/Downloads/checkout/Sources/Gen/Gen.swift:279:30: error: 'Float80' is unavailable: Float80 is not available on target platform.
extension Gen where Value == Float80 {
^~~~~~~
Swift.Float80:2:23: note: 'Float80' has been explicitly marked unavailable here
@frozen public struct Float80 {
^
/Users/builder/Downloads/checkout/Sources/Gen/Gen.swift:285:40: error: type 'Value' does not conform to protocol 'Comparable'
public static func float80(in range: ClosedRange<Value>) -> Gen {
^
/Users/builder/Downloads/checkout/Sources/Gen/Gen.swift:286:12: error: type of expression is ambiguous without more context
return Gen { rng in .random(in: range, using: &rng) }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5/5] Compiling Gen Zip.swift
(both 12b4 and 12b6). See also: https://swiftpackageindex.com/pointfreeco/swift-gen/builds
Not sure what the best fix here would be - perhaps exclude the Float80
overload on ARM for now?
Gen_iOS
fails due to Gen.swift:278:30: 'Float80' is unavailable: Float80 is only available on non-Windows x86 targets.
All other targets work fine.
I haven't been able to dig deeper into this yet but it appears that building the package with -c release
crashes the compiler:
# swift build -c release
swift: /home/buildnode/jenkins/workspace/oss-swift-5.0-package-linux-ubuntu-18_04/swift/lib/AST/Type.cpp:4079: swift::SILBoxType::SILBoxType(swift::ASTContext &, swift::SILLayout *, swift::SubstitutionMap): Assertion `Substitutions.isCanonical()' failed.
Stack dump:
0. Program arguments: /usr/bin/swift -frontend -c /host/.build/checkouts/swift-gen/Sources/Gen/AnyRandomNumberGenerator.swift /host/.build/checkouts/swift-gen/Sources/Gen/Gen.swift /host/.build/checkouts/swift-gen/Sources/Gen/LCRNG.swift /host/.build/checkouts/swift-gen/Sources/Gen/UIKit.swift /host/.build/checkouts/swift-gen/Sources/Gen/Zip.swift -supplementary-output-file-map /tmp/supplementaryOutputs-dc6044 -target x86_64-unknown-linux -disable-objc-interop -sdk / -I /host/.build/checkouts/swift-gen/.build/x86_64-unknown-linux/release -module-cache-path /host/.build/checkouts/swift-gen/.build/x86_64-unknown-linux/release/ModuleCache -swift-version 5 -O -D SWIFT_PACKAGE -color-diagnostics -parse-as-library -module-name Gen -num-threads 4 -o /host/.build/checkouts/swift-gen/.build/x86_64-unknown-linux/release/Gen.build/AnyRandomNumberGenerator.swift.o -o /host/.build/checkouts/swift-gen/.build/x86_64-unknown-linux/release/Gen.build/Gen.swift.o -o /host/.build/checkouts/swift-gen/.build/x86_64-unknown-linux/release/Gen.build/LCRNG.swift.o -o /host/.build/checkouts/swift-gen/.build/x86_64-unknown-linux/release/Gen.build/UIKit.swift.o -o /host/.build/checkouts/swift-gen/.build/x86_64-unknown-linux/release/Gen.build/Zip.swift.o
1. While running pass #25445 SILFunctionTransform "GenericSpecializer" on SILFunction "@globalinit_33_037C8324581EFD9286D2C4467C9955FB_func4".
for declaration 0x7f51e30 (at /host/.build/checkouts/swift-gen/Sources/Gen/Gen.swift:508:10)
/usr/bin/swift[0x42420c4]
/usr/bin/swift[0x423fe4e]
/usr/bin/swift[0x4242282]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f10e53a3890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f10e3806e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f10e3808801]
/lib/x86_64-linux-gnu/libc.so.6(+0x3039a)[0x7f10e37f839a]
/lib/x86_64-linux-gnu/libc.so.6(+0x30412)[0x7f10e37f8412]
/usr/bin/swift[0x18b8b0a]
/usr/bin/swift[0x17634d5]
/usr/bin/swift[0x18b9645]
/usr/bin/swift[0x18b6136]
/usr/bin/swift[0x18b4671]
/usr/bin/swift[0x18b4fa7]
/usr/bin/swift[0x12e4b58]
/usr/bin/swift[0x12debce]
/usr/bin/swift[0x12dec93]
/usr/bin/swift[0x122598d]
/usr/bin/swift[0x1228166]
/usr/bin/swift[0x1228eca]
/usr/bin/swift[0x12278ac]
/usr/bin/swift[0x1225bee]
/usr/bin/swift[0x12256ae]
/usr/bin/swift[0xfe57f9]
/usr/bin/swift[0xfe5588]
/usr/bin/swift[0xfe6d34]
/usr/bin/swift[0xf3f0a9]
/usr/bin/swift[0xe9a372]
/usr/bin/swift[0xe9b0e2]
/usr/bin/swift[0xe9c1ff]
/usr/bin/swift[0x5b5008]
/usr/bin/swift[0xea3fba]
/usr/bin/swift[0x4c19f1]
/usr/bin/swift[0x4bd809]
/usr/bin/swift[0x46e670]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f10e37e9b97]
/usr/bin/swift[0x46ca8a]
<unknown>:0: error: unable to execute command: Aborted
<unknown>:0: error: compile command failed due to signal 6 (use -v to see invocation)
# swift build
[1/1] Compiling Swift Module 'Gen' (5 sources)
#
Posting it here but I wonder if that's not something for the swift bug reporter instead? What do you think?
It looks like the Info.plist isn't included in the project so frameworks are built without them causing trouble with Carthage integration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.