vapor/toolbox

Issue with `make install` on WSL

dharmatech opened this issue · 7 comments

See this gist for the output of make install on my system:

https://gist.github.com/dharmatech/ea446afe27312fc92c337311f7009f36

Part of the output:

warning: '--enable-test-discovery' option is deprecated; tests are automatically discovered on all platforms
 === NIOConcurrencyHelpers, SwiftOverlayShims, timeval
/home/dharmatech/src/vapor-toolbox/.build/checkouts/Yams/Sources/Yams/Emitter.swift:338:32: warning: initialization of 'UnsafeMutablePointer<yaml_version_directive_t>' (aka 'UnsafeMutablePointer<yaml_version_directive_s>') results in a dangling pointer
            versionDirective = UnsafeMutablePointer(&versionDirectiveValue)
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/dharmatech/src/vapor-toolbox/.build/checkouts/Yams/Sources/Yams/Emitter.swift:338:53: note: implicit argument conversion from 'yaml_version_directive_t' (aka 'yaml_version_directive_s') to 'UnsafeMutablePointer<yaml_version_directive_t>' (aka 'UnsafeMutablePointer<yaml_version_directive_s>') produces a pointer valid only for the duration of the call to 'init(_:)'
            versionDirective = UnsafeMutablePointer(&versionDirectiveValue)
                                                    ^~~~~~~~~~~~~~~~~~~~~~
/home/dharmatech/src/vapor-toolbox/.build/checkouts/Yams/Sources/Yams/Emitter.swift:338:53: note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
            versionDirective = UnsafeMutablePointer(&versionDirectiveValue)
                                                    ^
swift-frontend: /home/build-user/swift/lib/SILOptimizer/Analysis/CallerAnalysis.cpp:237: (anonymous namespace)::FunctionInfo &swift::CallerAnalysis::unsafeGetFunctionInfo(swift::SILFunction *): Assertion `r != funcInfos.end() && "Function does not have functionInfo!"' failed.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.

says to:

Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.

So feel free to let me know if I should report this there instead. :-)

This is in WSL on Windows 10.,

$ cat /etc/issue
Ubuntu 20.04.2 LTS \n \l

$ swift --version
Swift version 5.5 (swift-5.5-RELEASE)
Target: x86_64-unknown-linux-gnu

~/src/vapor-toolbox$ git checkout 18.3.3
HEAD is now at 4a2b9ed Add Kebab case support to TemplateScaffolder context (#353)

Let me know if you need any other info. Thanks!

0xTim commented

Yeah this is a Swift but rather than Vapor unfortunately and worth filing on bugs.swift.org

@0xTim,

I've let the Swift devs know about the issue.

Thanks Tim!

0xTim commented

Closing for now as this is a Swift issue

Also encountered the same issue on Ubuntu 20.04 LTS

$ swift build --disable-sandbox --configuration release -Xswiftc -cross-module-optimization --enable-test-discovery
warning: '--enable-test-discovery' option is deprecated; tests are automatically discovered on all platforms
swift-frontend: /home/build-user/swift/lib/SILOptimizer/Analysis/CallerAnalysis.cpp:237: (anonymous namespace)::FunctionInfo &swift::CallerAnalysis::unsafeGetFunctionInfo(swift::SILFunction *): Assertion `r != funcInfos.end() && "Function does not have functionInfo!"' failed.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.

@0xTim,

I've let the Swift devs know about the issue.

Thanks Tim!

Hi, do you know Where can we follow up on this issue?

Hey @Kyle-Ye !

I mentioned the issue to a Swift dev in a direct chat. He said it's being looked at. I'm sorry, I don't have a link to an issue tracker. If I hear back I'll let ya know!

And thanks for also sharing your report.

0xTim commented

This was tracked here as https://bugs.swift.org/browse/SR-15301 and should be out in the next point release of 5.5