-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cannot build the SDK with constant-update-2018 enabled #37357
Comments
@mkustermann @alexmarkov Alex/Martin could one of you look at this given that Aart is on vacation and you have reviewed his change? We want to be in a state where we can flip the flag on a short notice. /cc @a-siva |
The cl/107283 should fix it. Before committing I'll remove the flag flip again. |
…eserved across snapshots When constants are lazily created in VM from the constants table present in the Kernel file, we have to ensure to preserve the constants table across snapshot serialization/deserialization. Also there is no need to use zone handles in the constant evaluator for local handles. Also removes some commented code and adds an assertion that we never try to partially instantiate a closure with non-null function type arguments. Issue #37357 Change-Id: I49588fd18d981b7aa07c61e845cd2e2161b122bf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107283 Commit-Queue: Martin Kustermann <kustermann@google.com> Auto-Submit: Martin Kustermann <kustermann@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
Will close this issue since the VM issue has been hopefully fixed. The |
Re-opening, since we still can't build the SDK. Let me take a look. |
Looks like we're now hitting the same issue as in #36635 - an See try run: https://dart-review.googlesource.com/c/sdk/+/106943
|
Not sure what changed to now trigger this on a build, but assigning to @kmillikin / front-end as it appears to be the same issue. |
CFE needs to have access to them to be able to perform constant evaluation. Bug: #37357 Change-Id: I15705e6fda330a05765ec2e8354051276cb88b07 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108278 Auto-Submit: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Vijay Menon <vsm@google.com> Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
- for classes with const constructors parse field initializers; - for const constructions parse initializer lists and default parameter values; Fixes issue #37357 Fixes issue #36635 Change-Id: Iff0e47f8bd2925cee9f42a2b309de4de84e99cad Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108279 Commit-Queue: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
This should now be fixed. |
As of b32d196 it is no longer possible to build the SDK with
constant-update-2018
enabled because of a crash in the VM. /cc @aartbikTo reproduce:
Edit
tools/experimental_features.yaml
to haveenabledIn: 2.0
underconstant-update-2018:
, then runpkg/front_end/tool/fasta generate-experimental-flags
. Alternately patch in https://dart-review.googlesource.com/c/sdk/+/106943.Run
tools/build.py -mrelease create_sdk
. It will crash with a segmentation fault when trying to build a snapshot ofkernel-service.dart
. Debug builds will fail with anASSERT
failure.The text was updated successfully, but these errors were encountered: