RejectedSoftware Forums

Sign up

Problem compiling example program - atomicLoad static assert fails

So the very first thing I did after installing dub was to run dub init -t vibe.d vibetest to generate the default hello world example program for vibe-d. However, upon running dub build the following error is reported:


/usr/include/dlang/gdc/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.28/source/vibe/http/server.d:1379: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 am running 64-bit linux with gdc 6.1.1 (the latest release).

Should I investigate further and file a bug report or was this a fault of my own?

Re: Problem compiling example program - atomicLoad static assert fails

Am 17.05.2016 um 15:24 schrieb eye:

So the very first thing I did after installing dub was to run dub init -t vibe.d vibetest to generate the default hello world example program for vibe-d. However, upon running dub build the following error is reported:


/usr/include/dlang/gdc/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.28/source/vibe/http/server.d:1379: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 am running 64-bit linux with gdc 6.1.1 (the latest release).

Should I investigate further and file a bug report or was this a fault of my own?

GDC is currently not supported, due to the ancient 2.066.x frontend that
is used by the 5.2.0 release. Is there any place where I can read up on
that 6.1.1 version? It's not listed on gdcproject.org or visible as a
GIT tag.

If it uses at least the 2.071.1 frontend, I can add it back to the CI
tests and fix the error. Otherwise, there will probably a lot more
compile errors than the one above and using an older version of vibe.d
is the only real option.

Re: Problem compiling example program - atomicLoad static assert fails

On Tue, 17 May 2016 18:16:18 +0200, Sönke Ludwig wrote:

Am 17.05.2016 um 15:24 schrieb eye:

So the very first thing I did after installing dub was to run dub init -t vibe.d vibetest to generate the default hello world example program for vibe-d. However, upon running dub build the following error is reported:


/usr/include/dlang/gdc/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.28/source/vibe/http/server.d:1379: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 am running 64-bit linux with gdc 6.1.1 (the latest release).

Should I investigate further and file a bug report or was this a fault of my own?

GDC is currently not supported, due to the ancient 2.066.x frontend that
is used by the 5.2.0 release. Is there any place where I can read up on
that 6.1.1 version? It's not listed on gdcproject.org or visible as a
GIT tag.

If it uses at least the 2.071.1 frontend, I can add it back to the CI
tests and fix the error. Otherwise, there will probably a lot more
compile errors than the one above and using an older version of vibe.d
is the only real option.

I can't seem to find anything either, the gdc-6 branch was merged but no release has been made. It seems dicebot has jumped the gun a little on the arch linux build!

I've switched to ldc for now, things are working great.

Re: Problem compiling example program - atomicLoad static assert fails

On Tue, 17 May 2016 17:41:38 GMT, eye wrote:

On Tue, 17 May 2016 18:16:18 +0200, Sönke Ludwig wrote:

Am 17.05.2016 um 15:24 schrieb eye:

So the very first thing I did after installing dub was to run dub init -t vibe.d vibetest to generate the default hello world example program for vibe-d. However, upon running dub build the following error is reported:


/usr/include/dlang/gdc/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.28/source/vibe/http/server.d:1379: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 am running 64-bit linux with gdc 6.1.1 (the latest release).

Should I investigate further and file a bug report or was this a fault of my own?

GDC is currently not supported, due to the ancient 2.066.x frontend that
is used by the 5.2.0 release. Is there any place where I can read up on
that 6.1.1 version? It's not listed on gdcproject.org or visible as a
GIT tag.

If it uses at least the 2.071.1 frontend, I can add it back to the CI
tests and fix the error. Otherwise, there will probably a lot more
compile errors than the one above and using an older version of vibe.d
is the only real option.

I can't seem to find anything either, the gdc-6 branch was merged but no release has been made. It seems dicebot has jumped the gun a little on the arch linux build!

I've switched to ldc for now, things are working great.

Also, from the D wiki page on gdc it seems the frontend will still be 2.066, which is a shame.

Re: Problem compiling example program - atomicLoad static assert fails

Am 17.05.2016 um 19:44 schrieb eye:

On Tue, 17 May 2016 17:41:38 GMT, eye wrote:

I can't seem to find anything either, the gdc-6 branch was merged but no release has been made. It seems dicebot has jumped the gun a little on the arch linux build!

I've switched to ldc for now, things are working great.

Also, from the D wiki page on gdc it seems the frontend will still be 2.066, which is a shame.

I've found this, though:
https://forum.dlang.org/post/axjwbwiuifnjaaomcizd@forum.dlang.org

So hopefully the situation should be back to normal soon.