Closed xanderdunn closed 4 years ago
I narrowed the crash down to the BigInt library. See attaswift/BigInt#75.
I was able to successfully build BigInt with the official Swift 5.3 snapshot toolchain on Ubuntu 18.04:
$ which swift
/home/xander/swift-5.3-DEVELOPMENT-SNAPSHOT-2020-08-31-a-ubuntu18.04/usr/bin/swift
$ swift --version
Swift version 5.3-dev (LLVM 3fa9679add, Swift d24649a4d6)
Target: x86_64-unknown-linux-gnu
The compiler crash appears to be specific to the Swift for Tensorflow v0.11 toolchain on Ubuntu 18.04.
Swift for TensorFlow toolchains are built from apple/swift
tensorflow
branch, which tracks apple/swift
master
branch rather than the Swift 5.3 release branch.
At first glance, the crash doesn't look related to compiler changes related to Swift for TensorFlow. I wonder if the crash also reproduces with trunk development snapshots from swift.org/download? If so, the issue exists on apple/swift
master
branch - please file an issue at bugs.swift.org.
Thanks @dan-zheng. I can confirm that this occurs on Swift dev trunk:
$ which swift
/home/xander/swift-DEVELOPMENT-SNAPSHOT-2020-08-31-a-ubuntu18.04/usr/bin/swift
$ swift --version
Swift version 5.3-dev (LLVM 19447e27024a8d4, Swift f89dbd325b96dd6)
Target: x86_64-unknown-linux-gnu
Attempting to build the BigInt project on Ubuntu 18.04 produces the same crash.
I've filed a bug report on swift.org.
Thanks for the filing the bug upstream! I'll close this issue now, since the crash isn't related to Swift for TensorFlow.
My project, which builds and runs successfully on Swift for Tensorflow v0.10, crashes during the build process on v0.11.
By process of elimination on my project dependencies, I was able to figure out this is happening when building the google-auth-library-swift dependency.
On Ubuntu 18.04:
I don't know if this is a compiler bug or a bug in the google-auth-library-swift project. Should I file an issue over there?