View mode: basic / threaded / horizontal-split · Log in · Help
November 19, 2012
Re: Bulding latest DMD and associated projects from github master
On Monday, 19 November 2012 at 19:02:18 UTC, Alex Rønne Petersen 
wrote:
>
> Updated the blog post, thanks.

There's errors/incompleteness with the following:

> Next, we build Phobos, which is the standard library containing 
> facilities for concurrency, regular expressions, I/O, signals, 
> math, text manipulation, and so on:
>
> cp /usr/src/phobos;
> gmake -f posix.mak MODEL=64 DMD=../dmd/src/dmd;

You should tell the user to cd into the correct folder first, and 
fix the cp command which is missing the source component.

Excellent instructions otherwise, and a copy of these 
instructions should be included along with the sources. We'll 
also need a version for building & installing on Windows which is 
also absent from the sources.

--rt
November 19, 2012
Re: Bulding latest DMD and associated projects from github master
On 19-11-2012 20:50, Rob T wrote:
> On Monday, 19 November 2012 at 19:02:18 UTC, Alex Rønne Petersen wrote:
>>
>> Updated the blog post, thanks.
>
> There's errors/incompleteness with the following:
>
>> Next, we build Phobos, which is the standard library containing
>> facilities for concurrency, regular expressions, I/O, signals, math,
>> text manipulation, and so on:
>>
>> cp /usr/src/phobos;
>> gmake -f posix.mak MODEL=64 DMD=../dmd/src/dmd;
>
> You should tell the user to cd into the correct folder first, and fix
> the cp command which is missing the source component.
>
> Excellent instructions otherwise, and a copy of these instructions
> should be included along with the sources. We'll also need a version for
> building & installing on Windows which is also absent from the sources.
>
> --rt

That was supposed to say cd, not cp. Fixed.

-- 
Alex Rønne Petersen
alex@lycus.org
http://lycus.org
November 19, 2012
Re: Bulding latest DMD and associated projects from github master
On Monday, 19 November 2012 at 00:40:10 UTC, Rob T wrote:
> First I cloned everything from github master, and that went 
> well but I'm now  encountering a lot of silly stumbling blocks 
> due to inadequate documentation, for example it's clear how to 
> build anything - period.
>
> There may be documentation somewhere(?), but all I could find 
> was this external blog post
> http://xtzgzorex.wordpress.com/2011/07/31/d-building-dmd-and-phobos-on-linux/
>
> The instructions in the blog allowed me to successfully build 
> DMD src with 64-bit arch on Linux. So far so good, but I'm sure 
> this is not the end of the problems I'll encounter.
>
> Being new to this, I'll know immediately where the 
> documentation is failing, so as I get stuck and unstuck I'm in 
> a good position to create missing documentation or improve on 
> the current documentation.
>
> If I'm to try and contribute, I have a few questions, for 
> example can anyone contribute at this level (build process)? If 
> I am allowed to contribute, then what's the process for making 
> contributions?
>
> Thanks.
>
> --rt

Check this out:
https://github.com/carlor/dlang-workspace
November 22, 2012
Re: Bulding latest DMD and associated projects from github master
On 11/19/2012 02:41 AM, Jonathan M Davis wrote:
> So that it uses the dmd that you just built instead of the one in your path.

Presumably if you just copied your newly-built dmd over the top of that one, you 
won't have that problem? ;-)

I've used purely from-source builds of dmd ever since discovering and succeeding 
in following those instructions, so the which-dmd-to-use issue has never really 
come up for me ...
November 22, 2012
Re: Bulding latest DMD and associated projects from github master
On 11/19/2012 08:02 PM, Alex Rønne Petersen wrote:
> Updated the blog post, thanks.

The one other issue I had with those instructions -- you talk of copying 
dmd.conf into /etc, but I've never come across a dmd.conf anywhere in the dmd 
source tree.

I created one manually following instructions somewhere on dlang.org or 
digitalmars.com (I forget where), which I've attached; as you'll see, this is 
based on my installing everything in /opt/dmd rather than /usr/local.  However, 
I've never found any way to auto-generate the dmd.conf file.

