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

unable to install dart while building from source #52608

Closed
habray-99 opened this issue Jun 4, 2023 · 2 comments
Closed

unable to install dart while building from source #52608

habray-99 opened this issue Jun 4, 2023 · 2 comments
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.

Comments

@habray-99
Copy link

hello, i tried to install dart on arch by reading wiki and building form the source but i ran into python error. here are the error
➜ sdk ./tools/build.py --no-goma --mode release --arch x64 create_sdk Traceback (most recent call last): File "/home/bwanso/Docs/dart-sdk/sdk/./tools/build.py", line 319, in <module> sys.exit(Main()) ^^^^^^ File "/home/bwanso/Docs/dart-sdk/sdk/./tools/build.py", line 268, in Main gn_py.RunGnOnConfiguredConfigurations(options) File "/home/bwanso/Docs/dart-sdk/sdk/tools/gn.py", line 608, in RunGnOnConfiguredConfigurations BuildGnCommand(args, mode, arch, target_os, sanitizer, File "/home/bwanso/Docs/dart-sdk/sdk/tools/gn.py", line 582, in BuildGnCommand raise Exception("Couldn't find the gn binary at path: " + gn) Exception: Couldn't find the gn binary at path: /home/bwanso/Docs/dart-sdk/sdk/buildtools/gn
➜ sdk ./tools/build.py --no-goma --mode release --arch ia32 create_sdk Traceback (most recent call last): File "/home/bwanso/Docs/dart-sdk/sdk/./tools/build.py", line 319, in <module> sys.exit(Main()) ^^^^^^ File "/home/bwanso/Docs/dart-sdk/sdk/./tools/build.py", line 268, in Main gn_py.RunGnOnConfiguredConfigurations(options) File "/home/bwanso/Docs/dart-sdk/sdk/tools/gn.py", line 608, in RunGnOnConfiguredConfigurations BuildGnCommand(args, mode, arch, target_os, sanitizer, File "/home/bwanso/Docs/dart-sdk/sdk/tools/gn.py", line 582, in BuildGnCommand raise Exception("Couldn't find the gn binary at path: " + gn) Exception: Couldn't find the gn binary at path: /home/bwanso/Docs/dart-sdk/sdk/buildtools/gn

my python is 3.11.3

@lrhn lrhn added the area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. label Jun 4, 2023
@athomas
Copy link
Member

athomas commented Jun 6, 2023

The only supported way to build Dart is https://github.com/dart-lang/sdk/wiki/Building.

Building purely from sources is tricky and not a currently supported use case. In your case, you'd need to get a version of depot_tools into your PATH and get the sources with fetch dart (depot_tools will provide fetch which will prepare a gclient solution and sync it which will provide the missing buildtools/gn).

Some related issues to bootstrapping from source (though this is probably easier because Arch is glibc-based):
#51788
#51642

@athomas athomas closed this as completed Jun 6, 2023
@habray-99
Copy link
Author

thank you for reaching out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.
Projects
None yet
Development

No branches or pull requests

3 participants