digitalmars.D - Building LDC from source
- Russel Winder (15/15) Sep 05 2012 Has anyone been able to build LDC from source? I tried configuring the
- David Nadlinger (7/12) Sep 05 2012 Do you get any CMake error messages? Just running cmake/ccmake in
- Russel Winder (18/22) Sep 05 2012 Initial problem appears to be that there is no clean target despite the
- jerro (5/6) Sep 05 2012 You probably didn't do
- Russel Winder (14/22) Sep 05 2012 Any idea why -j9? It seems very specific and is only really going to
- jerro (8/21) Sep 05 2012 I don't know, but I assume that whoever wrote the instructions
- Russel Winder (15/24) Sep 05 2012 Thanks for this "heads up", worked a treat.
- jerro (1/5) Sep 05 2012 You're right. I opened a pull request.
- Jacob Carlborg (6/9) Sep 06 2012 Or in one command:
- Andrei Alexandrescu (4/13) Sep 06 2012 BTW I've added pointers for the LDC instructions to the download page:
- Dejan Lekic (5/21) Sep 06 2012 Andrei, Fedora has LDC in the official repository (that should be
- Andrei Alexandrescu (3/6) Sep 06 2012 Done, let me know.
- Ellery Newcomer (4/11) Sep 06 2012 the -2 is not necessary; also this doesn't install phobos or druntime.
- Andrei Alexandrescu (3/17) Sep 06 2012 Fixed, thanks.
- Jens Mueller (7/23) Sep 06 2012 Better add links to
- Jens Mueller (3/19) Sep 06 2012 I think you forgot to add the Gentoo logo to git.
- Andrei Alexandrescu (3/7) Sep 06 2012 You're right, thanks! Done now.
- Jens Mueller (4/13) Sep 06 2012 Link for Windows should be
- Andrei Alexandrescu (3/15) Sep 06 2012 Oops, thanks. Fixed now.
- Russel Winder (17/19) Sep 06 2012 =20
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
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
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=A6Initial 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
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
On Thu, 2012-09-06 at 02:30 +0200, jerro wrote:Probably not, will try it now.reason to do with not finding druntime.=20 You probably didn't do =20 git submodule init; git submodule updateSo 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
On Thursday, 6 September 2012 at 00:56:39 UTC, Russel Winder wrote:On Thu, 2012-09-06 at 02:30 +0200, jerro wrote: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.Probably not, will try it now.reason to do with not finding druntime.You probably didn't do git submodule init; git submodule updateSo 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.
Sep 05 2012
On Thu, 2012-09-06 at 02:30 +0200, jerro wrote: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_winderreason 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.
Sep 05 2012
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
On 2012-09-06 02:30, jerro wrote:Or in one command: $ git submodule update --init You can also add --recursive to be on the safe side. -- /Jacob Carlborgreason to do with not finding druntime.You probably didn't do git submodule init; git submodule update
Sep 06 2012
On 9/6/12 9:22 AM, Jacob Carlborg wrote:On 2012-09-06 02:30, jerro wrote:BTW I've added pointers for the LDC instructions to the download page: http://dlang.org/download.html. Feedback welcome. AndreiOr in one command: $ git submodule update --init You can also add --recursive to be on the safe side.reason to do with not finding druntime.You probably didn't do git submodule init; git submodule update
Sep 06 2012
On Thursday, 6 September 2012 at 09:04:57 UTC, Andrei Alexandrescu wrote:On 9/6/12 9:22 AM, Jacob Carlborg 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-2On 2012-09-06 02:30, jerro wrote:BTW I've added pointers for the LDC instructions to the download page: http://dlang.org/download.html. Feedback welcome. AndreiOr in one command: $ git submodule update --init You can also add --recursive to be on the safe side.reason to do with not finding druntime.You probably didn't do git submodule init; git submodule update
Sep 06 2012
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-2Done, let me know. Andrei
Sep 06 2012
On 09/06/2012 10:16 AM, Andrei Alexandrescu wrote:On 9/6/12 11:14 AM, Dejan Lekic wrote: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.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-2Done, let me know. Andrei
Sep 06 2012
On 9/6/12 10:37 PM, Ellery Newcomer wrote:On 09/06/2012 10:16 AM, Andrei Alexandrescu wrote:Fixed, thanks. AndreiOn 9/6/12 11:14 AM, Dejan Lekic wrote: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.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-2Done, let me know. Andrei
Sep 06 2012
Andrei Alexandrescu wrote:On 9/6/12 9:22 AM, Jacob Carlborg wrote: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. JensOn 2012-09-06 02:30, jerro wrote:BTW I've added pointers for the LDC instructions to the download page: http://dlang.org/download.html. Feedback welcome.Or in one command: $ git submodule update --init You can also add --recursive to be on the safe side.reason to do with not finding druntime.You probably didn't do git submodule init; git submodule update
Sep 06 2012
Andrei Alexandrescu wrote:On 9/6/12 9:22 AM, Jacob Carlborg wrote:I think you forgot to add the Gentoo logo to git. JensOn 2012-09-06 02:30, jerro wrote:BTW I've added pointers for the LDC instructions to the download page: http://dlang.org/download.html. Feedback welcome.Or in one command: $ git submodule update --init You can also add --recursive to be on the safe side.reason to do with not finding druntime.You probably didn't do git submodule init; git submodule update
Sep 06 2012
On 9/6/12 11:57 AM, Jens Mueller wrote:You're right, thanks! Done now. AndreiBTW 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
Andrei Alexandrescu wrote:On 9/6/12 11:57 AM, Jens Mueller wrote:Link for Windows should be https://github.com/ldc-developers/ldc/wiki/Building-and-hacking-LDC-on-Windows-using-MSVC JensYou're right, thanks! Done now.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
On 9/6/12 10:07 PM, Jens Mueller wrote:Andrei Alexandrescu wrote:Oops, thanks. Fixed now. AndreiOn 9/6/12 11:57 AM, Jens Mueller wrote:Link for Windows should be https://github.com/ldc-developers/ldc/wiki/Building-and-hacking-LDC-on-Windows-using-MSVCYou're right, thanks! Done now.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
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:==20http://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