SiegeLord / Tango-D2

A port of the Tango library to D2
http://siegelord.github.com/Tango-D2/
Other
90 stars 38 forks source link

Error compiling with dmd v2.065.0 final release #65

Closed jordisayol closed 10 years ago

jordisayol commented 10 years ago
$ dmd -c -O -release -fPIC -m64 -ofobj/64/tango/math/BigInt.o tango/math/BigInt.d
tango.math.BigInt is deprecated. Please use std.bigint instead.

$ dmd -c -O -release -fPIC -m64 -ofobj/64/tango/io/stream/Patterns.o tango/io/stream/Patterns.d
tango/text/Regex.d(2524): Error: associative array key type TagIndex does not have 'const int opCmp(ref const TagIndex)' member function
tango/text/Regex.d(3676): Error: template instance tango.text.Regex.TDFA!dchar error instantiating
tango/text/Regex.d(4420):        instantiated from here: RegExpT!char
tango/text/Regex.d(4407): Error: tdfa_t.Command is used as a type
tango/text/Regex.d(4420): Error: template instance tango.text.Regex.RegExpT!char error instantiating

$ dmd -c -O -release -fPIC -m64 -ofobj/64/tango/io/FileScan.o tango/io/FileScan.d
tango.io.FileScan is deprecated. Please use tango.io.FilePath.toList or tango.io.vfs.* instead.

$ dmd -c -O -release -fPIC -m64 -ofobj/64/tango/text/Regex.o tango/text/Regex.d
tango/text/Regex.d(2524): Error: associative array key type TagIndex does not have 'const int opCmp(ref const TagIndex)' member function
tango/text/Regex.d(3676): Error: template instance tango.text.Regex.TDFA!dchar error instantiating
tango/text/Regex.d(4420):        instantiated from here: RegExpT!char
tango/text/Regex.d(4407): Error: tdfa_t.Command is used as a type
tango/text/Regex.d(4420): Error: template instance tango.text.Regex.RegExpT!char error instantiating

$ dmd -c -O -release -fPIC -m64 -ofobj/64/tango/net/device/Berkeley.o tango/net/device/Berkeley.d
tango/net/device/Berkeley.d(2282): Error: cannot implicitly convert expression (cast(ulong)cast(uint)s % this.nfdbits) of type ulong to int
SiegeLord commented 10 years ago

Should be good now (save for warnings generated by #66, which I just don't feel like fixing). We lost Variants as associative array keys, which is DMD bug https://d.puremagic.com/issues/show_bug.cgi?id=8561 .

jordisayol commented 10 years ago

Thank you so much for your fast feedback. New tango deb packages compiled with dmd v2.065.0 already uploaded at http://d-apt.sourceforge.net/