Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#44377 - [dtools] rdmd can't compile: "Executable file not found: ldmd2"

Attached to Project: Community Packages
Opened by Erich Gubler (ErichDonGubler) - Friday, 27 March 2015, 18:23 GMT
Last edited by Mihails Strasuns (Dicebot) - Tuesday, 07 April 2015, 05:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Mihails Strasuns (Dicebot)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

rdmd throws the following error when trying to compile a D source file:

`std.process.ProcessException@/build/ldc/src/ldc/runtime/phobos/std/process.d(370): Executable file not found: ldmd2`

Steps to reproduce:

1. Install dmd and dtools packages with yaourt

2. Attempt to run rdmd on source file (i.e., [this](http://pastebin.com/EkE14bp8))

Screenshot of steps [here](http://i.imgur.com/uixHa0y.png).

Additional info:
* dmd version 2.067.0-1; no changes made to config
* dtools version 2.067.0-1
This task depends upon

Closed by  Mihails Strasuns (Dicebot)
Tuesday, 07 April 2015, 05:19 GMT
Reason for closing:  Fixed
Comment by Doug Newgard (Scimmia) - Saturday, 28 March 2015, 00:36 GMT
pkgfile tells me that ldmd2 is part of the ldc package. Do you have that installed?
Comment by Erich Gubler (ErichDonGubler) - Saturday, 28 March 2015, 03:33 GMT
I didn't, installing appears to have resolved my issue. My question is, why doesn't just installing the dtools package solve this?
Comment by Mihails Strasuns (Dicebot) - Saturday, 28 March 2015, 11:59 GMT
The problem seems to be that rdmd defaults to compiler it was built with without trying to find any other possible options. And as of recently I have switched all Arch Linux packages to be built with LDC for optimized performance and binary size. This is unexpected side effect.

Looking into patching this. As a temporary workaround you can use `rdmd --compiler=dmd`
Comment by Mihails Strasuns (Dicebot) - Saturday, 28 March 2015, 20:12 GMT
Uploaded 2.067.0-2 which will try auto-detecting available compiler in cases when it wasn't specified explicitly and default one can't be found. Please test once it propagates to your mirror.

Important notice: current auto-detection implementation is adhoc hack. I will try to implement it in cleaner way and get into upstream by 2.068 time - tiny differences in behavior may be expected in that case.
Comment by Mihails Strasuns (Dicebot) - Tuesday, 07 April 2015, 05:19 GMT
With no complaints since 28.03 I am closing this as fixed

Loading...