www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Trying to build dlang.org - what am I doing wrong

reply wobbles <grogan.colin gmail.com> writes:
So - the conversation about the website/documentation piqued my 
interest a bit and I decided to have a go at making the 
documentation more readable.

However, reading the instructions from:
http://wiki.dlang.org/Starting_as_a_Contributor#Fetch_and_build_dlang.org

It should be a simple matter of:
```bash
mkdir -p ~/code; cd ~/code
git clone https://github.com/D-Programming-Language/dlang.org
cd dlang.org
make -f posix.mak LATEST=2069.2
```

However, I get a std.net.curl error during compilation of dub 
(luckily dlang.org doesn't depend on dub, so it doesn't 
particularly matter and I can carry on with my tinkering).

http://pastebin.com/q41AnJyr

I assume theres a problem with the makefiles here - or is it 
stupid user syndrome?
Dec 17 2015
next sibling parent Jimmy Cao <jc2462 cornell.edu> writes:
On Thursday, 17 December 2015 at 08:48:21 UTC, wobbles wrote:
 So - the conversation about the website/documentation piqued my 
 interest a bit and I decided to have a go at making the 
 documentation more readable.

 However, reading the instructions from:
 http://wiki.dlang.org/Starting_as_a_Contributor#Fetch_and_build_dlang.org

 It should be a simple matter of:
 ```bash
 mkdir -p ~/code; cd ~/code
 git clone https://github.com/D-Programming-Language/dlang.org
 cd dlang.org
 make -f posix.mak LATEST=2069.2
 ```

 However, I get a std.net.curl error during compilation of dub 
 (luckily dlang.org doesn't depend on dub, so it doesn't 
 particularly matter and I can carry on with my tinkering).

 http://pastebin.com/q41AnJyr

 I assume theres a problem with the makefiles here - or is it 
 stupid user syndrome?
Do you have libcurl installed? I think it's required to build dub.
Dec 17 2015
prev sibling parent =?UTF-8?Q?S=c3=b6nke_Ludwig?= <sludwig outerproduct.org> writes:
Am 17.12.2015 um 09:48 schrieb wobbles:
 So - the conversation about the website/documentation piqued my interest
 a bit and I decided to have a go at making the documentation more readable.

 However, reading the instructions from:
 http://wiki.dlang.org/Starting_as_a_Contributor#Fetch_and_build_dlang.org

 It should be a simple matter of:
 ```bash
 mkdir -p ~/code; cd ~/code
 git clone https://github.com/D-Programming-Language/dlang.org
 cd dlang.org
 make -f posix.mak LATEST=2069.2
 ```

 However, I get a std.net.curl error during compilation of dub (luckily
 dlang.org doesn't depend on dub, so it doesn't particularly matter and I
 can carry on with my tinkering).

 http://pastebin.com/q41AnJyr

 I assume theres a problem with the makefiles here - or is it stupid user
 syndrome?
This is supposedly an issue in DUB's build.sh that has recently been fixed on GIT master [1]. The problem is caused by the uncommon definition of the $DC variable in posix.mak that resulted in build.sh not recognizing it as DMD and skipping the necessary linker workaround (libphobos2 needs to be passed after libcurl, but by default libphobos2 always gets passed first). Workaround is to edit posix.mak and change DC="$(abspath ${STABLE_DMD}) -conf=$(abspath ${STABLE_DMD_CONF})" to DC=dmd in the "${DUB}:" target. [1]: https://github.com/D-Programming-Language/dub/pull/726
Dec 18 2015