Jump to page: 1 2
Thread overview
[Issue 17098] this programworked on DMD 2072.2, not it does not compile dmd 2073 any betas
Jan 17, 2017
Martin Nowak
Jan 17, 2017
steven kladitis
Jan 17, 2017
Martin Nowak
Jan 18, 2017
Martin Nowak
[Issue 17098] this program worked on DMD 2072.2, but it does not compile on dmd 2073
Dec 12, 2019
Basile-z
Feb 14, 2020
Walter Bright
Feb 14, 2020
Walter Bright
[Issue 17098] Takes hours to -O compile then fails with Internal error: backend/cgreg.c 405
Feb 15, 2020
Walter Bright
Feb 15, 2020
Walter Bright
Feb 15, 2020
Dlang Bot
Feb 15, 2020
Walter Bright
Feb 18, 2020
Dlang Bot
Mar 21, 2020
Basile-z
January 17, 2017
https://issues.dlang.org/show_bug.cgi?id=17098

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu

--- Comment #1 from Martin Nowak <code@dawg.eu> ---
Work for me on linux, but uses ~1.2GiB to compile.
The current CTFE interpreter easily uses a lot of memory, see issue 6498.
We're working on a replacement interpreter, but it's not quite ready yet [¹].

I guess you simply hit a memory limit for 32-bit processes on Windows now, will
test later on Win.
As a workaround you can use the 64-bit version of dmd.
As that uses the VC linker and libc, you need VisualStudio installed, the Win
installer should know how to do/find that [²].

[¹]: http://forum.dlang.org/post/tdhdsvmknnpiugnngkex@forum.dlang.org
[²]:
https://github.com/dlang/installer/blob/5179af93d9f0fd84d714e8742492434bf16ed2f6/windows/d2-installer.nsi#L351

--
January 17, 2017
https://issues.dlang.org/show_bug.cgi?id=17098

--- Comment #2 from steven kladitis <steven_kladitis@yahoo.com> ---
It does not compile with 32 or 64 bit.
dmd -m64 ....
it fails also and takes forever.

--
January 17, 2017
https://issues.dlang.org/show_bug.cgi?id=17098

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|Windows                     |All
           Severity|regression                  |major

--- Comment #3 from Martin Nowak <code@dawg.eu> ---
> dmd -m64 ....

Which command are you using exactly to compile?

I'm getting extremely slow builds when passing -O, that's due to the huge
amount of statements your throwing at the compiler (in the mixin).
But this is not new, 2.072 is as slow at optimizing it as well, so it might be
a duplicate of issue 7157.

If you really need the optimization, both gdc and ldc are doing better with this, though it still takes them a considerable amount of time.

--
January 18, 2017
https://issues.dlang.org/show_bug.cgi?id=17098

--- Comment #4 from Martin Nowak <code@dawg.eu> ---
dmd eventually finished after some whooping 14,5 minutes :o, but ran into a codegen issue, same with 2.071.2, both on linux-64.

Internal error: backend/cgreg.c 405
865.86user 0.49system 14:29.65elapsed 99%CPU (0avgtext+0avgdata
1498680maxresident)k
7232inputs+0outputs (32major+374040minor)pagefaults 0swaps

That smells a bit like an overflow issue https://github.com/dlang/dmd/blob/a5f823a59d11bb02a56384891eb80a55af467e00/src/backend/cgreg.c#L405, would be hard to believe for `int` though.

--
December 12, 2019
https://issues.dlang.org/show_bug.cgi?id=17098

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com
            Summary|this programworked on DMD   |this program worked on DMD
                   |2072.2, not it does not     |2072.2, but it does not
                   |compile dmd 2073 any betas  |compile on dmd 2073
           Severity|major                       |regression

--
February 14, 2020
https://issues.dlang.org/show_bug.cgi?id=17098

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> ---
Here's the attached program:

