Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 21, 2007 rebuild or dmd internal error | ||||
---|---|---|---|---|
| ||||
I'm building with rebuild v. 0.73 and dmd 1.023. I get an internal error when using the -O flag... I have no idea why Internal error: ..\ztc\cgcod.c 1523 If I use the -v flag to rebuild I don't get this error at all, it just failes |
November 21, 2007 Re: rebuild or dmd internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simen Haugen | This is an internal errors in the dmd backend as far as I can tell. i.e. the end that digitalmars does not provide source code of. I had a similar message. The best thing to do is construct a minimal test case and file a bug. See my bug: http://d.puremagic.com/issues/show_bug.cgi?id=1655 The best way to construct a minimal test case is to play with the code to see if you can get it NOT to fail. See what's different about your code from other code. I think this error is REALLY not helpful for creating bug reports. It would be nice if the error at least displayed what code it was trying to compile. Sometimes you are building a piece of code that includes a whole bunch of other stuff, or is 500 lines long, how do you know which piece is failing? -Steve "Simen Haugen" wrote > I'm building with rebuild v. 0.73 and dmd 1.023. > > I get an internal error when using the -O flag... I have no idea why Internal error: ..\ztc\cgcod.c 1523 > > If I use the -v flag to rebuild I don't get this error at all, it just failes > |
November 22, 2007 Re: rebuild or dmd internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | As you say, it's not a very helpful message. The project is around 5500 loc, so it's not that easy to know where to start to create a minimal example. It's also a long time since I compiled with -O for that project. "Steven Schveighoffer" <schveiguy@yahoo.com> wrote in message news:fi1mmd$s1q$1@digitalmars.com... > This is an internal errors in the dmd backend as far as I can tell. i.e. the end that digitalmars does not provide source code of. > > I had a similar message. The best thing to do is construct a minimal test case and file a bug. > > See my bug: http://d.puremagic.com/issues/show_bug.cgi?id=1655 > > The best way to construct a minimal test case is to play with the code to see if you can get it NOT to fail. See what's different about your code from other code. > > I think this error is REALLY not helpful for creating bug reports. It would be nice if the error at least displayed what code it was trying to compile. Sometimes you are building a piece of code that includes a whole bunch of other stuff, or is 500 lines long, how do you know which piece is failing? > > -Steve > > "Simen Haugen" wrote >> I'm building with rebuild v. 0.73 and dmd 1.023. >> >> I get an internal error when using the -O flag... I have no idea why Internal error: ..\ztc\cgcod.c 1523 >> >> If I use the -v flag to rebuild I don't get this error at all, it just failes >> > > |
November 22, 2007 Re: rebuild or dmd internal error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simen Haugen | Simen Haugen wrote:
> As you say, it's not a very helpful message. The project is around 5500 loc, so it's not that easy to know where to start to create a minimal example. It's also a long time since I compiled with -O for that project.
Make a copy of the project, then start pulling bits out till the bug goes away. Put back the last thing you removed and pull something else out. Sometimes it can be tough when things are very interconnected, and sometimes the bug is caused by 2 or more things interacting in a certain way.
Regan
|
Copyright © 1999-2021 by the D Language Foundation