digitalmars.D.ldc - rdmd + ldmd2 = ?
- Dicebot (14/14) Sep 25 2013 $ cat test.d
- Dav1d (3/18) Sep 25 2013 I think that is a rdmd thing. DMD creates non-existent
- David Nadlinger (10/12) Sep 25 2013 Arguably, ldmd2 should behave exactly the same as DMD, though – in
- Dicebot (3/16) Sep 25 2013 https://github.com/ldc-developers/ldc/issues/480
$ 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
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
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
On Wednesday, 25 September 2013 at 15:07:11 UTC, David Nadlinger wrote:On 25 Sep 2013, at 15:45, Dav1d wrote:https://github.com/ldc-developers/ldc/issues/480I 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