www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - rdmd + ldmd2 = ?

reply "Dicebot" <public dicebot.lv> writes:
$ cat test.d
void main()
{
     import std.stdio;
     writeln("hello");
}
$ rdmd --compiler=ldmd2 test.d
Error: cannot write object file: Error opening output file 
'/tmp/.rdmd-1000/rdmd-test.d-076D4362D54E9EAA8F49CE8F8A45511D/objs/test.o'
$ ls /tmp/.rdmd-1000/rdmd-test.d-076D4362D54E9EAA8F49CE8F8A45511D/
rdmd.deps

Is it an issue of ldmd2 object file output or tweak required from 
rdmd side?

(rdmd build from 2.063.2 tag, ldc 0.11.0)
Sep 25 2013
parent reply "Dav1d" <d dav1d.de> writes:
On Wednesday, 25 September 2013 at 13:26:51 UTC, Dicebot wrote:
 $ cat test.d
 void main()
 {
     import std.stdio;
     writeln("hello");
 }
 $ rdmd --compiler=ldmd2 test.d
 Error: cannot write object file: Error opening output file 
 '/tmp/.rdmd-1000/rdmd-test.d-076D4362D54E9EAA8F49CE8F8A45511D/objs/test.o'
 $ ls 
 /tmp/.rdmd-1000/rdmd-test.d-076D4362D54E9EAA8F49CE8F8A45511D/
 rdmd.deps

 Is it an issue of ldmd2 object file output or tweak required 
 from rdmd side?

 (rdmd build from 2.063.2 tag, ldc 0.11.0)
I think that is a rdmd thing. DMD creates non-existent directories when writing object files, gdc and ldc don't.
Sep 25 2013
parent reply "David Nadlinger" <code klickverbot.at> writes:
On 25 Sep 2013, at 15:45, Dav1d wrote:
 I think that is a rdmd thing. DMD creates non-existent
 directories when writing object files, gdc and ldc don't.
Arguably, ldmd2 should behave exactly the same as DMD, though – in fact, that's its whole raison d'être. Anyway, I have never experienced that problem on my local machine, and at least on OS X, where I just checked it, "ldc2 -of some_random_directory/result result.d" indeed creates some_random_directory. Please create a bug report on GitHub with your operating system details (some Linux flavor?) so we have all the information in one place. David
Sep 25 2013
parent "Dicebot" <public dicebot.lv> writes:
On Wednesday, 25 September 2013 at 15:07:11 UTC, David Nadlinger 
wrote:
 On 25 Sep 2013, at 15:45, Dav1d wrote:
 I think that is a rdmd thing. DMD creates non-existent
 directories when writing object files, gdc and ldc don't.
Arguably, ldmd2 should behave exactly the same as DMD, though – in fact, that's its whole raison d'être. Anyway, I have never experienced that problem on my local machine, and at least on OS X, where I just checked it, "ldc2 -of some_random_directory/result result.d" indeed creates some_random_directory. Please create a bug report on GitHub with your operating system details (some Linux flavor?) so we have all the information in one place. David
https://github.com/ldc-developers/ldc/issues/480
Sep 25 2013