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

ldmd2 does not work with rdmd #480

Closed
mihails-strasuns opened this issue Sep 25, 2013 · 1 comment · Fixed by #482
Closed

ldmd2 does not work with rdmd #480

mihails-strasuns opened this issue Sep 25, 2013 · 1 comment · Fixed by #482

Comments

@mihails-strasuns
Copy link
Contributor

Follow-up to http://forum.dlang.org/post/qyykgsqdnpezarncueuu@forum.dlang.org

$ 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

System info (Arch Linux)

$ uname -a
Linux microfog 3.11.1-1-ARCH #1 SMP PREEMPT Sat Sep 14 20:31:35 CEST 2013 i686 GNU/Linux
$ pacman -Qi ldc
Name           : ldc
Version        : 1:0.11.0-3
...
$ pacman -Qi dtools
Name           : dtools
Version        : 2.063.2-2

If there is a relatively simple hotfix possible in either ldc or rdmd, I'd like to add it to Arch package as a workaround while waiting for next release.

@beatgammit
Copy link

Can confirm on Arch x86_64:

$ rdmd --compiler=ldmd2 test.d
Error: cannot write object file: Error opening output file
'/tmp/.rdmd-1000/rdmd-test.d-CB24243AA680E0FBBAB7F17C505311DB/objs/test.o

dnadlinger added a commit to dnadlinger/ldc that referenced this issue Oct 2, 2013
There might be other cases using the LLVM output code as well
that I haven't handled here, but the changes are sufficient to
make LDC work with rdmd on Linux.

GitHub: Fixes ldc-developers#480.
dnadlinger added a commit to dnadlinger/ldc that referenced this issue Oct 2, 2013
There might be other cases using the LLVM output code as well
that I haven't handled here, but the changes are sufficient to
make LDC work with rdmd on Linux.

GitHub: Fixes ldc-developers#480.
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

Successfully merging a pull request may close this issue.

2 participants