Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors compiling with dmd 2.062 (release) #50

Open
jordisayol opened this issue Feb 21, 2013 · 4 comments
Open

errors compiling with dmd 2.062 (release) #50

jordisayol opened this issue Feb 21, 2013 · 4 comments

Comments

@jordisayol
Copy link

$ 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
@SiegeLord
Copy link
Owner

I fixed most of those issues with 222ccc4 (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
Copy link
Owner

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

@SamHu
Copy link

SamHu commented Jun 11, 2013

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.

@SiegeLord
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants