Tango-D2 icon indicating copy to clipboard operation
Tango-D2 copied to clipboard

errors compiling with dmd 2.062 (release)

Open jordisayol opened this issue 12 years ago • 4 comments

$ dmd -c -O -release -m32 -ofobj/32/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 -m32 -ofobj/32/tango/io/device/SerialPort.o tango/io/device/SerialPort.d
tango/core/Array.d(84): Error: argument const(char)[][][0u] to typeof is not an expression
tango/core/Array.d(2293): Error: template instance tango.core.Array.ElemTypeOf!(const(char)[][]) error instantiating
tango/io/device/SerialPort.d(193):        instantiated from here: sort!(const(char)[][])
tango/core/Array.d(2293): Error: cannot return non-void from void function
tango/io/device/SerialPort.d(193): Error: template instance tango.core.Array.sort!(const(char)[][]) error instantiating

$ dmd -c -O -release -m32 -ofobj/32/tango/math/BigInt.o tango/math/BigInt.d
tango.math.BigInt is deprecated. Please use std.bigint instead.

$ dmd -c -O -release -m32 -ofobj/32/tango/core/tools/LinuxStackTrace.o tango/core/tools/LinuxStackTrace.d
tango/core/Array.d(84): Error: argument const(char)[][0u] to typeof is not an expression
tango/core/Array.d(188): Error: template instance tango.core.Array.ElemTypeOf!(const(char)[]) error instantiating
tango/core/tools/LinuxStackTrace.d(569):        instantiated from here: find!(const(char)[], string)
tango/core/tools/LinuxStackTrace.d(569): Error: template instance tango.core.Array.find!(const(char)[], string) error instantiating

$ dmd -c -O -release -m32 -ofobj/32/tango/net/ftp/FtpClient.o tango/net/ftp/FtpClient.d
tango/net/ftp/FtpClient.d(919):        instantiated from here: find!(const(char)[], char)
tango/net/ftp/FtpClient.d(919): Error: template instance tango.core.Array.find!(const(char)[], char) error instantiating

$ dmd -c -O -release -m64 -ofobj/64/tango/io/device/SerialPort.o tango/io/device/SerialPort.d
tango/core/Array.d(84): Error: argument const(char)[][][0LU] to typeof is not an expression

$ dmd -c -O -release -m64 -ofobj/64/tango/core/tools/LinuxStackTrace.o tango/core/tools/LinuxStackTrace.d
tango/core/Array.d(84): Error: argument const(char)[][0LU] to typeof is not an expression

jordisayol avatar Feb 21 '13 22:02 jordisayol

I fixed most of those issues with 222ccc442757a0cbd5eb47eaa0b218334237b507 (it's a DMD regression as usual: http://d.puremagic.com/issues/show_bug.cgi?id=9563 ). There are still some issues with tango/text/Text.d which I need to resolve... (bug http://d.puremagic.com/issues/show_bug.cgi?id=9258)

SiegeLord avatar Feb 22 '13 04:02 SiegeLord

Actually... I don't really like those fixes, as they are broken for some types. I'll need to think about this some more.

SiegeLord avatar Feb 22 '13 15:02 SiegeLord

May I know whether the issue has been fixed in the new version for DMD2.063?When I build tango for dmd2.063,I encountered the same issue as mentioned.

Thanks.

SamHu avatar Jun 11 '13 06:06 SamHu

I can compile most of the library fine with DMD 2.063. There is some issues with the Regex module, but otherwise it should be good to go.

SiegeLord avatar Jun 11 '13 15:06 SiegeLord