On Sunday, 23 October 2016 at 19:23:04 UTC, Karabuta wrote:
On Sunday, 23 October 2016 at 14:53:48 UTC, aman wrote:
On Saturday, 22 October 2016 at 17:23:58 UTC, Karabuta wrote:
[...]
This time i started out with a fresh Ubuntu server and
followed instructions on the blog. Here's output. Please help:-
/usr/lib/gcc/x86_64-linux-gnu/5/include/d/core/atomic.d:1381:13: error: static assert
"Invalid template type specified."
static assert(0, "Invalid template type
specified.");
^
../.dub/packages/vibe-d-0.7.29/source/vibe/http/server.d:1388:51: note:
instantiated from here: atomicLoad!(cast(MemoryOrder)5,
shared(HTTPServerContext)[])
else return
cast(HTTPServerContext[])atomicLoad(g_contexts);
^
gdc failed with exit code 1.
I used DMD compiler for the tutorial, you are using GCC which
might be the problem. GCC compiler seems too outdated. Try
using DMD
Oh, I see. Actually it got installed auto-magically during dub
installation I guess. Now I installed dmd with the script mention
on the dlang download page.
curl -fsS https://dlang.org/install.sh | bash -s dmd
I ran dub again. Here's the error this time!
dub
Performing "debug" build using dmd for x86_64.
vibe-d:utils 0.7.29: target for configuration "library" is up to
date.
vibe-d:data 0.7.29: target for configuration "library" is up to
date.
vibe-d:core 0.7.29: target for configuration "libevent" is up to
date.
vibe-d:http 0.7.29: target for configuration "library" is up to
date.
vibe-d:diet 0.7.29: target for configuration "library" is up to
date.
vibe-d:mail 0.7.29: target for configuration "library" is up to
date.
vibe-d:mongodb 0.7.29: target for configuration "library" is up
to date.
vibe-d:redis 0.7.29: target for configuration "library" is up to
date.
vibe-d:web 0.7.29: target for configuration "library" is up to
date.
vibe-d 0.7.29: target for configuration "libevent" is up to date.
testdub ~master: building configuration "application"...
Linking...
cc: No such file or directory
--- errorlevel 255
dmd failed with exit code 255