RejectedSoftware Forums

Sign up

Build fails with unittest and other strange errors

I've got a couple seemingly strange problems that are popping up. First off, when compiling with -unittest, I get a linker error: Error 42: Symbol Undefined _D4vibe4core11concurrency3CLS7__ClassZ. Note that I am trying to build the first example on the docs page.

Second, even when building and running the very minimal example on the main page, I get another error: Got exception while accepting new connections: Assertion Failure. This happens with less trivial examples as well, which causes pages to not render and long strings of errors to be printed in the console.

Re: Build fails with unittest and other strange errors

On Fri, 13 Sep 2013 06:08:40 GMT, Meta wrote:

I've got a couple seemingly strange problems that are popping up. First off, when compiling with -unittest, I get a linker error: Error 42: Symbol Undefined _D4vibe4core11concurrency3CLS7__ClassZ. Note that I am trying to build the first example on the docs page.

Second, even when building and running the very minimal example on the main page, I get another error: Got exception while accepting new connections: Assertion Failure. This happens with less trivial examples as well, which causes pages to not render and long strings of errors to be printed in the console.

I tried to reproduce this, but everything worked for me. My setup is DMD 2.063.2 on Windows, what did you use to compile?

In case of the assertion, can you try to run using "dub -- --vv" to get more error information? Maybe that suffices to track down the root cause.

Re: Build fails with unittest and other strange errors

On Fri, 13 Sep 2013 09:40:03 GMT, Sönke Ludwig wrote:

On Fri, 13 Sep 2013 06:08:40 GMT, Meta wrote:

I've got a couple seemingly strange problems that are popping up. First off, when compiling with -unittest, I get a linker error: Error 42: Symbol Undefined _D4vibe4core11concurrency3CLS7__ClassZ. Note that I am trying to build the first example on the docs page.

Second, even when building and running the very minimal example on the main page, I get another error: Got exception while accepting new connections: Assertion Failure. This happens with less trivial examples as well, which causes pages to not render and long strings of errors to be printed in the console.

I tried to reproduce this, but everything worked for me. My setup is DMD 2.063.2 on Windows, what did you use to compile?

In case of the assertion, can you try to run using "dub -- --vv" to get more error information? Maybe that suffices to track down the root cause.

I've tried with both 2.063.2 and a freshly built Git HEAD on Windows, but both had the same results. I tried compiling both with dub and with DMD directly through Visual Studio (generating a VisualD project), and encountered the problem with both.

Re: Build fails with unittest and other strange errors

Am 13.09.2013 18:18, schrieb Meta:

On Fri, 13 Sep 2013 09:40:03 GMT, Sönke Ludwig wrote:

On Fri, 13 Sep 2013 06:08:40 GMT, Meta wrote:

I've got a couple seemingly strange problems that are popping up. First off, when compiling with -unittest, I get a linker error: Error 42: Symbol Undefined _D4vibe4core11concurrency3CLS7__ClassZ. Note that I am trying to build the first example on the docs page.

Second, even when building and running the very minimal example on the main page, I get another error: Got exception while accepting new connections: Assertion Failure. This happens with less trivial examples as well, which causes pages to not render and long strings of errors to be printed in the console.

I tried to reproduce this, but everything worked for me. My setup is DMD 2.063.2 on Windows, what did you use to compile?

In case of the assertion, can you try to run using "dub -- --vv" to get more error information? Maybe that suffices to track down the root cause.

I've tried with both 2.063.2 and a freshly built Git HEAD on Windows, but both had the same results. I tried compiling both with dub and with DMD directly through Visual Studio (generating a VisualD project), and encountered the problem with both.

Strange indeed, can you try the "dub -- --vv"? At least that assertion
should be possible to track down. Who knows, maybe it's somehow related
to the linker issue...

Re: Build fails with unittest and other strange errors

On Fri, 13 Sep 2013 18:30:58 +0200, Sönke Ludwig wrote:

Strange indeed, can you try the "dub -- --vv"? At least that assertion
should be possible to track down. Who knows, maybe it's somehow related
to the linker issue...

There's not much to go on. The output is like so:

Listening for HTTP requests on :::8080
Listening for HTTP requests on 0.0.0.0:8080
[02150F80:00000000 dia] Running event loop...
[02150F80:00000000 dbg] Creating new fiber...
[02150F80:00000000 dbg] start task (fd 348).
[02150F80:00000000 WRN] Got exception while accepting new connections: Assertion Failure
[02150F80:00000000 dbg] persistent connection timeout![02150F80:00000000 dbg] task finished.

