D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6543 - RDMD -I character limitation
Summary: RDMD -I character limitation
Status: RESOLVED DUPLICATE of issue 6452
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-21 09:29 UTC by GreatEmerald
Modified: 2011-08-27 12:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description GreatEmerald 2011-08-21 09:29:27 UTC
This might be an isolated case, but it might also be an indication of deeper issues. If I try to include LuaD using RDMD, and the path I enter into the -I argument is longer than around 25 characters, RDMD fails with an error "Error: cannot read file dmd.d". For example:

---------
#These work correctly:
rdmd -ILuaD -L-llua --build-only -ofLuaTest LuaTest.d
rdmd -I../LuaD -L-llua --build-only -ofLuaTest LuaTest.d
rdmd -I~/LuaD -L-llua --build-only -ofLuaTest LuaTest.d
rdmd -I../../Documents/D/LuaD -L-llua --build-only -ofLuaTest LuaTest.d
rdmd -Iinclude/LuaD -L-llua --build-only -ofLuaTest LuaTest.d

#These throw an error:
rdmd -I../../../Documents/D/LuaD -L-llua --build-only -ofLuaTest LuaTest.d
rdmd -Iprojecttest/include/LuaD -L-llua --build-only -ofLuaTest LuaTest.d
rdmd -I~/Documents/D/LuaD -L-llua --build-only -ofLuaTest LuaTest.d
---------

Like I said, this only happens with LuaD for some reason. Perhaps because of the amount of files it has.

I'm using RDMD build 20110706, DMD v2.054, openSUSE 11.4 x86_64.
Comment 1 Nick Sabalausky 2011-08-25 21:52:00 UTC
This is likely just an instance of issue 6452.

Please check if that's the case by checking RDMD's commandline to DMD with --chatty:

rdmd --chatty -I../../../Documents/D/LuaD -L-llua --build-only -ofLuaTest LuaTest.d
Comment 2 GreatEmerald 2011-08-27 12:21:24 UTC
Yeap, I believe so, the output reads:

dmd -I../../../../Documents/D/LuaD -Isrc -L-llua -v -o- 'clarcomage.d' -I'.' >clarcomage.d.deps
dmd '@/tmp/.rdmd/rdmd.BCB020D4C2774917E15EAB178F8B5D3C.rsp'
Error: cannot read file dmd.d

So I guess it's resolved duplicate, then.

*** This issue has been marked as a duplicate of issue 6452 ***