Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Error installing tango with dsss under 64bit linux

Moderators: larsivi kris

Posted: 04/16/08 20:17:22

tango/text => DG-tango-text
+ /usr/local/bin/rebuild  -Idsss_imports/ -I. -S./ -I/usr/local/include/d -S/usr/local/lib/ -I/usr/local/include/d -S/usr/local/lib -I/root/d/include/d -S/root/d/lib  -oqdsss_objs/G  -explicit -lib tango/text/convert/TimeStamp.d tango/text/convert/Integer.d tango/text/convert/Layout.d tango/text/convert/Utf.d tango/text/convert/Sprint.d tango/text/convert/UnicodeBom.d tango/text/convert/Float.d tango/text/convert/Format.d tango/text/Util.d tango/text/stream/SimpleIterator.d tango/text/stream/LineIterator.d tango/text/stream/RegexIterator.d tango/text/stream/StreamIterator.d tango/text/stream/QuoteIterator.d tango/text/Ascii.d tango/text/Text.d tango/text/UnicodeData.d tango/text/Unicode.d tango/text/Properties.d tango/text/Regex.d -oflibDG-tango-text.a
tango/text/Regex.d:3649: Error: cannot change reference to static array 'ap'
tango/text/Regex.d:3649: Error: cannot assign to static array ap
tango/text/Regex.d:3650: Error: cannot change reference to static array 'ap'
tango/text/Regex.d:3650: Error: 'ap' is not a scalar, it is a __va_list_tag [1LU]
tango/text/Regex.d:3650: Error: incompatible types for ((ap) += (16LU)): '__va_list_tag [1LU]' and 'ulong'
tango/text/Regex.d:3650: Error: 'ap' is not an arithmetic type
Command /usr/local/bin/rebuild returned with code 256, aborting.

Using gcc version 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020))

Author Message

Posted: 04/16/08 20:54:09

Hi Erihel!

It seems like you've gotten an old version of Tango, please try 0.99.5 or later (svn trunk).

Posted: 04/16/08 22:09:01

Sorry for posting in wrong category. As for tango I use dsss net install which downloads tango from svn (this error was with revision 3433).

Posted: 04/16/08 22:22:53

I cannot explain how or why, but the file with that particular error is not in Tango svn trunk, and hasn't been since 0.99.4, so probably you have some sort of unclean install.

Posted: 04/17/08 00:14:30 -- Modified: 04/17/08 00:28:35 by
Erihel -- Modified 2 Times

I didn't install tango before so I can't have it's old files. I've compiled tango from svn. Don't know why but dsss downloads old files from svn (but it says that they are the newest).

Anyway now I have tango installed but I cannot compile any example with it. I'm getting

/usr/local/lib/libDG-tango-io.a(tango.io.Conduit.o): In function `_D5tango2io7Conduit7Conduit5errorMFAaZv':
Conduit.d:(.text+0x180): undefined reference to `_D5tango4core9Exception11IOException7__ClassZ'
Conduit.d:(.text+0x195): undefined reference to `_D5tango4core9Exception11IOException5_ctorMFAaZC5tango4core9Exception11IOException'
/usr/local/lib/libDG-tango-io.a(tango.io.Buffer.o): In function `_D5tango2io6Buffer6Buffer5errorMFAaZv':
Buffer.d:(.text+0x17d9): undefined reference to `_D5tango4core9Exception11IOException7__ClassZ'
Buffer.d:(.text+0x17ee): undefined reference to `_D5tango4core9Exception11IOException5_ctorMFAaZC5tango4core9Exception11IOException'
collect2: ld returned 1 exit status
Command /usr/local/bin/rebuild returned with code 65280, aborting.
Error: Command failed, aborting.

With code:

module test;

import  tango.io.Console;

void main()
{
   Cout("Hello, World").newline;
}

I see someone has similar error with tango on 64bit gdc here http://dsource.org/projects/tango/forums/topic/444

Posted: 04/17/08 11:13:12

Does look like the same problem I had. Can't help because I didn't get anywhere myself. But I know it's not just some oddity with my machine now!

Posted: 04/17/08 16:06:07

