Ubuntu Tangobos-GDC package for x86_64
Big news here ladies and gentlemen, Tangobos now compiles successfully (with minor patch) on 64bit architectures. As a result you will find the tangobos-gdc SVN Release 58 for x86_64 in the repo as well as at http://download.palos.ro/Debian D Packages/.
So now, we have a complete set of packages (the GDC set) for x86_64. How awesome is that?!
ATTENTION: I am *not* saying this is stable. In fact it is very possible that this will generate quite a lot of segfaults but it is a good start. I am *very* curious to see how well it works (if at all) !?…
Enjoy!
Enjoyed this post?, why not subscribe to the RSS feed!
May 8th, 2008 at 4:51 pm
Hi, thanks a lot for your packages, it is really the best way to get an usable D environment.
Minor nitpick: “.svn” folders are left in the package. I don’t how you package tango, but try using “svn export” instead of “svn co”
May 8th, 2008 at 4:55 pm
Hmm, I’m afraid I *do* use svn co in my scripts (I’m not very familiar with svn options). I will try and change that in the next release, thanks for the tip! This kind of observation is quite helpful :).
May 8th, 2008 at 5:56 pm
Ok zimbatm, I’ve looked into it and in conclusion this is Tangobos’s fault. Somehow, it doesn’t properly link the symbols inside the std/c/time.d file with the external C libraries (as Phobos did) when compiled with DMD.
I made a small patch that solves your problem (even though this approach is horrible), however my (strong) advice for you is to switch to Tango if possible (I am aware that this might be hard depending on how much code you have that relies on Phobos).
As a side note, I *am* discussing with Lars the possibility of re-including Phobos into DMD by default, we’ll see how that goes…
Here’s the patch:
--- time.d 2008-04-06 14:10:25.000000000 +0300 +++ time.d_phobos 2008-02-19 02:22:00.000000000 +0200 @@ -8,7 +8,6 @@ */ module std.c.time; -import std.compat; private import std.c.stddef; @@ -38,10 +37,11 @@ version (Windows) else version (linux) { extern (C) int sysconf(int); - clock_t CLK_TCK; - static this() { - CLK_TCK = cast(clock_t) sysconf(2); - } + extern clock_t CLK_TCK; + /*static this() + { + CLK_TCK = cast(clock_t) sysconf(2); + }*/ } else {You need to save it as “/usr/include/d/tangobos-dmd/std/c/time_patch” and apply it (in the same directory) using:
After this, the compilation should work just fine. Tell me how it goes…