Binaries for Debian Wheezy

Hello all,

I was pretty happy to see ruby 2.1.5 8% faster when compiled clang, but then I got myself struggling to find a binary of clang 3.5 for debian wheezy and really couldn’t :frowning:

So I can’t use that clang compiled ruby in production…

Is there a reasonable easy way to have clang 3.5 on debian wheezy?

thanks,
bráulio

Is it not available through http://llvm.org/apt/?

No, only version 3.4 :frowning:

Is this any good?

https://launchpad.net/debian/+source/llvm-toolchain-3.5

You may have to build it from source if you can't satisfy dependencies.

Maybe something like this:
sudo apt-get build-dep llvm-toolchain-3.5=1:3.5-8
apt-get -b source -t wheezy llvm-toolchain-3.5=1:3.5-8

Ben

But the apt webpage talks about 3.5, what am I missing Sylvestre?

Hello Ben,

Add deb-src from debian unstable and then ran:

~ ❯❯❯ sudo LC_ALL=en apt-get build-dep llvm-toolchain-3.5=1:3.5-8 ⏎
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Build-Depends dependency for llvm-toolchain-3.5 cannot be satisfied because candidate version of package libisl-dev can’t satisfy version requirements

I guess it is not that simple…

You’ll have to add the source repository first.

Yeah, I’ve added to sources.list:
deb-src http://mirrors.gandi.net/debian unstable main contrib

Oops, I’m completely wrong, only version 3.5 is available for debian wheezy on http://llvm.org/apt/!

Sorry and thanks!

On production the difference was really high!! 44% compared to gcc 4.7.2 (which is what debian wheezy is using).

Good work guys!

cheers,
bráulio

~ ❯❯❯ rvm use 2.1.5@noosfero
Using /home/noosfero/.rvm/gems/ruby-2.1.5 with gemset noosfero
~ ❯❯❯ time ruby -e “count = 0; while(count < 100000000); count = count + 1; end; puts count”
100000000
ruby -e 4,19s user 0,01s system 99% cpu 4,201 total

Using /home/noosfero/.rvm/gems/ruby-2.1.5-clang with gemset noosfero
~ ❯❯❯ time ruby -e “count = 0; while(count < 100000000); count = count + 1; end; puts count”
100000000
ruby -e 2,91s user 0,01s system 99% cpu 2,924 total