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

dart doesn't work anymore on centos 6.4 #11920

Closed
DartBot opened this issue Jul 19, 2013 · 19 comments
Closed

dart doesn't work anymore on centos 6.4 #11920

DartBot opened this issue Jul 19, 2013 · 19 comments
Assignees
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. closed-as-intended Closed as the reported issue is expected behavior

Comments

@DartBot
Copy link

DartBot commented Jul 19, 2013

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


What steps will reproduce the problem?

  1. Install dart-sdk
  2. Launch dart
  3. Issue on GLIBC version
    ./dart: /lib64/libc.so.6: version GLIBC_2.15' not found (required by ./dart) ./dart: /lib64/libc.so.6: versionGLIBC_2.14' not found (required by ./dart)

What is the expected output? What do you see instead?
dart has to work on Centos as previous versions.
Tested previous working version: 0.5.11.1_r23200

What version of the product are you using? On what operating system?
0.6.5.0_r25017

Please provide any additional information below.
Tested on Centos 6.4 64 bits with GLIBC 2.12

@iposva-google
Copy link
Contributor

Added Area-Build, Triaged labels.

@ricowind
Copy link
Contributor

Set owner to @ricowind.

@DartBot
Copy link
Author

DartBot commented Jul 31, 2013

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


For anyone else who runs into this problem. The working build mentioned in the first comment can be found here: https://storage.googleapis.com/dart-editor-archive-integration/23200/darteditor-linux-64.zip

@DartBot
Copy link
Author

DartBot commented Aug 9, 2013

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


Do you have any update on this issue ?
A working plan ?
A scheduled version that will fix it ?

@ricowind
Copy link
Contributor

We will officially be supporting only 2.15, but may be making versions compiled with 2.12 available at a later time.


Added Fixed label.

@DartBot
Copy link
Author

DartBot commented Aug 14, 2013

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


In the meantime, I will use a quick'n dirty solution that consists of importing Ubuntu 12.04 LTS libraries into Dart SDK. See https://github.com/sestegra/patch-dartsdk-linux

@DartBot
Copy link
Author

DartBot commented Sep 11, 2013

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


I ran into the same issue when running on my debian server. Had to force glibc to testing which I think is not a brilliant idea for a production server. Having a 2.12 version would be really helpful. I don't think that glibc 2.15 is a hart requirement.

@DartBot
Copy link
Author

DartBot commented Sep 12, 2013

This comment was originally written by dhu...@ezuce.com


Here's another workaround that is more safe by compiling dart binary w/glibc statically linked.

 https://plus.google.com/109516887366518833202/posts/TXJsZn6oeq4

Dart maintainers: Could this issue be reopened and compiling binaries statically be permanent solution? Or maybe offer Dart in shared and static downloads?

@DartBot
Copy link
Author

DartBot commented Sep 19, 2013

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


Hi, Douglas

Dart maintainers: Could this issue be reopened and compiling binaries statically be permanent solution

or simply being conformant to the LSB standards?

@mkustermann
Copy link
Member

Dart maintainers: Could this issue be reopened and compiling binaries statically be permanent solution

We have statically linked cross-compiled ARM binaries for some time and it turned out to be an issue. We've had issues with native extensions and nss libraries.

or simply being conformant to the LSB standards?

Could you clarify this a bit?

@sethladd
Copy link
Contributor

sethladd commented Oct 7, 2013

The issue requests that dart binaries work on centos 6.4. The binaries we ship do not work on centos 6.4, so I am changing the resolution of the issue.


Added AsDesigned label.

@sethladd
Copy link
Contributor

sethladd commented Oct 7, 2013

For the record, we can no longer run Dart VM binary on Heroku (heroku uses an older version of glibc)

@sethladd
Copy link
Contributor

sethladd commented Oct 7, 2013

Also:

SUSE(Novell) version 11 uses 2.11:
https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service_pack=sp3&architecture=i386&package_name=glibc
 
Red Hat and CentOS 6.4 use 2.12 (scroll down to glibc-*):
http://mirror.centos.org/centos/6.4/os/x86_64/Packages/
 
