Thread overview
Building website from git master, why does it checkout DMD v2.066.1 and die?
Apr 18, 2015
Gary Willoughby
Apr 19, 2015
Jacob Carlborg
Apr 19, 2015
Jacob Carlborg
Apr 19, 2015
Jacob Carlborg
Apr 19, 2015
Gary Willoughby
Apr 19, 2015
Jacob Carlborg
Apr 19, 2015
Gary Willoughby
Apr 19, 2015
Vladimir Panteleev
Apr 20, 2015
Gary Willoughby
Apr 20, 2015
Jacob Carlborg
April 18, 2015
I'm trying to build the website from git master and i'm getting some errors. Here is the last part of the output:


...
touch ../dub-0.9.22/.cloned
mkdir -p /tmp/.stable_dmd-2.066.1
TMPFILE=$(mktemp deleteme.XXXXXXXX) && curl -fsSL http://downloads.dlang.org/releases/2014/dmd.2.066.1.linux.zip > ${TMPFILE}.zip && \
		unzip -qd /tmp/.stable_dmd-2.066.1 ${TMPFILE}.zip && rm ${TMPFILE}.zip
cd ../dub-0.9.22 && DC=/tmp/.stable_dmd-2.066.1/dmd2/linux/bin64/dmd ./build.sh
Generating version file...
Running /tmp/.stable_dmd-2.066.1/dmd2/linux/bin64/dmd...
/media/Data/Projects/D/dmd/phobos/std/functional.d(1496): Error: basic type expected, not return
/media/Data/Projects/D/dmd/phobos/std/functional.d(1496): Error: found 'return' when expecting ')'
/media/Data/Projects/D/dmd/phobos/std/functional.d(1496): Error: semicolon expected following function declaration
/media/Data/Projects/D/dmd/phobos/std/functional.d(1496): Error: semicolon expected, not ')'
/media/Data/Projects/D/dmd/phobos/std/functional.d(1496): Error: found ')' instead of statement
/media/Data/Projects/D/dmd/phobos/std/functional.d(1504): Error: unrecognized declaration
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(581): Error: semicolon expected following function declaration
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(581): Error: Declaration expected, not 'return'
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(587): Error: unexpected ( in declarator
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(587): Error: basic type expected, not cast
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(587): Error: found 'cast' when expecting ')'
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(587): Error: no identifier for declarator put(c, int)
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(587): Error: semicolon expected following function declaration
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(587): Error: Declaration expected, not '('
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(588): Error: unexpected ( in declarator
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(588): Error: basic type expected, not "hello"d
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(588): Error: found '"hello"d' when expecting ')'
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(588): Error: no identifier for declarator put(c, int)
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(588): Error: semicolon expected following function declaration
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(588): Error: Declaration expected, not ')'
/media/Data/Projects/D/dmd/phobos/std/range/primitives.d(589): Error: unrecognized declaration
make: *** [../dub-0.9.22/bin/dub] Error 1
ln: failed to create symbolic link ‘./web’: File exists
make: Nothing to be done for `html'.


Any ideas what the issue is here?
April 19, 2015
On 2015-04-18 20:52, Gary Willoughby wrote:
> I'm trying to build the website from git master and i'm getting some
> errors. Here is the last part of the output:
>
> Any ideas what the issue is here?

The makefile isn't updated, see [1]. Trying adding "STABLE_DMD_VER=2.067.0" to the command you're running.

[1] https://github.com/D-Programming-Language/dlang.org/blob/master/posix.mak#L29-L31

-- 
/Jacob Carlborg
April 19, 2015
On 2015-04-19 10:56, Jacob Carlborg wrote:

> The makefile isn't updated, see [1]. Trying adding
> "STABLE_DMD_VER=2.067.0" to the command you're running.

That won't work because someone thought it was a good idea to split the download site per year :( . Try overriding "STABLE_DMD_URL" [1] instead.

[1] https://github.com/D-Programming-Language/dlang.org/blob/master/posix.mak#L31

-- 
/Jacob Carlborg
April 19, 2015
On 2015-04-19 10:56, Jacob Carlborg wrote:

> The makefile isn't updated, see [1]. Trying adding
> "STABLE_DMD_VER=2.067.0" to the command you're running.

Pull request: https://github.com/D-Programming-Language/dlang.org/pull/968

-- 
/Jacob Carlborg
April 19, 2015
On Sunday, 19 April 2015 at 09:06:58 UTC, Jacob Carlborg wrote:
> On 2015-04-19 10:56, Jacob Carlborg wrote:
>
>> The makefile isn't updated, see [1]. Trying adding
>> "STABLE_DMD_VER=2.067.0" to the command you're running.
>
> Pull request: https://github.com/D-Programming-Language/dlang.org/pull/968

If i pass the correct information on the command line it gets past the library errors but now shows linker errors.

This is the command i'm using:

make -f posix.mak DMD=../dmd/src/dmd DUB_VER=0.9.23 STABLE_DMD_VER=2.067.0 STABLE_DMD_URL=http://downloads.dlang.org/releases/2.x/2.067.0/dmd.2.067.0.linux.zip

Here are the errors:

...
touch ../dub-0.9.23/.cloned
mkdir -p /tmp/.stable_dmd-2.067.0
TMPFILE=$(mktemp deleteme.XXXXXXXX) && curl -fsSL http://downloads.dlang.org/releases/2.x/2.067.0/dmd.2.067.0.linux.zip > ${TMPFILE}.zip && \
		unzip -qd /tmp/.stable_dmd-2.067.0 ${TMPFILE}.zip && rm ${TMPFILE}.zip
cd ../dub-0.9.23 && DC=/tmp/.stable_dmd-2.067.0/dmd2/linux/bin64/dmd ./build.sh
Generating version file...
Running /tmp/.stable_dmd-2.067.0/dmd2/linux/bin64/dmd...
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl.o): In function `_D3std3net4curl4HTTP21_sharedStaticCtor1542FZv':
std/net/curl.d:(.text._D3std3net4curl4HTTP21_sharedStaticCtor1542FZv+0xf): undefined reference to `curl_version_info'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl.o): In function `_D3std3net4curl4Curl21_sharedStaticCtor1544FZv':
std/net/curl.d:(.text._D3std3net4curl4Curl21_sharedStaticCtor1544FZv+0xf): undefined reference to `curl_global_init'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl.o): In function `_D3std3net4curl4Curl21_sharedStaticDtor1545FZv':
std/net/curl.d:(.text._D3std3net4curl4Curl21_sharedStaticDtor1545FZv+0x5): undefined reference to `curl_global_cleanup'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c57_192.o): In function `_D3std3net4curl4HTTP4Impl6__dtorMFZv':
std/net/curl.d:(.text._D3std3net4curl4HTTP4Impl6__dtorMFZv+0x19): undefined reference to `curl_slist_free_all'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c60_65b.o): In function `_D3std3net4curl4HTTP16addRequestHeaderMFAxaAxaZv':
std/net/curl.d:(.text._D3std3net4curl4HTTP16addRequestHeaderMFAxaAxaZv+0x11b): undefined reference to `curl_slist_append'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c79_ea.o): In function `_D3std3net4curl3FTP4Impl6__dtorMFZv':
std/net/curl.d:(.text._D3std3net4curl3FTP4Impl6__dtorMFZv+0x18): undefined reference to `curl_slist_free_all'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c79_ea.o): In function `_D3std3net4curl3FTP3dupMFZS3std3net4curl3FTP':
std/net/curl.d:(.text._D3std3net4curl3FTP3dupMFZS3std3net4curl3FTP+0xab): undefined reference to `curl_slist_append'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c79_ea.o): In function `_D3std3net4curl3FTP13clearCommandsMFZv':
std/net/curl.d:(.text._D3std3net4curl3FTP13clearCommandsMFZv+0x20): undefined reference to `curl_slist_free_all'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c79_ea.o): In function `_D3std3net4curl3FTP10addCommandMFAxaZv':
std/net/curl.d:(.text._D3std3net4curl3FTP10addCommandMFAxaZv+0x67): undefined reference to `curl_slist_append'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c7e_432.o): In function `_D3std3net4curl4Curl10initializeMFZv':
std/net/curl.d:(.text._D3std3net4curl4Curl10initializeMFZv+0x47): undefined reference to `curl_easy_init'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c7f_149.o): In function `_D3std3net4curl4Curl3dupMFZS3std3net4curl4Curl':
std/net/curl.d:(.text._D3std3net4curl4Curl3dupMFZS3std3net4curl4Curl+0x2b): undefined reference to `curl_easy_duphandle'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c83_37c.o): In function `_D3std3net4curl4Curl8shutdownMFZv':
std/net/curl.d:(.text._D3std3net4curl4Curl8shutdownMFZv+0x1a): undefined reference to `curl_easy_cleanup'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c85_14c.o): In function `_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionAxaZv':
std/net/curl.d:(.text._D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionAxaZv+0x5d): undefined reference to `curl_easy_setopt'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c86_14c.o): In function `_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionlZv':
std/net/curl.d:(.text._D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionlZv+0x2e): undefined reference to `curl_easy_setopt'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c87_14c.o): In function `_D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionPvZv':
std/net/curl.d:(.text._D3std3net4curl4Curl3setMFE3etc1c4curl10CurlOptionPvZv+0x2e): undefined reference to `curl_easy_setopt'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c88_207.o): In function `_D3std3net4curl4Curl5clearMFE3etc1c4curl10CurlOptionZv':
std/net/curl.d:(.text._D3std3net4curl4Curl5clearMFE3etc1c4curl10CurlOptionZv+0x29): undefined reference to `curl_easy_setopt'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c89_67c.o): In function `_D3std3net4curl4Curl16clearIfSupportedMFE3etc1c4curl10CurlOptionZv':
std/net/curl.d:(.text._D3std3net4curl4Curl16clearIfSupportedMFE3etc1c4curl10CurlOptionZv+0x29): undefined reference to `curl_easy_setopt'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c8a_2fb.o): In function `_D3std3net4curl4Curl7performMFE3std8typecons41__T4FlagVAyaa12_7468726f774f6e4572726f72Z4FlagZi':
std/net/curl.d:(.text._D3std3net4curl4Curl7performMFE3std8typecons41__T4FlagVAyaa12_7468726f774f6e4572726f72Z4FlagZi+0x22): undefined reference to `curl_easy_perform'
/media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl_c81_4a1.o): In function `_D3std3net4curl4Curl11errorStringMFiZAya':
std/net/curl.d:(.text._D3std3net4curl4Curl11errorStringMFiZAya+0x11): undefined reference to `curl_easy_strerror'
collect2: error: ld returned 1 exit status
--- errorlevel 1
make: *** [../dub-0.9.23/bin/dub] Error 1
April 19, 2015
On 2015-04-19 18:20, Gary Willoughby wrote:

> Here are the errors:
>
> ...
> touch ../dub-0.9.23/.cloned
> mkdir -p /tmp/.stable_dmd-2.067.0
> TMPFILE=$(mktemp deleteme.XXXXXXXX) && curl -fsSL
> http://downloads.dlang.org/releases/2.x/2.067.0/dmd.2.067.0.linux.zip >
> ${TMPFILE}.zip && \
>          unzip -qd /tmp/.stable_dmd-2.067.0 ${TMPFILE}.zip && rm
> ${TMPFILE}.zip
> cd ../dub-0.9.23 && DC=/tmp/.stable_dmd-2.067.0/dmd2/linux/bin64/dmd
> ./build.sh
> Generating version file...
> Running /tmp/.stable_dmd-2.067.0/dmd2/linux/bin64/dmd...
> /media/Data/Projects/D/dmd/phobos/generated/linux/release/64/libphobos2.a(curl.o):
> In function `_D3std3net4curl4HTTP21_sharedStaticCtor1542FZv':
> std/net/curl.d:(.text._D3std3net4curl4HTTP21_sharedStaticCtor1542FZv+0xf):
> undefined reference to `curl_version_info'

Do you have libcurl installed?

-- 
/Jacob Carlborg
April 19, 2015
On Sunday, 19 April 2015 at 16:21:45 UTC, Jacob Carlborg wrote:
> Do you have libcurl installed?

Yeah and i've looked at the build scripts etc, and can't see anything obviously wrong.
April 19, 2015
On Sunday, 19 April 2015 at 16:20:23 UTC, Gary Willoughby wrote:
> If i pass the correct information on the command line it gets past the library errors but now shows linker errors.

I'm not seeing the compilation errors when building on the staging server, so not sure why you're getting them. I would suggest to try creating a new directory, cloning dlang.org into a subdirectory of that directory, and then running the build - posix.mak should fetch and build the remaining components.

And as for the link errors - this is on a Ubuntu (or Ubuntu-based) distribution, right? Here's my workaround:

https://issues.dlang.org/show_bug.cgi?id=12572#c5
April 20, 2015
On Sunday, 19 April 2015 at 21:26:11 UTC, Vladimir Panteleev wrote:
> On Sunday, 19 April 2015 at 16:20:23 UTC, Gary Willoughby wrote:
>> If i pass the correct information on the command line it gets past the library errors but now shows linker errors.
>
> I'm not seeing the compilation errors when building on the staging server, so not sure why you're getting them. I would suggest to try creating a new directory, cloning dlang.org into a subdirectory of that directory, and then running the build - posix.mak should fetch and build the remaining components.
>
> And as for the link errors - this is on a Ubuntu (or Ubuntu-based) distribution, right? Here's my workaround:
>
> https://issues.dlang.org/show_bug.cgi?id=12572#c5

Great thanks that cured the linking problem but there are still more errors during the build. I'm giving up for now as i only need the html but it's disappointing that it's so broken.
April 20, 2015
On 2015-04-20 12:42, Gary Willoughby wrote:

> Great thanks that cured the linking problem but there are still more
> errors during the build. I'm giving up for now as i only need the html
> but it's disappointing that it's so broken.

Are your clones of DMD, druntime and Phobos up to date and clean?

-- 
/Jacob Carlborg