I also have some problems: I can build it, but it fail when I use pub get.
I build it on n1-stantard-1 GCE instance with Ubuntu 12.04 with this script :
#!/bin/sh
## Need by intance
sudo apt-get install subversion -y
sudo apt-get install git -y
sudo apt-get install git-svn -y
sudo apt-get install make -y
sudo apt-get install build-install g++ -y
## Preparing Machine
chmod u+x install-build-deps.sh
echo y | ./install-build-deps.sh --no-chromeos-fonts
sudo apt-get install libc6-dev-i386 g++-multilib -y
export PATH=$PATH:`pwd`/depot_tools
sudo apt-get install openjdk-7-jre-headless -y
# Gettings sources
mkdir dart-repo
cd dart-repo
gclient sync -n && gclient runhooks
# Build VM
cd
cd dart-repo/dart
sudo ./tools/build.py -m release -a arm --toolchain=../../raspberrypi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf runtime
sudo ./tools/build.py -m release -a arm --toolchain=../../raspberrypi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf create_sdk
When build is finished, I tar out/ReleaseXARM/dart-sdk and download it to be deploy on my rapsberrry.
This WM works when I execute a simple hello world.
I try to use it with my own library
I have this error:
runtime/vm/object.h:2263: error: Handle check failed: saw -619649294 expected Function
or
Resolving dependencies... (27.8s)
+ args 0.12.1
+ ccompile 0.2.2
+ ccompilers 0.2.1
+ collection 1.1.0
+ path 1.3.0
+ source_span 1.0.2
+ string_scanner 0.1.2
+ yaml 2.1.0
Downloading ccompile 0.2.2...
Downloading ccompilers 0.2.1...
Downloading path 1.3.0...
Downloading yaml 2.1.0...
Downloading args 0.12.1...
Downloading source_span 1.0.2...
Downloading string_scanner 0.1.2...
Downloading collection 1.1.0...
Bad UTF-8 encoding 0xa9
dart:io Process.runSync
/home/nicolas_franc_gmail_com/dart-repo/dart/sdk/lib/_internal/pub_generated/lib/src/io.dart 868 _computeNoUnknownKeyword
/home/nicolas_franc_gmail_com/dart-repo/dart/sdk/lib/_internal/pub_generated/lib/src/io.dart 836 extractTarGz
/home/nicolas_franc_gmail_com/dart-repo/dart/sdk/lib/_internal/pub_generated/lib/src/source/hosted.dart 193 HostedSource._download.<fn>.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
This is an unexpected error. Please run
pub --trace 'install'
My dart version is :
$ dart --version
Dart VM version: 1.8.0-edge.41866 (Thu Nov 20 21:40:23 2014) on "linux_arm"
my version of raspbian is supposed to be updated
Maybe it will try to build a version on a specific tag of sources.