|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D.gnu - -fonly causes GDC to crash
In an attempt to get MiniD to compile under the new GDC 0.20, I found out about the -fonly flag from DSSS. It's what DSSS uses to "resolve circular dependencies." Here's the thing -- I have no idea what this flag does. I can't find documentation for it anywhere. I did "gdc -v --help" and -fonly doesn't appear anywhere in the output. This is the only way I have ever heard of anyone successfully compiling MiniD using GDC short of combining the two files which mutually import one another. All I can get it to do is to give me an error. Even in the simplest possible case: gdc -fonly=test.d I get the error: Assertion failed: an_output_module, file ../../gcc-3.4.2-20040916-1/gcc/d/d-lang .cc, line 907 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. dtest.d:0: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.mingw.org/bugs.shtml> for instructions. Did this appear in 0.20? Am I using it wrong? Dec 17 2006
Jarrett Billingsley wrote:In an attempt to get MiniD to compile under the new GDC 0.20, I found out about the -fonly flag from DSSS. It's what DSSS uses to "resolve circular dependencies." Here's the thing -- I have no idea what this flag does. I can't find documentation for it anywhere. I did "gdc -v --help" and -fonly doesn't appear anywhere in the output. This is the only way I have ever heard of anyone successfully compiling MiniD using GDC short of combining the two files which mutually import one another. All I can get it to do is to give me an error. Even in the simplest possible case: gdc -fonly=test.d I get the error: Assertion failed: an_output_module, file ../../gcc-3.4.2-20040916-1/gcc/d/d-lang .cc, line 907 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. dtest.d:0: internal compiler error: Aborted Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.mingw.org/bugs.shtml> for instructions. Did this appear in 0.20? Am I using it wrong? Dec 18 2006
"Gregor Richards" <Richards codu.org> wrote in message news:4586BE81.5010400 codu.org...-fonly is only documented in that it's used from the gdmd wrapper. Basically: gdc -c <EVERY .d file> <-fonly=the .d file you want to compile> Otherwise it will only parse one at a time. It's ... weird. - Gregor Richards Dec 18 2006
|