Building Dart SDK on CentOS 7

$ sudo yum -y install glibc-devel libstdc++-devel

Install Chromium's depot tools:

$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ export PATH="$PATH:$PWD/depot_tools"

Get the source:

$ mkdir dart-sdk
$ cd dart-sdk
$ fetch dart
mkdir dart-sdk
cd dart-sdk
fetch dart
Running: gclient root
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
Running: gclient config --spec 'solutions = [
  {
    "url": "https://dart.googlesource.com/sdk.git",
    "managed": False,
    "name": "sdk",
    "deps_file": "DEPS",
    "custom_deps": {},
  },
]
'
Running: gclient sync
...
...
Operation completed over 1 objects/699.1 MiB.                                    
Running ['python', '/home/mhan/dev/depot_tools/gsutil.py', 'cp', 'gs://mojo/android/tool/0d320c50b0ed188c7e1182388e2beb623a1d307d.tar.gz', '/home/mhan/dev/dart-sdk/sdk/third_party/android_tools/sdk.tar.gz']
Extracting Android tools (sdk)
Running ['python', '/home/mhan/dev/depot_tools/gsutil.py', 'cp', 'gs://mojo/android/tool/50bb526ee77fee88b9382d2bf48e7399751b98ae.tar.gz', '/home/mhan/dev/dart-sdk/sdk/third_party/android_tools/ndk.tar.gz']
Extracting Android tools (ndk)
Hook '/usr/bin/python sdk/tools/android/download_android_tools.py' took 210.70 secs
Running hooks:  84% (11/13) buildtools            
________ running '/usr/bin/python sdk/tools/buildtools/update.py' in '/home/mhan/dev/dart-sdk'
Bootstrapping cipd client for linux-amd64...
######################################################################## 100.0%
Hook '/usr/bin/python sdk/tools/buildtools/update.py' took 102.78 secs
Running hooks: 100% (13/13), done.       
Running: git submodule foreach 'git config -f $toplevel/.git/config submodule.$name.ignore all'
Running: git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*'
Running: git config diff.ignoreSubmodules all

Build 64-bit SDK:

$ cd dart-sdk/sdk
$ ./tools/build.py --mode release --arch x64 create_sdk
ninja -C out/ReleaseX64 create_sdk
ninja: Entering directory `out/ReleaseX64'
[1792/1792] STAMP obj/create_sdk.stamp
The build took 362.654 seconds

The output will be in out/ReleaseX64/dart_sdk.

Packages

Stagehand: project scaffold generator