www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - LDC2 snapshot package and package scripts

reply Christian Kamm <kamm-incasoftware removethis.de> writes:
If you'd like to try something with LDC2 on x86-64 linux and don't want to 
go through the hassle of compiling it yourself, grab this:
http://www.incasoftware.de/~kamm/ldc/ldc-2.052-snapshot.tbz2

It's a dmd-style extract-and-done package.

Be warned, it's not an official release and hasn't been tested beyond a 
'Hello World'! Also, the ldc branches of druntime and phobos are lagging 
significantly behind the upstream branches.

The reason this package exists is that I had some hours left over and 
decided to create packaging scripts for ldc2 in the hope of allowing the 
current maintainers to make more frequent releases. If you sometimes want to 
compile LLVM, LDC2, druntime and phobos from scratch without bothering about 
the details, give this a try:
http://www.incasoftware.de/~kamm/ldc/ldc2-buildscripts.tbz2 .
(you need libconfig++, it's libconfig++8-dev in Ubuntu)

If there's something wrong with the package, please let me know. Bugs in LDC 
should go to http://www.dsource.org/projects/ldc/newticket .
Aug 06 2011
parent reply dsimcha <dsimcha yahoo.com> writes:
On 8/6/2011 2:24 PM, Christian Kamm wrote:
 If you'd like to try something with LDC2 on x86-64 linux and don't want to
 go through the hassle of compiling it yourself, grab this:
 http://www.incasoftware.de/~kamm/ldc/ldc-2.052-snapshot.tbz2

 It's a dmd-style extract-and-done package.

 Be warned, it's not an official release and hasn't been tested beyond a
 'Hello World'! Also, the ldc branches of druntime and phobos are lagging
 significantly behind the upstream branches.

 The reason this package exists is that I had some hours left over and
 decided to create packaging scripts for ldc2 in the hope of allowing the
 current maintainers to make more frequent releases. If you sometimes want to
 compile LLVM, LDC2, druntime and phobos from scratch without bothering about
 the details, give this a try:
 http://www.incasoftware.de/~kamm/ldc/ldc2-buildscripts.tbz2 .
 (you need libconfig++, it's libconfig++8-dev in Ubuntu)

 If there's something wrong with the package, please let me know. Bugs in LDC
 should go to http://www.dsource.org/projects/ldc/newticket .

It seems that, unlike DMD, the search directories aren't configured right by default. I get this on trying to build hello world after extracting the tarball and nothing else: object.d: Error: module object is in file 'object.d' which cannot be read import path[0] = /usr/local/bin/../import
Aug 06 2011
parent Christian Kamm <kamm-incasoftware removethis.de> writes:
dsimcha wrote:

 On 8/6/2011 2:24 PM, Christian Kamm wrote:
 If there's something wrong with the package, please let me know. Bugs in
 LDC should go to http://www.dsource.org/projects/ldc/newticket .

It seems that, unlike DMD, the search directories aren't configured right by default. I get this on trying to build hello world after extracting the tarball and nothing else: object.d: Error: module object is in file 'object.d' which cannot be read import path[0] = /usr/local/bin/../import

The paths should be set up correctly. It probably takes a ldc2.conf from somewhere on your system instead of the one next to the executable. Could you compile with -v and check the "config" line?
Aug 06 2011