Hi,
I'm trying to compile ldc rev 1178 in a directory named "ldc-0.9.1~20090403" after cmake ./ and make runtime i get the error:
[60%] Generating core/Memory.o, core/Memory.bc
cd "/home/goshawk/Documents/Projects/MOTU/ldc/d1/ldc/ldc-0.9.1~20090403/obj-x86_64-linux-gnu/runtime" && ../bin/ldc -c -I/home/goshawk/Documents/Projects/MOTU/ldc/d1/ldc/ldc-0.9.1~20090403/runtime/internal -output-bc /home/goshawk/Documents/Projects/MOTU/ldc/d1/ldc/ldc-0.9.1~20090403/obj-x86_64-linux-gnu/runtime/../tango/lib/common/tango/core/Memory.d -of/home/goshawk/Documents/Projects/MOTU/ldc/d1/ldc/ldc-0.9.1~20090403/obj-x86_64-linux-gnu/runtime/core/Memory.o -g -w -d
object.d: Error: module object cannot read file 'object.d'
This problem seems to be related to the ldc.conf file in /home/goshawk/Documents/Projects/MOTU/ldc/d1/ldc/ldc-0.9.1~20090403/obj-x86_64-linux-gnu/bin/ which contains:
// This configuration file uses libconfig.
// See http://www.hyperrealm.com/libconfig/ for syntax details.
// The default group is required
default:
{
// 'switches' holds array of string that are appends to the command line
// arguments before they are parsed.
switches = [
"-I/home/goshawk/Documents/Projects/MOTU/ldc/d1/ldc/ldc-0.9.1~20090403/obj-x86_64-linux-gnu/runtime/../tango",
"-I/home/goshawk/Documents/Projects/MOTU/ldc/d1/ldc/ldc-0.9.1~20090403/obj-x86_64-linux-gnu/runtime/../tango/lib/common",
"-L-L/home/goshawk/Documents/Projects/MOTU/ldc/d1/ldc/ldc-0.9.1~20090403/obj-x86_64-linux-gnu/runtime/../lib",
"-d-version=Tango",
"-defaultlib=tango-base-ldc",
"-debuglib=tango-base-ldc"
];
};
If i copy the tango library somewhere (the one in /home/goshawk/Documents/Projects/MOTU/ldc/d1/ldc/ldc-0.9.1~20090403/obj-x86_64-linux-gnu/runtime/../tango ) and i set ldc.conf according to the new path which does not have any "~" it works.
If i build ldc in a directory which does not have the "~" character it works.