Building Dart SDK from source on CentOS 6.5

271 views
Skip to first unread message

Jan Mostert

unread,
Jan 4, 2016, 6:15:00 AM1/4/16
to General Dart Discussion
Hi, I'm trying to build dart sdk from source for ancient CentOS 6.5

Following these steps for version 1.2 of Dart, it worked flawlessly.

yum update
yum install subversion
yum install make
yum install g++
yum install openjdk-6-jdk
svn co http://src.chromium.org/svn/trunk/tools/depot_tools export PATH=$PATH:`pwd`/depot_tools
gclient config http://dart.googlecode.com/svn/branches/1.2/deps/all.deps
gclient sync
gclient runhooks
cd dart
tools/build.py --mode=release --arch=x64 create_sdk
dart/out/ReleaseX64/dart --version ## prints the dart version and some other info

I changed it to use the DEPS from GitHub and changed out the gclient config and sync steps:

gclient config https://github.com/dart-lang/sdk/blob/stable/DEPS

gclient sync --jobs=1 --verbose

 
Output:

solutions = [{ "name" : "DEPS", "url" : "https://github.com/dart-lang/sdk/blob/stable/DEPS", "deps_file" : "DEPS", "managed" : True, "custom_deps" : {},"safesync_url": "",},]cache_dir = None
Oh hai! You are using subversion. Chrome infra is eager to get rid of svn support so please switch to git. Tracking bug: http://crbug.com/475320 If you are a project owner, you may request git migration assistance at:
https://code.google.com/p/chromium/issues/entry?template=Infra-Git
________ running 'svn checkout https://github.com/dart-lang/sdk/blob/stable/DEPS /home/jan/Apps/dart/DEPS --ignore-externals' in '/home/jan/Apps/dart'


The sync part dies in various ways, I've tried about 10 times already and it either fails on timeouts or too many requests.


________ running 'svn checkout https://github.com/dart-lang/sdk/blob/stable/DEPS /home/jan/Apps/dart/DEPS --ignore-externals' in '/home/jan/Apps/dart'
svn: Server sent unexpected return value (504 Gateway Timeout) in response to OPTIONS request for 'https://github.com/dart-lang/sdk/blob/stable/DEPS'   


svn: Server sent unexpected return value (429 Too Many Requests) in response to OPTIONS request for 'https://github.com/dart-lang/sdk/blob/stable/DEPS'



Should I just keep on trying or is there a way to get gclient to make less requests or be a little more patient with its timeouts ?













William Hesse

unread,
Jan 4, 2016, 7:11:10 AM1/4/16
to General Dart Discussion
I would not try and access the stable DEPS with this "blob" url, but
do a regular checkout of Dart, and then switch to the stable branch
with a git checkout command. Then, running gclient sync will use the
checked out DEPS, from the stable branch, and update everything. You
can try a -j1 on gclient sync to limit it to one git fetch at a time.

Since we have just removed the last SVN bits from the Dart checkout,
since the last stable version, I would suggest using bleeding-edge,
rather than stable, anyway. In this case, you wouldn't switch to the
stable branch and resync.

The solution in .gclient should be:

solutions = [
{ "name" : "sdk",
"url" : "g...@github.com:dart-lang/sdk.git",
"deps_file" : "DEPS",
"managed" : False,
"custom_deps" : {
},
"safesync_url": "",
},
]

> --
> For other discussions, see https://groups.google.com/a/dartlang.org/
>
> For HOWTO questions, visit http://stackoverflow.com/tags/dart
>
> To file a bug report or feature request, go to http://www.dartbug.com/new
> ---
> You received this message because you are subscribed to the Google Groups
> "Dart Misc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to misc+uns...@dartlang.org.



--
William Hesse

kaop...@gmail.com

unread,
Jan 4, 2016, 7:13:01 AM1/4/16
to Jan Mostert
‎Maybe this  note can help you. https://github.com/cjkao/dart-sdk-cent-os-6


寄件者: Jan Mostert
已傳送: 2016年1月4日星期一 19:14
收件者: General Dart Discussion
回覆至: mi...@dartlang.org
主旨: [dart-misc] Building Dart SDK from source on CentOS 6.5

Jan Mostert

unread,
Jan 4, 2016, 8:56:36 AM1/4/16
to General Dart Discussion
@William, I've wiped everything and changed my setup scripts; 
something in Python is failing, I'm guessing unit tests?

Is there a specific version of Python I should be using? python --version = Python 2.6.6

The error is: sdk/tests/co19/src (ERROR)

New setup script:

svn co http://src.chromium.org/svn/trunk/tools/depot_tools
export PATH=$PATH:`pwd`/depot_tools

git clone https://github.com/dart-lang/sdk.git -b stable

gclient config --name=sdk --unmanaged g...@github.com:dart-lang/sdk.git
gclient sync --jobs=1 --verbose
 
Output:

solutions = [                                      
  { "name"        : "sdk",                         
    "url"         : "g...@github.com:dart-lang/sdk.git",
    "deps_file"   : "DEPS",                            
    "managed"     : False,                             
    "custom_deps" : {                                  
    },                                                 
    "safesync_url": "",                                
  },                                                   
]                                                      
cache_dir = None                                       


sdk (Elapsed: 0:00:00)
----------------------------------------
[0:00:00] Started.                      
_____ sdk at refs/remotes/origin/master 
[0:00:00] ________ unmanaged solution; skipping sdk
[0:00:00] Finished.                                
----------------------------------------           
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "--verbose" "https://chromium.googlesource.com/external/github.com/dart-lang/co19.git" "/home/jan/Apps/dart/sdk/tests/co19/_gclient_src_EjN048"' in /home/jan/Apps/dart failed; will retry after a short nap...                                                                                                                      
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "--verbose" "https://chromium.googlesource.com/external/github.com/dart-lang/co19.git" "/home/jan/Apps/dart/sdk/tests/co19/_gclient_src_EjN048"' in /home/jan/Apps/dart failed; will retry after a short nap...                                                                                                                      
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "--verbose" "https://chromium.googlesource.com/external/github.com/dart-lang/co19.git" "/home/jan/Apps/dart/sdk/tests/co19/_gclient_src_EjN048"' in /home/jan/Apps/dart failed; will retry after a short nap...                                                                                                                      
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "--verbose" "https://chromium.googlesource.com/external/github.com/dart-lang/co19.git" "/home/jan/Apps/dart/sdk/tests/co19/_gclient_src_EjN048"' in /home/jan/Apps/dart failed; will retry after a short nap...                                                                                                                      