Re: Build fails with unittest and other strange errors

Am 13.09.2013 23:38, schrieb Meta:

On Fri, 13 Sep 2013 18:30:58 +0200, Sönke Ludwig wrote:

Strange indeed, can you try the "dub -- --vv"? At least that assertion
should be possible to track down. Who knows, maybe it's somehow related
to the linker issue...

There's not much to go on. The output is like so:

Listening for HTTP requests on :::8080
Listening for HTTP requests on 0.0.0.0:8080
[02150F80:00000000 dia] Running event loop...
[02150F80:00000000 dbg] Creating new fiber...
[02150F80:00000000 dbg] start task (fd 348).
[02150F80:00000000 WRN] Got exception while accepting new connections: Assertion Failure
[02150F80:00000000 dbg] persistent connection timeout![02150F80:00000000 dbg] task finished.

Okay, I've just seen that the additional log output that should be there
was added only four days ago (just after the 0.7.17 release). Can you
retry with the latest ~master version?

Re: Build fails with unittest and other strange errors

On Sat, 14 Sep 2013 09:47:48 +0200, Sönke Ludwig wrote:

Okay, I've just seen that the additional log output that should be there
was added only four days ago (just after the 0.7.17 release). Can you
retry with the latest ~master version?

The problem disappears with ~master (though it was still occurring with 0.7.17). It could be that something got screwed up when installing, and overwriting with ~master fixed it. However, I am still getting the issue of the linker error when I specify -unittest.

Re: Build fails with unittest and other strange errors

On Fri, 13 Sep 2013 06:08:40 GMT, Meta wrote:

I've got a couple seemingly strange problems that are popping up. First off, when compiling with -unittest, I get a linker error: Error 42: Symbol Undefined _D4vibe4core11concurrency3CLS7__ClassZ. Note that I am trying to build the first example on the docs page.

Second, even when building and running the very minimal example on the main page, I get another error: Got exception while accepting new connections: Assertion Failure. This happens with less trivial examples as well, which causes pages to not render and long strings of errors to be printed in the console.

Interestingly, I'm getting linker errors (although others) when using the git HEAD version of DMD to build in release mode...

Linking...
DMD v2.064 DEBUG
OPTLINK (R) for Win32  Release 8.00.13
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
[snip]\temp.obj(temp)
 Error 42: Symbol Undefined _D3std6base6424__T10Base64ImplVa43Va47Z155__T7DecoderTS4vibe4inet7message13decodeMessageFxAhAyaZ9094F8B31DDAA3A4D904024CF97FF9C7
[snip]\temp.obj(temp)
 Error 42: Symbol Undefined _D3std6base6424__T10Base64ImplVa43Va47Z155__T7DecoderTS4vibe4inet7message13decodeMessageFxAhAyaZBF6401166E7C7A80479716D3CC978481
[snip]\temp.obj(temp)
 Error 42: Symbol Undefined _D3std6base6424__T10Base64ImplVa43Va47Z155__T7DecoderTS4vibe4inet7message13decodeMessageFxAhAyaZ4B83189E9CDC8EEC6ADDAE5F24AE5AA9
[snip]\temp.obj(temp)
 Error 42: Symbol Undefined _D3std6base6424__T10Base64ImplVa43Va47Z155__T7DecoderTS4vibe4inet7message13decodeMessageFxAhAyaZ2B08D0355902475CD428DB74819D0747
[snip]\temp.obj(temp)
 Error 42: Symbol Undefined _D3std6base6424__T10Base64ImplVa43Va47Z155__T7DecoderTS4vibe4inet7message13decodeMessageFxAhAyaZB30237DB475889789592872C0E28D0EC
--- errorlevel 5

Re: Build fails with unittest and other strange errors

On Sun, 15 Sep 2013 09:56:57 GMT, Sönke Ludwig wrote:

Interestingly, I'm getting linker errors (although others) when using the git HEAD version of DMD to build in release mode...

I just tried compiling in release mode, and I'm getting the same kinds of linker errors.

Re: Build fails with unittest and other strange errors

On Sun, 15 Sep 2013 19:33:32 GMT, Meta wrote:

On Sun, 15 Sep 2013 09:56:57 GMT, Sönke Ludwig wrote:

Interestingly, I'm getting linker errors (although others) when using the git HEAD version of DMD to build in release mode...

I just tried compiling in release mode, and I'm getting the same kinds of linker errors.

Not only with HEAD, but with 2.063.2 as well.