Can't say I understand the problem with DSSS (and it is not really under our jurisdiction). As for the second problem that also have, I'm sorry to say that I really have no idea :( If any of you could give me ssh access for debugging, that could possibly help. Mail me at larsivar at igesund dot net if this is a possibility.

Posted: 04/17/08 23:24:09

Today I've installed DMD 1.028 on diffrent PC with 32bit Windows XP. I've compiled tango but when I want to compile some examples I get "Exception" undefined reference again.

Posted: 04/18/08 16:03:34

Erihel: Could you please show your complete Tango install process?

Posted: 04/18/08 17:55:50 -- Modified: 04/18/08 17:56:54 by
Erihel

svn co ....
dsss build
dsss install

finished.

Posted: 04/18/08 18:02:48

That doesn't install the Tango runtime. Please read TopicInstallTango.

Posted: 04/25/08 20:16:57

There is one possibility I forgot about - on some systems, GDC checks some specific directory for its libs first (/usr/lib/gcc/i486-linux-gnu/4.1.3/ on my computer) and it may pick up an old or phobos lib from there. Try

gdc -print-search-dirs

It is possible that this is a bug in our install scripts, will check that later.

Posted: 04/25/08 20:43:29 -- Modified: 04/25/08 20:47:18 by
Cyborg16

I checked the most obvious of those directories before and checked some more just now... nothing obvious like phobos or tango anyway. Not exactly switched on now, so I might have missed something.

Here's the (reformatted) output of that command, using one of the tango gdc packages. The /home/gregor entries really shouldn't be there, although they're not hurting...

install:
/home/gregor/d/tango/0.99.5/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/

programs:
/usr/local/gdc/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.1.2/
/usr/local/gdc/bin/../libexec/gcc/
/home/gregor/d/tango/0.99.5/gdc/libexec/gcc/x86_64-unknown-linux-gnu/4.1.2/
/home/gregor/d/tango/0.99.5/gdc/libexec/gcc/x86_64-unknown-linux-gnu/4.1.2/
/home/gregor/d/tango/0.99.5/gdc/libexec/gcc/x86_64-unknown-linux-gnu/
/home/gregor/d/tango/0.99.5/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/
/home/gregor/d/tango/0.99.5/gdc/lib/gcc/x86_64-unknown-linux-gnu/
/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.1.2/
/usr/libexec/gcc/x86_64-unknown-linux-gnu/
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/
/usr/lib/gcc/x86_64-unknown-linux-gnu/
/usr/local/gdc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu/4.1.2/
/usr/local/gdc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../x86_64-unknown-linux-gnu/bin/
/home/gregor/d/tango/0.99.5/gdc/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu/4.1.2/
/home/gregor/d/tango/0.99.5/gdc/x86_64-unknown-linux-gnu/bin/

libraries:
/usr/local/gdc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.2/
/usr/local/gdc/bin/../lib/gcc/
/home/gregor/d/tango/0.99.5/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/
/usr/local/gdc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../x86_64-unknown-linux-gnu/lib/x86_64-unknown-linux-gnu/4.1.2/
/usr/local/gdc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../x86_64-unknown-linux-gnu/lib/
/home/gregor/d/tango/0.99.5/gdc/x86_64-unknown-linux-gnu/lib/x86_64-unknown-linux-gnu/4.1.2/
/home/gregor/d/tango/0.99.5/gdc/x86_64-unknown-linux-gnu/lib/
/usr/local/gdc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../x86_64-unknown-linux-gnu/4.1.2/
/usr/local/gdc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../
/home/gregor/d/tango/0.99.5/gdc/lib/x86_64-unknown-linux-gnu/4.1.2/
/home/gregor/d/tango/0.99.5/gdc/lib/
/lib/x86_64-unknown-linux-gnu/4.1.2/
/lib/
/usr/lib/x86_64-unknown-linux-gnu/4.1.2/
/usr/lib/

If you wanted to try debugging over ssh, I wouldn't really mind (although I might need to set something up first). I'm not particularly bothered about gdc for now, so there'd only be point if you particularly want to get to the bottom of this.