Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #255 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

ldc doesn't compile/install if checkout in a directory which contains the ~ character

Reported by: goshawk Assigned to: elrood
Priority: major Milestone:
Component: build system Version: hg tip
Keywords: Cc:

Description

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.

Change History

04/03/09 11:39:11 changed by fvbommel

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in r1193.

Copyright © 2008, LDC Development Team.