Forum Navigation
Tango with D2.0?
Posted: 10/23/08 05:21:53Is there any way to compile Tango for D2.0? Are there any versions that support this?
I'm running Ubuntu 8.04, using DMD 2.019.
I tried issuing dsss net install tango, which proceeds to checkout a copy of Tango into my /tmp folder, tries to compile, and then starts to spudder:
Exported revision 937. tangocore You have chosen to install Tango via DSSS. If you follow through, you will no longer be able to build Phobos-based software. Uninstalling tango via DSSS WILL NOT uninstall the tango core, so this operation is difficult to undo. Are you sure you want to do this? yes Building Tango core... * snipped * make[1]: Leaving directory `/tmp/DSSS_tango/tango/tango/lib/gc/basic' make -C ./common/tango -fposix.mak lib DC=dmd ADD_DFLAGS="" ADD_CFLAGS="-m32" make[1]: Entering directory `/tmp/DSSS_tango/tango/tango/lib/common/tango' dmd -c -release -O -inline -w -nofloat -version=Posix -Hfcore/BitManip.di core/BitManip.d -ofcore/BitManip.o /tmp/DSSS_tango/tango/tango/lib/../object.di(172): function object.Exception.toString overrides base class function object.Object.toString, but is not marked with 'override' make[1]: *** [core/BitManip.o] Error 1 make[1]: Leaving directory `/tmp/DSSS_tango/tango/tango/lib/common/tango' make: *** [lib] Error 2 = = *** Error *** = Command bash returned with code 256, aborting.Also went to the trunk on DSource, downloaded a zip file of r4034 (didn't feel like messing around with SVN for the moment), and then unzipped it to /tmp/tango-trunk. Issued dsss build in that directory, but these errors raced to my terminal:
Creating imports for DD-tango-core Creating imports for DD-tango-io Creating imports for DD-tango-math Creating imports for DD-tango-net Creating imports for DD-tango-stdc Creating imports for DD-tango-sys Creating imports for DD-tango-sys-linux Creating imports for DD-tango-text Creating imports for DD-tango-text-locale Creating imports for DD-tango-util Creating imports for DD-tango-time tango/core => DD-tango-core lib/common/tango/core/Exception.d(66): constructor object.Exception.this (char[] msg, Exception next = cast(Exception)null) does not match parameter types (invariant(char[24u]),char[],uint) lib/common/tango/core/Exception.d(66): Error: cannot implicitly convert expression ("Memory allocation failed") of type invariant(char[24u]) to char[] lib/common/tango/core/Exception.d(71): Error: cannot implicitly convert expression (this.msg ? super.toString() : "Memory allocation failed") of type const(char)[] to char[] lib/common/tango/core/Exception.d(94): constructor object.Exception.this (char[] msg, Exception next = cast(Exception)null) does not match parameter types (invariant(char[17u]),char[],uint) lib/common/tango/core/Exception.d(94): Error: cannot implicitly convert expression ("Assertion failure") of type invariant(char[17u]) to char[] lib/common/tango/core/Exception.d(111): constructor object.Exception.this (char[] msg, Exception next = cast(Exception)null) does not match parameter types (invariant(char[25u]),char[],uint) lib/common/tango/core/Exception.d(111): Error: cannot implicitly convert expression ("Array index out of bounds") of type invariant(char[25u]) to char[] lib/common/tango/core/Exception.d(125): constructor object.Exception.this (char[] msg, Exception next = cast(Exception)null) does not match parameter types (invariant(char[18u]),Exception) lib/common/tango/core/Exception.d(125): Error: cannot implicitly convert expression ("Finalization error") of type invariant(char[18u]) to char[] lib/common/tango/core/Exception.d(125): Error: cannot implicitly convert expression (e) of type object.Exception to char[] lib/common/tango/core/Exception.d(125): Error: expected 4 arguments, not 2 lib/common/tango/core/Exception.d(143): constructor object.Exception.this (char[] msg, Exception next = cast(Exception)null) does not match parameter types (invariant(char[34u]),char[],uint) lib/common/tango/core/Exception.d(143): Error: cannot implicitly convert expression ("No appropriate switch clause found") of type invariant(char[34u]) to char[] Command /home/deadimp/lib/dsss/bin/rebuild returned with code 256, aborting. Error: Command failed, aborting.The organization for dmd / dsss isn't particularly solid just yet: both are stored in ~/lib, where I've updated my PATH to add their binary directories. I had previously installed the .deb package of DMD 2.014, but uninstalled it after installing 2.019.
Beginning D programmer
Basic experience in PHP, C++, Java, C#, MySQL, HTML, CSS, JavaScript?, VB