[Issue 16962] New: rdmd --build-only --force -c main.d fails: ./main: No such file or directory

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Dec 10 18:03:21 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16962

          Issue ID: 16962
           Summary: rdmd --build-only --force -c main.d fails: ./main: No
                    such file or directory
           Product: D
           Version: D2
          Hardware: x86
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: tools
          Assignee: nobody at puremagic.com
          Reporter: timothee.cour2 at gmail.com

main.d:
void main(){}

rdmd --build-only --force -c main.d fails: ./main: No such file or directory

also tried with -of=main.o and -ofmain.o

IIRC that used to work.

rdmd build 20161118
DMD64 D Compiler v2.072.0


std.file.FileException at std/file.d(679): ./main: No such file or directory
----------------
4   rdmd                                0x000000010d8648ca @trusted bool
std.file.cenforce!(bool).cenforce(bool, const(char)[], const(char)*,
immutable(char)[], ulong) + 150
5   rdmd                                0x000000010d8c64c8 @trusted void
std.file.renameImpl(const(char)[], const(char)[], const(char)*, const(char)*) +
84
6   rdmd                                0x000000010d866308 @safe void
std.file.rename!(immutable(char)[],
immutable(char)[]).rename(immutable(char)[], immutable(char)[]) + 252
7   rdmd                                0x000000010d84645d int
rdmd.rebuild(immutable(char)[], immutable(char)[], immutable(char)[],
immutable(char)[], const(immutable(char)[][immutable(char)[]]),
immutable(char)[][]) + 2649
8   rdmd                                0x000000010d844827 _Dmain + 5327
9   rdmd                                0x000000010d8ac3f7
D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv + 39
10  rdmd                                0x000000010d8ac323 void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 35
11  rdmd                                0x000000010d8ac39c void
rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()
+ 44
12  rdmd                                0x000000010d8ac323 void
rt.dmain2._d_run_main(int, char**, extern (C) int
function(char[][])*).tryExec(scope void delegate()) + 35
13  rdmd                                0x000000010d8ac289 _d_run_main + 497
14  rdmd                                0x000000010d844a2f main + 15
15  libdyld.dylib                       0x00007fff85a195ac start + 0
16  ???                                 0x0000000000000004 0x0 + 4

--


More information about the Digitalmars-d-bugs mailing list