sdk/tests/co19/src (ERROR)
----------------------------------------
[0:00:00] Started.                      
_____ sdk/tests/co19/src at ead3698f33d2cd41e75b6ce5d4a1203767cedd50

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress --verbose https://chromium.googlesource.com/external/github.com/dart-lang/co19.git /home/jan/Apps/dart/sdk/tests/co19/_gclient_src_EjN048' in '/home/jan/Apps/dart'                                                                                                                                                                                 
[0:00:00] Unknown option: -c                                                                                                                                                                                         
[0:00:00] usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]                                                                                                                                         
[0:00:00]            [-p|--paginate|--no-pager] [--no-replace-objects]                                                                                                                                               
[0:00:00]            [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]                                                                                                                                        
[0:00:00]            [--help] COMMAND [ARGS]                                                                                                                                                                         

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress --verbose https://chromium.googlesource.com/external/github.com/dart-lang/co19.git /home/jan/Apps/dart/sdk/tests/co19/_gclient_src_EjN048' in '/home/jan/Apps/dart'                                                                                                                                                                                 
[0:00:00] Unknown option: -c                                                                                                                                                                                         
[0:00:00] usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]                                                                                                                                         
[0:00:00]            [-p|--paginate|--no-pager] [--no-replace-objects]                                                                                                                                               
[0:00:00]            [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]                                                                                                                                        
[0:00:00]            [--help] COMMAND [ARGS]                                                                                                                                                                         

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress --verbose https://chromium.googlesource.com/external/github.com/dart-lang/co19.git /home/jan/Apps/dart/sdk/tests/co19/_gclient_src_EjN048' in '/home/jan/Apps/dart'
[0:00:01] Unknown option: -c
[0:00:01] usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[0:00:01]            [-p|--paginate|--no-pager] [--no-replace-objects]
[0:00:01]            [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
[0:00:01]            [--help] COMMAND [ARGS]

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress --verbose https://chromium.googlesource.com/external/github.com/dart-lang/co19.git /home/jan/Apps/dart/sdk/tests/co19/_gclient_src_EjN048' in '/home/jan/Apps/dart'
[0:00:03] Unknown option: -c
[0:00:03] usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[0:00:03]            [-p|--paginate|--no-pager] [--no-replace-objects]
[0:00:03]            [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
[0:00:03]            [--help] COMMAND [ARGS]
Traceback (most recent call last):
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 924, in _Clone self._Run(clone_cmd, options, cwd=self._root_dir, retry=True)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 1209, in _Run gclient_utils.CheckCallAndFilterAndHeader(cmd, env=env, **kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader return CheckCallAndFilter(args, **kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 538, in CheckCallAndFilter rv, args, kwargs.get('cwd', None), None, None)
  File "/home/jan/Apps/dart/depot_tools/subprocess2.py", line 37, in __init__ super(CalledProcessError, self).__init__(returncode, cmd, output=stdout)
TypeError: __init__() got an unexpected keyword argument 'output'
----------------------------------------
Traceback (most recent call last):
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 2325, in <module> sys.exit(main(sys.argv[1:]))
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 2311, in main return dispatcher.execute(OptionParser(), argv)
  File "/home/jan/Apps/dart/depot_tools/subcommand.py", line 252, in execute return command(parser, args[1:])
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 2066, in CMDsync ret = client.RunOnDeps('update', args)
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 1523, in RunOnDeps work_queue.flush(revision_overrides, command, args, options=self._options)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 896, in flush self._run_one_task(self.queued.pop(i), args, kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 988, in _run_one_task task_item.run(*args, **kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 834, in run file_list)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 166, in RunCommand return getattr(self, command)(options, args, file_list)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 418, in update self._Clone(revision, url, options)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 924, in _Clone self._Run(clone_cmd, options, cwd=self._root_dir, retry=True)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 1209, in _Run gclient_utils.CheckCallAndFilterAndHeader(cmd, env=env, **kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader return CheckCallAndFilter(args, **kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 538, in CheckCallAndFilter rv, args, kwargs.get('cwd', None), None, None)
  File "/home/jan/Apps/dart/depot_tools/subprocess2.py", line 37, in __init__ super(CalledProcessError, self).__init__(returncode, cmd, output=stdout)
TypeError: __init__() got an unexpected keyword argument 'output'





--
Jan Vladimir Mostert
janvladimirmostert.com

Kao peter

unread,
Jan 4, 2016, 9:25:25 AM1/4/16
to Hans - Jürgen Alps
 I think python 2.7 is necessary to build dart sdk, 

Jan Mostert

unread,
Jan 4, 2016, 10:13:48 AM1/4/16
to General Dart Discussion
Thanks @KaoPeter, just installed python 2.7.10 from source to make sure it's not a Python issue and
now using depot_tools from git to make sure that depot_tools via svn is not outdated

python --version => Python 2.7.10
gclient --version => gclient.py 0.7

$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ export PATH=$PATH:`pwd`/depot_tools
$ git clone https://github.com/dart-lang/sdk.git -b stable
$ gclient config --name=sdk --unmanaged g...@github.com:dart-lang/sdk.git
$ gclient sync --jobs=1 --verbose


Don't know if I should consider this as progress?

As soon as I run: 
gclient config --name=sdk --unmanaged g...@github.com:dart-lang/sdk.git

depot_tools update failed. Conflict in /home/jan/Apps/dart/depot_tools
cannot rebase: you have unstaged changes
M       update_depot_tools.bat
M       win_toolchain/7z/LICENSE

so I attempt to fix it:

$cd depot_tools
$ git add update_depot_tools.bat 
$ git add win_toolchain/7z/LICENSE
$ git commit -m "meh"
$ cd ..

re-running the gclient config command and it's no longer complaining about the conflict.

$ gclient sync --jobs=1 --verbose

and I get another error also related to co19:

solutions = [                                                                              
  { "name"        : "sdk",                                                                 
    "url"         : "g...@github.com:dart-lang/sdk.git",                                    
    "deps_file"   : "DEPS",                                                                
    "managed"     : False,                                                                 
    "custom_deps" : {                                                                      
    },                                                                                     
    "safesync_url": "",                                                                    
  },                                                                                       
]                                                                                          
cache_dir = None                                                                           


sdk (Elapsed: 0:00:00)
----------------------------------------
[0:00:00] Started.                      
_____ sdk at refs/remotes/origin/master 
[0:00:00] ________ unmanaged solution; skipping sdk
[0:00:00] Finished.                                
----------------------------------------           
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "--verbose" "https://chromium.googlesource.com/external/github.com/dart-lang/co19.git" "/home/jan/Apps/dart/sdk/tests/co19/_gclient_src_SDQJGW"' in /home/jan/Apps/dart failed; will retry after a short nap...                                                                                                                      
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "--verbose" "https://chromium.googlesource.com/external/github.com/dart-lang/co19.git" "/home/jan/Apps/dart/sdk/tests/co19/_gclient_src_SDQJGW"' in /home/jan/Apps/dart failed; will retry after a short nap...                                                                                                                      
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "--verbose" "https://chromium.googlesource.com/external/github.com/dart-lang/co19.git" "/home/jan/Apps/dart/sdk/tests/co19/_gclient_src_SDQJGW"' in /home/jan/Apps/dart failed; will retry after a short nap...                                                                                                                      
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "--verbose" "https://chromium.googlesource.com/external/github.com/dart-lang/co19.git" "/home/jan/Apps/dart/sdk/tests/co19/_gclient_src_SDQJGW"' in /home/jan/Apps/dart failed; will retry after a short nap...                                                                                                                      

sdk/tests/co19/src (ERROR)
----------------------------------------
[0:00:00] Started.                      
_____ sdk/tests/co19/src at ead3698f33d2cd41e75b6ce5d4a1203767cedd50

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress --verbose https://chromium.googlesource.com/external/github.com/dart-lang/co19.git /home/jan/Apps/dart/sdk/tests/co19/_gclient_src_SDQJGW' in '/home/jan/Apps/dart'                                                                                                                                                                                 
[0:00:00] Unknown option: -c                                                                                                                                                                                         
[0:00:00] usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]                                                                                                                                         
[0:00:00]            [-p|--paginate|--no-pager] [--no-replace-objects]                                                                                                                                               
[0:00:00]            [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]                                                                                                                                        
[0:00:00]            [--help] COMMAND [ARGS]                                                                                                                                                                         

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress --verbose https://chromium.googlesource.com/external/github.com/dart-lang/co19.git /home/jan/Apps/dart/sdk/tests/co19/_gclient_src_SDQJGW' in '/home/jan/Apps/dart'                                                                                                                                                                                 
[0:00:00] Unknown option: -c                                                                                                                                                                                         
[0:00:00] usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]                                                                                                                                         
[0:00:00]            [-p|--paginate|--no-pager] [--no-replace-objects]                                                                                                                                               
[0:00:00]            [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]                                                                                                                                        
[0:00:00]            [--help] COMMAND [ARGS]                                                                                                                                                                         

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress --verbose https://chromium.googlesource.com/external/github.com/dart-lang/co19.git /home/jan/Apps/dart/sdk/tests/co19/_gclient_src_SDQJGW' in '/home/jan/Apps/dart'                                                                                                                                                                                 
[0:00:01] Unknown option: -c                                                                                                                                                                                         
[0:00:01] usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[0:00:01]            [-p|--paginate|--no-pager] [--no-replace-objects]
[0:00:01]            [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
[0:00:01]            [--help] COMMAND [ARGS]

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress --verbose https://chromium.googlesource.com/external/github.com/dart-lang/co19.git /home/jan/Apps/dart/sdk/tests/co19/_gclient_src_SDQJGW' in '/home/jan/Apps/dart'
[0:00:03] Unknown option: -c
[0:00:03] usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[0:00:03]            [-p|--paginate|--no-pager] [--no-replace-objects]
[0:00:03]            [--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
[0:00:03]            [--help] COMMAND [ARGS]
Traceback (most recent call last):
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 924, in _Clone self._Run(clone_cmd, options, cwd=self._root_dir, retry=True)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 1209, in _Run gclient_utils.CheckCallAndFilterAndHeader(cmd, env=env, **kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader return CheckCallAndFilter(args, **kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 538, in CheckCallAndFilter rv, args, kwargs.get('cwd', None), None, None)
CalledProcessError: Command 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress --verbose https://chromium.googlesource.com/external/github.com/dart-lang/co19.git /home/jan/Apps/dart/sdk/tests/co19/_gclient_src_SDQJGW' returned non-zero exit status 129 in /home/jan/Apps/dart
[0:00:07] _____ Conflicting directory found in /home/jan/Apps/dart/sdk/tests/co19/src. Moving to /home/jan/Apps/dart/_bad_scm/sdk/tests/co19/srctvcme5.
----------------------------------------


Warnings:
Conflicting directory /home/jan/Apps/dart/sdk/tests/co19/src moved to /home/jan/Apps/dart/_bad_scm/sdk/tests/co19/srctvcme5.
Traceback (most recent call last):
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 2325, in <module> sys.exit(main(sys.argv[1:]))
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 2311, in main return dispatcher.execute(OptionParser(), argv)
  File "/home/jan/Apps/dart/depot_tools/subcommand.py", line 252, in execute return command(parser, args[1:])
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 2066, in CMDsync ret = client.RunOnDeps('update', args)
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 1523, in RunOnDeps work_queue.flush(revision_overrides, command, args, options=self._options)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 896, in flush self._run_one_task(self.queued.pop(i), args, kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 988, in _run_one_task task_item.run(*args, **kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 834, in run file_list)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 166, in RunCommand return getattr(self, command)(options, args, file_list)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 420, in update self._DeleteOrMove(options.force)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 240, in _DeleteOrMove shutil.move(self.checkout_path, dest_path)
  File "/usr/local/lib/python2.7/shutil.py", line 302, in move copy2(src, real_dst)
  File "/usr/local/lib/python2.7/shutil.py", line 130, in copy2 copyfile(src, dst)
  File "/usr/local/lib/python2.7/shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/home/jan/Apps/dart/sdk/tests/co19/src'



How do I get further from here?










William Hesse

unread,
Jan 4, 2016, 10:15:00 AM1/4/16
to General Dart Discussion
It looks like your version of git is too old. Older versions don't
support the -c option:

https://github.com/FredrikNoren/ungit/issues/146

Jan Mostert

unread,
Jan 4, 2016, 11:07:02 AM1/4/16
to General Dart Discussion
Removed git and built from source,  git --version => git version 2.0.5
Wiped the whole directory clean and did a clean checkout of the sdk as well as depot_tools and started from the beginning.

After quite a bit of waiting, it's now failing on sdk/third_party/7zip:

.....
[0:00:02]  = [up to date]      lukechurch_v1_10_1_upstream -> origin/lukechurch_v1_10_1_upstream
[0:00:02]  = [up to date]      master     -> origin/master
[0:00:02]  = [up to date]      null_aware -> origin/null_aware
[0:00:02]  = [up to date]      summarizer -> origin/summarizer
[0:00:02]  = [up to date]      upgrade_1.13.0 -> origin/upgrade_1.13.0
[0:00:02]  = [up to date]      v-191-e    -> origin/v-191-e
[0:00:02]  = [up to date]      v1_11_0-prod-test -> origin/v1_11_0-prod-test
[0:00:02] Up-to-date; skipping checkout.
Checked out revision 7aea2574e6f3924bf409a80afb8ad52aa2be4f97
[0:00:02] Finished.
----------------------------------------

sdk/third_party/7zip (ERROR)
----------------------------------------
[0:00:00] Started.
----------------------------------------
Traceback (most recent call last):
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 2325, in <module> sys.exit(main(sys.argv[1:]))
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 2311, in main return dispatcher.execute(OptionParser(), argv)
  File "/home/jan/Apps/dart/depot_tools/subcommand.py", line 252, in execute return command(parser, args[1:])
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 2066, in CMDsync ret = client.RunOnDeps('update', args)
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 1523, in RunOnDeps work_queue.flush(revision_overrides, command, args, options=self._options)
  File "/home/jan/Apps/dart/depot_tools/gclient_utils.py", line 1024, in run self.item.run(*self.args, **self.kwargs)
  File "/home/jan/Apps/dart/depot_tools/gclient.py", line 834, in run file_list)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 166, in RunCommand return getattr(self, command)(options, args, file_list)
  File "/home/jan/Apps/dart/depot_tools/gclient_scm.py", line 1321, in update if scm.GIT.IsGitSvn(self.checkout_path):
  File "/home/jan/Apps/dart/depot_tools/scm.py", line 193, in IsGitSvn cwd=cwd)
  File "/home/jan/Apps/dart/depot_tools/scm.py", line 121, in Capture cwd=cwd, stderr=subprocess2.PIPE, env=env, **kwargs)
  File "/home/jan/Apps/dart/depot_tools/subprocess2.py", line 524, in check_output return check_call_out(args, stdout=PIPE, **kwargs)[0]
  File "/home/jan/Apps/dart/depot_tools/subprocess2.py", line 487, in check_call_out returncode, args, kwargs.get('cwd'), out[0], out[1])
  File "/home/jan/Apps/dart/depot_tools/subprocess2.py", line 37, in __init__ super(CalledProcessError, self).__init__(returncode, cmd, output=stdout)
TypeError: __init__() got an unexpected keyword argument 'output'

Checking what's in the 7zip dir, I'm seeing an exe file ...

ls -lah sdk/third_party/7zip/

-rwxrwxr-x  1 jan jan 574K Jan  4 17:39 7za.exe
-rwxrwxr-x  1 jan jan 1.2K Jan  4 17:39 license.txt
-rwxrwxr-x  1 jan jan 1.3K Jan  4 17:39 readme.txt
drwxrwxr-x  6 jan jan 4.0K Jan  4 17:39 .svn

Feels like I'm close, what else am I missing?









--
Jan Vladimir Mostert
janvladimirmostert.com


William Hesse

unread,
Jan 4, 2016, 11:23:34 AM1/4/16
to General Dart Discussion
A previous issue claimed that a python that was too old was causing
the issue: https://github.com/dart-lang/sdk/issues/21125

But it claimed that python 2.7.7 fixed it, and you have python 2.7.10.
Could you check your python version, and make sure the new one is in
the path? Try and find the subprocess module, in your python, and
check that CalledProcessError.__init__ has an argument called output.
Maybe your modules, like subprocess, didn't get updated with your python build.

Searching the Internet for the error in your stack trace found most of
this information.

Jan Mostert

unread,
Jan 5, 2016, 5:57:29 AM1/5/16
to General Dart Discussion
Hi William, I appreciate the help!
Until now I didn't know anyone else also tried to get it up and running on older versions of CentOS,
the only search result I've been getting was my old December 2014 post on StackOverflow and many outdated walk-throughs.

GCC is what is still standing in my way, build fails due to having version 4.4.7
Can't upgrade GCC on the server as it will break other legacy software depending on 4.4.7.

Is it possible to build Dart on let's say a Google Compute Engine instance that has the latest CentOS with latest everything 
including GCC and then simply download the SDK, will that be a valid working Dart SDK?

Kind Regards
Jan








--
Jan Vladimir Mostert
janvladimirmostert.com


Rico Wind

unread,
Jan 5, 2016, 6:13:27 AM1/5/16
to General Dart Discussion
That may not work, if libc versions are incompatible

Can't you have two gcc installations side by side?

Cheers,
Rico

Jan Mostert

unread,
Jan 5, 2016, 6:17:57 AM1/5/16
to General Dart Discussion
I don't know, I'm busy figuring out if that's possible, already downloaded: https://ftp.gnu.org/gnu/gcc/gcc-5.3.0/
Busy reading on how to set it up.

Also trying to build it on GCE and see if that works for me, seems like the easier option if it actually works.




--
Jan Vladimir Mostert
janvladimirmostert.com


Reply all
Reply to author
Forward
0 new messages