www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Building LDC from source

reply Russel Winder <russel winder.org.uk> writes:
Has anyone been able to build LDC from source?  I tried configuring the
CMake stuff but the resulting Make system simply does nothing =E2=80=93 but=
 it
does it very quickly :-)

Thanks.

--=20
Russel.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder ekiga.n=
et
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
Sep 05 2012
parent reply "David Nadlinger" <see klickverbot.at> writes:
On Wednesday, 5 September 2012 at 16:02:22 UTC, Russel Winder 
wrote:
 Has anyone been able to build LDC from source?  I tried 
 configuring the
 CMake stuff but the resulting Make system simply does nothing 
 – but it
 does it very quickly :-)
Do you get any CMake error messages? Just running cmake/ccmake in the root directory should be quite well-tested on various Linux distros, OS X, and Windows, so I'm somewhat surprised to hear that… David
Sep 05 2012
parent reply Russel Winder <russel winder.org.uk> writes:
On Wed, 2012-09-05 at 20:12 +0200, David Nadlinger wrote:
[=E2=80=A6]
 Do you get any CMake error messages? Just running cmake/ccmake in=20
 the root directory should be quite well-tested on various Linux=20
 distros, OS X, and Windows, so I'm somewhat surprised to hear=20
 that=E2=80=A6