Also, am I right that there are also man-files for dmd included in the source? 
Might be worth including a note on how to build and install those.
November 22, 2012
Re: Bulding latest DMD and associated projects from github master
On 22-11-2012 14:51, Joseph Rushton Wakeling wrote:
> On 11/19/2012 08:02 PM, Alex Rønne Petersen wrote:
>> Updated the blog post, thanks.
>
> The one other issue I had with those instructions -- you talk of copying
> dmd.conf into /etc, but I've never come across a dmd.conf anywhere in
> the dmd source tree.
>
> I created one manually following instructions somewhere on dlang.org or
> digitalmars.com (I forget where), which I've attached; as you'll see,
> this is based on my installing everything in /opt/dmd rather than
> /usr/local.  However, I've never found any way to auto-generate the
> dmd.conf file.
>
> Also, am I right that there are also man-files for dmd included in the
> source? Might be worth including a note on how to build and install those.

Fixed the dmd.conf instructions.

There are man files but I honestly have no idea how to build them...

-- 
Alex Rønne Petersen
alex@lycus.org
http://lycus.org
November 22, 2012
Re: Bulding latest DMD and associated projects from github master
Al 22/11/12 14:51, En/na Joseph Rushton Wakeling ha escrit:
> Also, am I right that there are also man-files for dmd included in the source? Might be worth including a note on how to build and install those.

man file should be copied as follow:
*.1 files at /usr/share/man/man1 or /usr/local/share/man/man1
dmd.conf.5 files at /usr/share/man/man5 or /usr/local/share/man/man5

-- 
Jordi Sayol
November 22, 2012
Re: Bulding latest DMD and associated projects from github master
On 11/22/2012 03:26 PM, Jordi Sayol wrote:
> Al 22/11/12 14:51, En/na Joseph Rushton Wakeling ha escrit:
>> Also, am I right that there are also man-files for dmd included in the source? Might be worth including a note on how to build and install those.
>
> man file should be copied as follow:
> *.1 files at /usr/share/man/man1 or /usr/local/share/man/man1
> dmd.conf.5 files at /usr/share/man/man5 or /usr/local/share/man/man5

.... and if I want to put 'em in /opt/dmd instead of /usr/local .... ? 
Obviously the same dir structure, but do I need to put in place any extra notes 
e.g. in dmd.conf to ensure man can find them?
November 22, 2012
Re: Bulding latest DMD and associated projects from github master
Al 22/11/12 15:47, En/na Joseph Rushton Wakeling ha escrit:
> On 11/22/2012 03:26 PM, Jordi Sayol wrote:
>> Al 22/11/12 14:51, En/na Joseph Rushton Wakeling ha escrit:
>>> Also, am I right that there are also man-files for dmd included in the source? Might be worth including a note on how to build and install those.
>>
>> man file should be copied as follow:
>> *.1 files at /usr/share/man/man1 or /usr/local/share/man/man1
>> dmd.conf.5 files at /usr/share/man/man5 or /usr/local/share/man/man5
> 
> .... and if I want to put 'em in /opt/dmd instead of /usr/local .... ? Obviously the same dir structure, but do I need to put in place any extra notes e.g. in dmd.conf to ensure man can find them?

Add the path to your man files in MANPATH environment variable.

$ export MANPATH=$MANPATH":/opt/dmd/man"

-- 
Jordi Sayol
November 22, 2012
Re: Bulding latest DMD and associated projects from github master
On Thursday, November 22, 2012 14:51:14 Joseph Rushton Wakeling wrote:
> On 11/19/2012 08:02 PM, Alex Rønne Petersen wrote:
> > Updated the blog post, thanks.
> 
> The one other issue I had with those instructions -- you talk of copying
> dmd.conf into /etc, but I've never come across a dmd.conf anywhere in the
> dmd source tree.

Yeah. For some reason, it's not in the dmd repository like it should be. There 
are a number of things that are not properly automated about the release 
process and which only Walter has access to (which is why we get issues like 
old source files being left in new releases of dmd). Andrei makes a stink about 
it every release, but AFAIK, Walter has yet to do anything to make it so that 
anyone other than him could create the zip file for a release.

- Jonathan M Davis
1 2 3
Top | Discussion index | About this forum | D home