|
GettingTheSource
How to see, download, and build the Dart source code
This page tells you how to get and build the Dart source code. You can also browse the repository or list the changes. If your machine is already set up to build Chromium, then you should have all the prerequisites for building Dart. Otherwise prepare your machine according to these instructions: PreparingYourMachine. Getting the sourceCreate a directory into which you want to checkout the Dart sources and change into that directory. Getting everythinggclient config http://dart.googlecode.com/svn/trunk/deps/all.deps gclient sync For instructions on how to build and test, refer to Building everything. Getting the standalone VMgclient config http://dart.googlecode.com/svn/trunk/deps/standalone.deps gclient sync For instructions on how to build and test, refer to Building the standalone VM. Attention Committers:For all instructions above, use https instead of http, and replace trunk with branches/bleeding_edge or use the instructions from the Contributing wiki page. Also use your Google Code password when prompted. |
Any suggestions on how to cure this?
gclient config http://dart.googlecode.com/svn/trunk/deps/standalone.deps gclient sync
Traceback (most recent call last):
Exception: Couldn't retrieve DumpRenderTree?: gs://dart-dump-render-tree/latest/chromium-lucid64-103752.zipError: Command /usr/local/bin/python dart/tools/get_drt.py runhooks returned non-zero exit status 1 in /home/rhancock
I just got the same error...==!
On CentOS 5.7 I had to build a local copy of Python 2.7.2 to get gclient working. The default version installed (2.4.3) was causing the following error:
Traceback (most recent call last): File "/home/andy/code/depot_tools/gclient.py", line 68, in ? import gclient_scm File "/home/andy/code/depot_tools/gclient_scm.py", line 14, in ? import gclient_utils File "/home/andy/code/depot_tools/gclient_utils.py", line 17, in ? import subprocess2 File "/home/andy/code/depot_tools/subprocess2.py", line 228 with tempfile.TemporaryFile() as buff: ^ SyntaxError: invalid syntaxUsing Python 2.7.2 and I'm getting:
Traceback (most recent call last): File "C:\Users\Rokko\depot_tools\bootstrap\\..\gclient.py", line 54, in <module> import copy File "C:\Python\lib\copy.py", line 52, in <module> import weakref File "C:\Python\lib\weakref.py", line 12, in <module> import UserDict File "C:\Python\lib\UserDict.py", line 84, in <module> _abcoll.MutableMapping.register(IterableUserDict) File "C:\Python\lib\abc.py", line 109, in register if issubclass(subclass, cls): File "C:\Python\lib\abc.py", line 184, in __subclasscheck__ cls._abc_negative_cache.add(subclass) File "C:\Python\lib\_weakrefset.py", line 84, in add self.data.add(ref(item, self._remove)) TypeError: cannot create weak reference to 'classobj' objectRe: DumpRenderTree?- I followed the instructions on the console and the problem was resolved
Sync will fail on windows as of today. To work around, see issue 109 .
Re: DumpRenderTree? -- I encountered the same problem. In my case here is no gsutil directory in third_party. I have the following
init.py pymox repo simplejson upload.py
Any ideas on how to move forward?
Re: Above
sudo apt-get install gsutil
gclient sync
my python.bat @echo off setlocal set PATH=%~dp0python_bin;%PATH% set PYTHONHOME=%~dp0python_bin "%~dp0python_bin\python.exe" %
The sync stops after 88% it stops after 88% 1>At revision 1856. 1>Syncing projects: 0% ( 0/ 3) 2> running 'svn update /home/nitish/dart --non-interactive --accept postpone --ignore-externals' in '/home/nitish' 2>At revision 1856. 8> running 'svn update /home/nitish/dart/third_party/v8 --non-interactive --accept postpone --ignore-externals' in '/home/nitish' 8>At revision 10072. Syncing projects: 88% (8/9), done./third_party/v8 nitish@nitish-VGN-SR46GD-B:~$ mv gsutil ./depot_tools/third_party/ gsutil' -> ./depot_tools/third_party/gsutil' nitish@nitish-VGN-SR46GD-B:~$ gclient sync 1> running 'svn update /home/nitish/all.deps --non-interactive --accept postpone --ignore-externals' in '/home/nitish' 1>At revision 1856. 1>Syncing projects: 0% ( 0/ 3) 2> running 'svn update /home/nitish/dart --non-interactive --accept postpone --ignore-externals' in '/home/nitish' 2>At revision 1856. 8> running 'svn update /home/nitish/dart/third_party/v8 --non-interactive --accept postpone --ignore-externals' in '/home/nitish'
previously i had to install gsutil for gsutil config but now it's not completing