Thread overview
RDMD can't eval code because of missing cstream module
Nov 21, 2016
Meta
Nov 21, 2016
Kagamin
Nov 21, 2016
Meta
Nov 21, 2016
Meta
November 21, 2016
I'm having trouble evaluating basic code with rdmd. It's complaining that std/cstream.d does not exist. I checked, and surely enough, it doesn't. My question is why is it looking for cstream.d? Is rdmd out of date, or is there a problem with my dmd install? I am on OSX 10.12.1 (Sierra) and installed dmd using Homebrew.

Here's the terminal output:

$ rdmd --eval="void main(){}"
/var/folders/q_/qpqhvkv57g36j1bq8qpm_mzw0000gn/T/.rdmd-501/eval.4090CC8525DF4BDD8D9084D5F66EDA46.d(6): Error: module cstream is in file 'std/cstream.d' which cannot be read

import path[0] = /var/folders/q_/qpqhvkv57g36j1bq8qpm_mzw0000gn/T/.rdmd-501
import path[1] = /usr/local/Cellar/dmd/2.072.0/include/dlang/dmd

Failed: ["dmd", "-d", "-v", "-c", "-of/var/folders/q_/qpqhvkv57g36j1bq8qpm_mzw0000gn/T/.rdmd-501/rdmd-eval.4090CC8525DF4BDD8D9084D5F66EDA46.d-35D613BB32BCB7BD6CC007543108437C/objs/eval.4090CC8525DF4BDD8D9084D5F66EDA46.o", "/var/folders/q_/qpqhvkv57g36j1bq8qpm_mzw0000gn/T/.rdmd-501/eval.4090CC8525DF4BDD8D9084D5F66EDA46.d", "-I/var/folders/q_/qpqhvkv57g36j1bq8qpm_mzw0000gn/T/.rdmd-501"]
November 21, 2016
https://github.com/dlang/tools/commit/5ed4f176f41b7559c64cf525c07ccf13ca3a5160 this?
November 21, 2016
On Monday, 21 November 2016 at 16:44:34 UTC, Kagamin wrote:
> https://github.com/dlang/tools/commit/5ed4f176f41b7559c64cf525c07ccf13ca3a5160 this?

That seems like a probable cause, but where is cstream being referenced? I did github search for cstream and all it came up with were references from Undead (legacy Phobos library) and in makefiles. I'm not a make expert, but I don't think these are the cause.

https://github.com/search?q=org%3Adlang+cstream&type=Code
November 21, 2016
On Monday, 21 November 2016 at 17:35:14 UTC, Meta wrote:
> On Monday, 21 November 2016 at 16:44:34 UTC, Kagamin wrote:
>> https://github.com/dlang/tools/commit/5ed4f176f41b7559c64cf525c07ccf13ca3a5160 this?
>
> That seems like a probable cause, but where is cstream being referenced? I did github search for cstream and all it came up with were references from Undead (legacy Phobos library) and in makefiles. I'm not a make expert, but I don't think these are the cause.
>
> https://github.com/search?q=org%3Adlang+cstream&type=Code

Actually, looks like this problem was fixed in rdmd master so I guess I will just wait for the next release.