Debian stable is newer at 2.13, but even that still isn’t new enough:
http://packages.debian.org/stable/libs/libc0.1
http://ftp.us.debian.org/debian/pool/main/e/eglibc/libc6_2.13-38_amd64.deb
 
You simply can’t run Dart on the most common Linux distributions.

@sethladd
Copy link
Contributor

sethladd commented Oct 8, 2013

I was trying to build from source on centos 6.2 but ran into this error (see screenshot)

Only Ubuntu 12.04 (precise) through 13.04 (raring) are currently supported.


Attachment:
[Screen Shot 2013-10-07 at 5.04.15 PM.png](https://storage.googleapis.com/google-code-attachments/dart/issue-11920/comment-14/Screen Shot 2013-10-07 at 5.04.15 PM.png) (60.68 KB)

@sethladd
Copy link
Contributor

sethladd commented Oct 8, 2013

To compile on centos 6.2, I had to run:

'yum groupinstall "Development tools"'

Next up, getting Java...

@sethladd
Copy link
Contributor

You will also need gcc 4.6 or greater.

@anders-sandholm
Copy link
Contributor

Removed Area-Build label.
Added Area-Infrastructure label.

@DartBot
Copy link
Author

DartBot commented Dec 10, 2013

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


This is a showstopper for use in the company I am currently working for. All workstations run CentOs 6.4

@DartBot
Copy link
Author

DartBot commented Dec 10, 2013

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


I built dart-sdk on ubuntu and included libc to static, tar'ed up binaries and generated an rpm.
  http://download.sipfoundry.org/pub/release-4.6.0-unstable/4.6.0/CentOS_6/x86_64/

Instructions if you want to build yourself
=============================================
Step 1. Install Ubuntu 12.04LTS w/minimal packages. Use 20GB HDD to make room for code.

Step 2. Walk thru steps to compile dart (I also had to install unzip package which was not in instructions) .

 https://code.google.com/p/dart/wiki/GettingTheSource?tm=4

Example:
  ./tools/build.py --mode=release --arch=x64

Step 3. Once you get it to compile w/o errors, edit make script to compile dart binary w/static libs

Index: tools/gyp/common.gypi
===================================================================

--- tools/gyp/common.gypi (revision 27268)
+++ tools/gyp/common.gypi (working copy)
@@-19,7 +19,7 @­@
   'conditions': [
     [ 'OS=="linux"', {
       'target_defaults': {

  •    'ldflags': [ '-pthread', ],
    
  •    'ldflags': [ '-static -pthread', ],
    
           },
         }],
         [ 'OS=="win"', {

Step 4. Delete output in ./out dir and recompile.

cd ~/dart/sdk/dart
rm -rf ./out

./tools/build.py --mode=release --arch=x64
cd ~/dart/sdk/dart/out/ReleaseX64
tar -cvzf ~/dart-sdk-x86_64.tgz dart-sdk/{lib,include,bin,util,revision,README,version}

./tools/build.py --mode=release --arch=ia32
cd ~/dart/sdk/dart/out/ReleaseX64
tar -cvzf ~/dart-sdk-i386.tgz dart-sdk/{lib,include,bin,util,revision,README,version}

In my case dart binary went from 7MB to 9MB which is entirely acceptable.

Use fpm to create an rpm

fpm -f -s tar -t rpm -n dart-sdk -v $(dart-sdk_VER) --iteration $(dart-sdk_REL)
      --after-install $(SRC)/dart-sdk/after-install.sh
      --license BSD --prefix /opt -a
           x86_64 dart-sdk-$(dart-sdk_VER)-$(dart-sdk_REL).x86_64.rpm

after-install.sh
=======================
#!/bin/sh

dart sdk tarball perms are a little strange, repair here

find /opt/dart-sdk -perm /u+x -exec chmod ga+x {} ;
find /opt/dart-sdk -perm /u+r -exec chmod ga+r {} ;

@DartBot DartBot added Type-Defect area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. closed-as-intended Closed as the reported issue is expected behavior labels Dec 10, 2013
This issue was closed.
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. closed-as-intended Closed as the reported issue is expected behavior
Projects
None yet
Development

No branches or pull requests

7 participants