www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Vibe.d compilation error: backend/cgelem.c 5018 dmd failed with exit

reply llaine <darksioul6 gmail.com> writes:
Using dmd every day and since one day I'm getting this error when 
I'm compiling using the -b release flag (dub build -b release).

I'm compiling a vibe.d application that has roughly 3k LoC.

Removing the -b flag solves the problem.

Dmd version : v2.071.0
Vibe.d version : 0.7.26
Sep 21 2016
parent reply Saurabh Das <saurabh.das gmail.com> writes:
On Wednesday, 21 September 2016 at 14:15:30 UTC, llaine wrote:
 Using dmd every day and since one day I'm getting this error 
 when I'm compiling using the -b release flag (dub build -b 
 release).

 I'm compiling a vibe.d application that has roughly 3k LoC.

 Removing the -b flag solves the problem.

 Dmd version : v2.071.0
 Vibe.d version : 0.7.26
I'm sure some more experienced forum readers will weigh in soon, but my understanding is that: All ICEs are errors in the compiler. You should submit it as a bug at https://issues.dlang.org/ If you can use DustMite to narrow down the error, that would help track it down much faster. Thanks, Saurabh
Sep 21 2016
parent reply llaine <darksioul6 gmail.com> writes:
On Wednesday, 21 September 2016 at 15:24:08 UTC, Saurabh Das 
wrote:
 On Wednesday, 21 September 2016 at 14:15:30 UTC, llaine wrote:
 I'm sure some more experienced forum readers will weigh in 
 soon, but my understanding is that:

 All ICEs are errors in the compiler. You should submit it as a 
 bug at https://issues.dlang.org/

 If you can use DustMite to narrow down the error, that would 
 help track it down much faster.

 Thanks,
 Saurabh
The project is pretty big, DustMite would handle this?
Sep 21 2016
parent reply Rene Zwanenburg <renezwanenburg gmail.com> writes:
On Wednesday, 21 September 2016 at 20:22:42 UTC, llaine wrote:
 The project is pretty big, DustMite would handle this?
Yes, but it may take some time. For large projects, running it on a server is advisable. 3K LOC should be doable on a desktop machine. Dub has built-in support for running Dustmite. I'm not very familiar with it, but it looks like you'll want to use 'dub dustmite' with the --compiler-regex switch with a regex matching the ICE assert message.
Sep 21 2016
parent reply llaine <darksioul6 gmail.com> writes:
On Wednesday, 21 September 2016 at 21:32:02 UTC, Rene Zwanenburg 
wrote:
 On Wednesday, 21 September 2016 at 20:22:42 UTC, llaine wrote:

 Yes, but it may take some time. For large projects, running it 
 on a server is advisable. 3K LOC should be doable on a desktop 
 machine.

 Dub has built-in support for running Dustmite. I'm not very 
 familiar with it, but it looks like you'll want to use 'dub 
 dustmite' with the --compiler-regex switch with a regex 
 matching the ICE assert message.
Any idea how to run with dub ? Trying like this dub dustmite app/ --compiler-regex="Internal Error" 'dub build -b release'
Sep 22 2016
parent reply Saurabh Das <saurabh.das gmail.com> writes:
On Thursday, 22 September 2016 at 10:44:29 UTC, llaine wrote:
 On Wednesday, 21 September 2016 at 21:32:02 UTC, Rene 
 Zwanenburg wrote:
 On Wednesday, 21 September 2016 at 20:22:42 UTC, llaine wrote:

 Yes, but it may take some time. For large projects, running it 
 on a server is advisable. 3K LOC should be doable on a desktop 
 machine.

 Dub has built-in support for running Dustmite. I'm not very 
 familiar with it, but it looks like you'll want to use 'dub 
 dustmite' with the --compiler-regex switch with a regex 
 matching the ICE assert message.
Any idea how to run with dub ? Trying like this dub dustmite app/ --compiler-regex="Internal Error" 'dub build -b release'
I think it is something like: dub dustmite ./dustmite_output/ --compiler-regex="Internal Error" -b release
Sep 22 2016
parent reply llaine <darksioul6 gmail.com> writes:
On Thursday, 22 September 2016 at 14:40:10 UTC, Saurabh Das wrote:
 On Thursday, 22 September 2016 at 10:44:29 UTC, llaine wrote:

 dub dustmite ./dustmite_output/ --compiler-regex="Internal 
 Error" -b release
Okay I tried yesterday, after 4hours of process, I never went through the end of minification. At the beginning I enter YES should I enter NO instead?
Sep 23 2016
parent Rene Zwanenburg <renezwanenburg gmail.com> writes:
On Friday, 23 September 2016 at 08:39:44 UTC, llaine wrote:
 Okay I tried yesterday, after 4hours of process, I never went 
 through the end of minification.

 At the beginning I enter YES should I enter NO instead?
Hmm that's strange. I don't get any yes or no questions. What is the exact message you get? I've been looking into using dustmite with dub a bit, and running dub dustmite "../DustmiteResult" --compiler-regex=".*backend/cgelem\.c 501.*" --build=release in your project directory should just work..
Sep 23 2016