tring ctbf(in string code) pure nothrow
{
    string r;
    foreach (immutable c; code) switch (c)
    {
    case '>':
        r ~= "i++; assert(i < m.length);";
        break;
    case '<':
        r ~= "i--; assert(i >= 0);";
        break;
    case '+':
        r ~= "m[i]++;";
        break;
    case '-':
        r ~= "m[i]--;";
        break;
    case '[':
        r ~= "while (m[i]) {";
        break;
    case ']':
        r ~= "}";
        break;
    case '.':
        r ~= "m[i].putchar;";
        break;
    case ',':
        r ~= "{ int d = getchar;
                              if (d == EOF) exit(1);
                              m[i] = cast(char)d; }";
        break;
    default:
        break;
    }
    return r;
}

void main()
{
    import core.stdc.stdio, core.stdc.stdlib;

    char[30_000] m = '\0';
    size_t i;
    mixin(ctbf("      A mandelbrot set fractal viewer in brainf*** written by
Erik Bosman
+++++++++++++[->++>>>+++++>++>+<<<<<<]>>>>>++++++>--->>>>>>>>>>+++++++++++++++[[
>>>>>>>>>]+[<<<<<<<<<]>>>>>>>>>-]+[>>>>>>>>[-]>]<<<<<<<<<[<<<<<<<<<]>>>>>>>>[-]+
<<<<<<<+++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>>>+>>>>>>>>>>>>>>>>>>>>>>>>>>
>+<<<<<<<<<<<<<<<<<[<<<<<<<<<]>>>[-]+[>>>>>>[>>>>>>>[-]>>]<<<<<<<<<[<<<<<<<<<]>>
>>>>>[-]+<<<<<<++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>>+<<<<<<+++++++[-[->>>
>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>>+<<<<<<<<<<<<<<<<[<<<<<<<<<]>>>[[-]>>>>>>[>>>>>
>>[-<<<<<<+>>>>>>]<<<<<<[->>>>>>+<<+<<<+<]>>>>>>>>]<<<<<<<<<[<<<<<<<<<]>>>>>>>>>
[>>>>>>>>[-<<<<<<<+>>>>>>>]<<<<<<<[->>>>>>>+<<+<<<+<<]>>>>>>>>]<<<<<<<<<[<<<<<<< <<]>>>>>>>[-<<<<<<<+>>>>>>>]<<<<<<<[->>>>>>>+<<+<<<<<]>>>>>>>>>+++++++++++++++[[
>>>>>>>>>]+>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]>[-]<<<<<<<<<[<<<<<<<<<]>>>>>>>>>-]+[
>+>>>>>>>>]<<<<<<<<<[<<<<<<<<<]>>>>>>>>>[>->>>>[-<<<<+>>>>]<<<<[->>>>+<<<<<[->>[
-<<+>>]<<[->>+>>+<<<<]+>>>>>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>>>>>>>>>>>>>>>>>>>>>>>>>>-<<<<<<[<<<<
<<<<<]]>>>]"));
}

--
February 14, 2020
https://issues.dlang.org/show_bug.cgi?id=17098

--- Comment #6 from Walter Bright <bugzilla@digitalmars.com> ---
(In reply to Martin Nowak from comment #1)
> The current CTFE interpreter easily uses a lot of memory,

True, but that isn't the cause of the failure to compile. The compile takes only a second or two without -O, and the CTFE is still run.

--
February 15, 2020
https://issues.dlang.org/show_bug.cgi?id=17098

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|this program worked on DMD  |Takes hours to -O compile
                   |2072.2, but it does not     |then fails with Internal
                   |compile on dmd 2073         |error: backend/cgreg.c 405

--
February 15, 2020
https://issues.dlang.org/show_bug.cgi?id=17098

--- Comment #7 from Walter Bright <bugzilla@digitalmars.com> ---
Definitely a problem with integer overflowing Sweight in cgreg.d

--
February 15, 2020
https://issues.dlang.org/show_bug.cgi?id=17098

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #8 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #10789 "fix Issue 17098 - Takes hours to -O compile then fails with Internal …" fixing this issue:

- fix Issue 17098 - Takes hours to -O compile then fails with Internal error: backend/cgreg.c 405

https://github.com/dlang/dmd/pull/10789

--
« First   ‹ Prev
1 2