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

Build Dart from Source on Centos 6.5 #15506

Closed
DartBot opened this issue Dec 7, 2013 · 5 comments
Closed

Build Dart from Source on Centos 6.5 #15506

DartBot opened this issue Dec 7, 2013 · 5 comments
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. needs-info We need additional information from the issue author (auto-closed after 14 days if no response) os-linux

Comments

@DartBot
Copy link

DartBot commented Dec 7, 2013

This issue was originally filed by noreplycr...@gmail.com


What steps will reproduce the problem?
1.gclient config http://dart.googlecode.com/svn/branches/bleeding_edge/deps/all.deps
2. gclient sync

3.Bang!!

What is the expected output? What do you see instead?
Updated to revision 30973.
Syncing projects: 97% (33/34), done.hird_party/gyp

________ running '/usr/bin/python dart/tools/compiler_scripts/generate_my_projects.py' in '/home/Steve/dart'

________ running '/usr/bin/python dart/editor/build/generate_sources.py' in '/home/Steve/dart'

________ running '/usr/bin/python dart/tools/gyp_dart.py' in '/home/Steve/dart'
Traceback (most recent call last):
  File "dart/third_party/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
Error: Command /usr/bin/python dart/tools/gyp_dart.py returned non-zero exit status 1 in /home/Steve/dart
[Steve@charlie dart]$

What version of the product are you using? On what operating system?
dart svn revision 30973.
cat /etc/*release
CentOS release 6.5 (Final)
LSB_VERSION=base-4.0-ia32:base-4.0-noarch:core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch

Please provide any additional information below.

I can't find a complete redhat/centos/Fedora install from source guide in any google search. I'm trying to build from source as I face the gclib 2.15 issue, so pre-built zipped dart-editor for linux fails to run.

@sgjesse
Copy link
Contributor

sgjesse commented Dec 9, 2013

I have successfully been able to build the Dart VM on CentOS 6-v20131120 (the version available on Google Compute Engine) using the following commands:

Install Subversion and the required build-tools.
$ sudo yum -y install subversion
$ sudo yum -y install make
$ sudo yum -y install gcc-c++

Get the depot_tools and add them to the path
$ svn co http://src.chromium.org/svn/trunk/tools/depot_tools
$ export PATH=$PATH:pwd/depot_tools

Get the Dart source and generate makefiles
$ gclient config http://dart.googlecode.com/svn/branches/bleeding_edge/deps/all.deps
$ gclient sync
$ gclient runhooks

Build
$ cd dart
$ tools/build.py -mrelease -ax64 runtime

@sgjesse
Copy link
Contributor

sgjesse commented Dec 10, 2013

Building the SDK require OpenJDK 1.6 as well

$ sudo yum install java-1.6.0-openjdk-devel
$ tools/build.py -mrelease -ax64 create_sdk


Added Area-Infrastructure, OpSys-Linux, NeedsInfo labels.

@DartBot
Copy link
Author

DartBot commented Jan 6, 2014

This comment was originally written by sest...@gmail.com


I followed the procedure to compile on CentOS 6.4

Some open points on my side :

  • How to process unit tests ?
    After launching, following command
    $ ./tools/test.py --arch=x64 --runtime=vm
    Traceback (most recent call last):
      File "./tools/test.py", line 29, in <module>
        sys.exit(Main())
      File "./tools/test.py", line 23, in Main
        exit_code = subprocess.call(command)
      File "/usr/lib64/python2.6/subprocess.py", line 478, in call
        p = Popen(*popenargs, **kwargs)
      File "/usr/lib64/python2.6/subprocess.py", line 642, in init
        errread, errwrite)
      File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
        raise child_exception
    OSError: [Errno 2] No such file or directory
  • GCC 4.6 seems to be mandatory ? Default CentOS GCC version is 4.4

@ricowind
Copy link
Contributor

ricowind commented Jan 8, 2014

To drive the tests you are using the dart binary from the repository. You could try copying your local version to that directory and try again (the checked in version is compiled with a never libc version than what you have).
To run the tests copy out/ReleaseX64/dart to tools/testing/bin/linux/dart

@DartBot DartBot added Type-Defect area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. os-linux needs-info We need additional information from the issue author (auto-closed after 14 days if no response) labels Jan 8, 2014
@srawlins
Copy link
Member

At this point, this issue doesn't seem be... about anything specific. Close?

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. needs-info We need additional information from the issue author (auto-closed after 14 days if no response) os-linux
Projects
None yet
Development

No branches or pull requests

5 participants