Initial problem appears to be that there is no clean target despite the dopcumentation. Then I found I didn't have libconfig++ installed but the build wasn't telling me that. Now I actually get some activity, but no clean. ldc2 builds to 43MB of file, but then the build fails for some reason to do with not finding druntime. Builds really should work out of the box :-( --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Sep 05 2012
parent reply "jerro" <a a.com> writes:
 reason to do with not finding druntime.
You probably didn't do git submodule init; git submodule update So it doesn't find druntime because there is no druntime :D. There are build instructions on the LDC github wiki that always worked for me on Debian Wheezy.
Sep 05 2012
next sibling parent reply Russel Winder <russel winder.org.uk> writes:
On Thu, 2012-09-06 at 02:30 +0200, jerro wrote:
 reason to do with not finding druntime.
=20 You probably didn't do =20 git submodule init; git submodule update
Probably not, will try it now.
 So it doesn't find druntime because there is no druntime :D.=20
 There are build instructions on the LDC github wiki that always=20
 worked for me on Debian Wheezy.
Any idea why -j9? It seems very specific and is only really going to help on a 10 processor/core or more system. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Sep 05 2012
parent "jerro" <a a.com> writes:
On Thursday, 6 September 2012 at 00:56:39 UTC, Russel Winder 
wrote:
 On Thu, 2012-09-06 at 02:30 +0200, jerro wrote:
 reason to do with not finding druntime.
You probably didn't do git submodule init; git submodule update
Probably not, will try it now.
 So it doesn't find druntime because there is no druntime :D. 
 There are build instructions on the LDC github wiki that 
 always worked for me on Debian Wheezy.
Any idea why -j9? It seems very specific and is only really going to help on a 10 processor/core or more system.
I don't know, but I assume that whoever wrote the instructions was using a machine with 8 cores. Using n + 1 (where n is the number of cores) threads with make is supposed to be faster than using n threads. At least that's what people say. I have only tested this once and it turned out to be true in that case but that hardly proves it.
Sep 05 2012
prev sibling next sibling parent reply Russel Winder <russel winder.org.uk> writes:
On Thu, 2012-09-06 at 02:30 +0200, jerro wrote:
 reason to do with not finding druntime.
=20 You probably didn't do =20 git submodule init; git submodule update =20 So it doesn't find druntime because there is no druntime :D.=20 There are build instructions on the LDC github wiki that always=20 worked for me on Debian Wheezy.
Thanks for this "heads up", worked a treat. Moral of story: LDC developers should change the readme.txt pointing people explicitly at the wrong place to find the right build instructions. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Sep 05 2012
parent "jerro" <a a.com> writes:
 Moral of story: LDC developers should change the readme.txt 
 pointing
 people explicitly at the wrong place to find the right build
 instructions.
You're right. I opened a pull request.
Sep 05 2012
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2012-09-06 02:30, jerro wrote:
 reason to do with not finding druntime.
You probably didn't do git submodule init; git submodule update
Or in one command: $ git submodule update --init You can also add --recursive to be on the safe side. -- /Jacob Carlborg
Sep 06 2012
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 9/6/12 9:22 AM, Jacob Carlborg wrote:
 On 2012-09-06 02:30, jerro wrote:
 reason to do with not finding druntime.
You probably didn't do git submodule init; git submodule update
Or in one command: $ git submodule update --init You can also add --recursive to be on the safe side.
BTW I've added pointers for the LDC instructions to the download page: http://dlang.org/download.html. Feedback welcome. Andrei
Sep 06 2012
next sibling parent reply "Dejan Lekic" <dejan.lekic gmail.com> writes:
On Thursday, 6 September 2012 at 09:04:57 UTC, Andrei 
Alexandrescu wrote:
 On 9/6/12 9:22 AM, Jacob Carlborg wrote:
 On 2012-09-06 02:30, jerro wrote:
 reason to do with not finding druntime.
You probably didn't do git submodule init; git submodule update
Or in one command: $ git submodule update --init You can also add --recursive to be on the safe side.
BTW I've added pointers for the LDC instructions to the download page: http://dlang.org/download.html. Feedback welcome. Andrei
Andrei, Fedora has LDC in the official repository (that should be clearly stated there). So, a Fedora user installs LDC by simple: yum install ldc-2
Sep 06 2012
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 9/6/12 11:14 AM, Dejan Lekic wrote:
 Andrei, Fedora has LDC in the official repository (that should be
 clearly stated there). So, a Fedora user installs LDC by simple:

 yum install ldc-2
Done, let me know. Andrei
Sep 06 2012
parent reply Ellery Newcomer <ellery-newcomer utulsa.edu> writes:
On 09/06/2012 10:16 AM, Andrei Alexandrescu wrote:
 On 9/6/12 11:14 AM, Dejan Lekic wrote:
 Andrei, Fedora has LDC in the official repository (that should be
 clearly stated there). So, a Fedora user installs LDC by simple:

 yum install ldc-2
Done, let me know. Andrei
the -2 is not necessary; also this doesn't install phobos or druntime. yum install ldc ldc-phobos-devel ldc-druntime-devel should bring in everything necessary for compiling.
Sep 06 2012
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 9/6/12 10:37 PM, Ellery Newcomer wrote:
 On 09/06/2012 10:16 AM, Andrei Alexandrescu wrote:
 On 9/6/12 11:14 AM, Dejan Lekic wrote:
 Andrei, Fedora has LDC in the official repository (that should be
 clearly stated there). So, a Fedora user installs LDC by simple:

 yum install ldc-2
Done, let me know. Andrei
the -2 is not necessary; also this doesn't install phobos or druntime. yum install ldc ldc-phobos-devel ldc-druntime-devel should bring in everything necessary for compiling.
Fixed, thanks. Andrei
Sep 06 2012
prev sibling next sibling parent Jens Mueller <jens.k.mueller gmx.de> writes:
Andrei Alexandrescu wrote:
 On 9/6/12 9:22 AM, Jacob Carlborg wrote:
On 2012-09-06 02:30, jerro wrote:
reason to do with not finding druntime.
You probably didn't do git submodule init; git submodule update
Or in one command: $ git submodule update --init You can also add --recursive to be on the safe side.
BTW I've added pointers for the LDC instructions to the download page: http://dlang.org/download.html. Feedback welcome.
Better add links to https://github.com/ldc-developers/ldc/wiki/Installation for building on Linux and https://github.com/ldc-developers/ldc/wiki/Building-and-hacking-LDC-on-Windows-using-MSVC for building on Windows. Jens
Sep 06 2012
prev sibling next sibling parent reply Jens Mueller <jens.k.mueller gmx.de> writes:
Andrei Alexandrescu wrote:
 On 9/6/12 9:22 AM, Jacob Carlborg wrote:
On 2012-09-06 02:30, jerro wrote:
reason to do with not finding druntime.
You probably didn't do git submodule init; git submodule update
Or in one command: $ git submodule update --init You can also add --recursive to be on the safe side.
BTW I've added pointers for the LDC instructions to the download page: http://dlang.org/download.html. Feedback welcome.
I think you forgot to add the Gentoo logo to git. Jens
Sep 06 2012
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 9/6/12 11:57 AM, Jens Mueller wrote:
 BTW I've added pointers for the LDC instructions to the download
 page: http://dlang.org/download.html. Feedback welcome.
I think you forgot to add the Gentoo logo to git. Jens
You're right, thanks! Done now. Andrei
Sep 06 2012
parent reply Jens Mueller <jens.k.mueller gmx.de> writes:
Andrei Alexandrescu wrote:
 On 9/6/12 11:57 AM, Jens Mueller wrote:
BTW I've added pointers for the LDC instructions to the download
page: http://dlang.org/download.html. Feedback welcome.
I think you forgot to add the Gentoo logo to git. Jens
You're right, thanks! Done now.
Link for Windows should be https://github.com/ldc-developers/ldc/wiki/Building-and-hacking-LDC-on-Windows-using-MSVC Jens
Sep 06 2012
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 9/6/12 10:07 PM, Jens Mueller wrote:
 Andrei Alexandrescu wrote:
 On 9/6/12 11:57 AM, Jens Mueller wrote:
 BTW I've added pointers for the LDC instructions to the download
 page: http://dlang.org/download.html. Feedback welcome.
I think you forgot to add the Gentoo logo to git. Jens
You're right, thanks! Done now.
Link for Windows should be https://github.com/ldc-developers/ldc/wiki/Building-and-hacking-LDC-on-Windows-using-MSVC
Oops, thanks. Fixed now. Andrei
Sep 06 2012
prev sibling parent Russel Winder <russel winder.org.uk> writes:
On Thu, 2012-09-06 at 11:05 +0200, Andrei Alexandrescu wrote:
[=E2=80=A6]
 BTW I've added pointers for the LDC instructions to the download page:=
=20
 http://dlang.org/download.html. Feedback welcome.
As long as LDC continues to track the current D version, I am sold on it. No statistically significant numbers yet but indications are that LDC produces faster code than DMD on Debian Unstable running on my twin Xeon. --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.n= et 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Sep 06 2012