[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
Hi all, I finally rebased my compiler patches on top of recent swift (commit 2544509). It works fine until I turn on -enable-experimental-feature Embedded. Then I start to get assertion failures in...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
I think the problem here is a symbol referenced from print() and not print() itself. Can you share the implementation? Also if you attach a debugger to the frontend process that crashed, you can...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
np… It’s not very complex… @inlinable public func print(buffer stringBuffer: AVRStringBuffer, addNewline: Bool = true) { guard let buffer = stringBuffer.currentValue else { return }...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
A bit further update... For the sake of trying it, I changed my standard library to really force inlining on the method that was being lowered and causing the assertion failure... @_transparent //...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
Do you have details about the compiler being used here? I guess it's locally built and not downloaded from swift.org? Somehow, in the last snippet you posted, there is a use of an unspecialized...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
It sounds like it's bootstrapping (which I have turned off) that's the problem. -- Our compiler is locally built on our CI from our fork it's not public but I can give you access to our repo on a...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
carlos42421: And am I right that you generally did most of the work to add Embedded Swift features in the Swift part of the compiler (which I have disabled!) so that's why my Embedded Swift is not...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
Alright. I’ll try turning on the bootstrapping and see if the compiler still builds and runs. From memory the last time I tried to do that the compiler kept crashing saying various shared libraries...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
So this is what happens when I try to compile swift-frontend with ninja swift-frontend (which is what I normally do). [78/88] Linking CXX executable bootstrapping1/bin/swift-frontend FAILED:...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
Hi, @kubamracek @rauhul It took a while, but I got a version of our compiler built using bootstrapping (with host tools). But it's still crashing when compiling our stdlib when embedded mode is turned...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
carlos42421: But it's still crashing when compiling our stdlib when embedded mode is turned on. Just checking: Are you saying it doesn't crash and builds fine with embedded mode turned off? Can you...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
I’ll check… So here's the command line (when I'm running it from lldb... just strip off the lldb -- to see the debugger free command line, which crashes the same)... lldb --...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
@kubamracek I ran the check you suggested ^^ Read full topic
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
And what if you remove the @available(*, unavailable, ...) line? Not saying that's a solution, just something that could help narrow down the problem. Read full topic
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
Actually, the source code snippet you posted reproduces the compiler crash in isolation (just building that snippet without anything else). Would you mind filing a github issue for it and assigning to...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
Ok done! github.com/apple/swift [Embedded] Compiler crashes when attempting to compile declaration opened 07:43PM - 27 Nov 23 UTC carlos4242 bug crash triage needed ### Description The attached code...
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
Fix here: [embedded] Consider 'skipped' decls when SILGen-ing accessors, fix compiler crash on unavailable accessors by kubamracek · Pull Request #70042 · apple/swift · GitHub Read full topic
View Article[Embedded] Assertion failed: (!f->isGeneric()) when compiling my seemingly...
Cool! Thank you so much! Reading it, understanding it and testing it my end... —- The quick update is that patch seems to work. I have errors in my stdlib now but they are genuine issues that need...
View Article