Skip to content
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

dart compile exe doesn't work for 32-bit SDK #47177

Closed
nex3 opened this issue Sep 9, 2021 · 6 comments
Closed

dart compile exe doesn't work for 32-bit SDK #47177

nex3 opened this issue Sep 9, 2021 · 6 comments
Assignees
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool.

Comments

@nex3
Copy link
Member

nex3 commented Sep 9, 2021

If I download the 32-bit Linux Dart SDK (version 2.14.1) and run dart compile exe, it prints:

Could not find /tmp/dart-sdk/bin/snapshots/gen_kernel.dart.snapshot. Have you built the full Dart SDK?

I haven't tested on Windows or Mac OS, but I've verified that this doesn't happen on the 64-bit SDK.

@nex3 nex3 added the area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. label Sep 9, 2021
@bkonyi bkonyi self-assigned this Sep 10, 2021
@alexmarkov
Copy link
Contributor

Currently, AOT compilation is not supported when targeting 32-bit Intel (only x64, 32-bit ARM and 64-bit ARM architectures are supported). We should probably print a better error message when dart compile exe or dart compile aot-snapshot are used on IA32.

@nex3
Copy link
Member Author

nex3 commented Sep 13, 2021

To be clear, dart compile aot-snapshot does work.

@alexmarkov
Copy link
Contributor

@nex3 Are you sure you're using a 32-bit SDK for dart compile aot-snapshot?

On a fresh checkout:

$ tools/build.py -a ia32 -m release create_sdk

$ out/ReleaseIA32/dart-sdk/bin/dart compile exe test_hello.dart 
Could not find /...skipped.../out/ReleaseIA32/dart-sdk/bin/snapshots/gen_kernel.dart.snapshot. Have you built the full Dart SDK?

$ out/ReleaseIA32/dart-sdk/bin/dart compile aot-snapshot test_hello.dart 
Could not find /...skipped.../out/ReleaseIA32/dart-sdk/bin/snapshots/gen_kernel.dart.snapshot. Have you built the full Dart SDK?

$ out/ReleaseIA32/dart-sdk/bin/dart --version
Dart SDK version: 2.15.0-edge.8c9dcc92f594e8e4f7238aa6f41257e320f95454 (be) (Mon Sep 13 18:02:09 2021 +0000) on "linux_ia32"

@nex3
Copy link
Member Author

nex3 commented Sep 13, 2021

You're right, I was testing against the wrong SDK.

@nex3
Copy link
Member Author

nex3 commented Dec 28, 2023

This is still an issue. See for example this build, where the failure message is still

Could not find /system/lib/dart/bin/snapshots/gen_kernel_aot.dart.snapshot. Have you built the full Dart SDK?

@bkonyi
Copy link
Contributor

bkonyi commented Jan 2, 2024

Fix for the incorrect error message is up for review here. dart compile exe and dart compile aot-snapshot will both continue to be unsupported for the foreseeable future as we don't have AOT support for IA32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool.
Projects
None yet
Development

No branches or pull requests

4 participants