digitalmars.D.bugs - -cov crashing dmd
- Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> Dec 05 2005
- "Walter Bright" <newshound digitalmars.com> Dec 05 2005
- Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> Dec 05 2005
- Derek Parnell <derek psych.ward> Dec 05 2005
- "Walter Bright" <newshound digitalmars.com> Dec 05 2005
- Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> Dec 05 2005
- Derek Parnell <derek psych.ward> Dec 05 2005
- Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> Dec 05 2005
- Derek Parnell <derek psych.ward> Dec 05 2005
- "Kris" <fu bar.com> Dec 06 2005
- Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> Dec 06 2005
- Derek Parnell <derek psych.ward> Dec 05 2005
- clayasaurus <clayasaurus gmail.com> Dec 05 2005
- clayasaurus <clayasaurus gmail.com> Dec 05 2005
Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit After a long long time I managed to get it down to this, changing/removing anything else makes code compile. I compile it like this: build main.d -full -clean -cov
Dec 05 2005
"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn20e8$1q23$1 digitaldaemon.com...After a long long time I managed to get it down to this, changing/removing anything else makes code compile. I compile it like this: build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
Dec 05 2005
Walter Bright wrote:"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn20e8$1q23$1 digitaldaemon.com...After a long long time I managed to get it down to this, changing/removing anything else makes code compile. I compile it like this: build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.
Dec 05 2005
On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote:Walter Bright wrote:"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn20e8$1q23$1 digitaldaemon.com...After a long long time I managed to get it down to this, changing/removing anything else makes code compile. I compile it like this: build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.
No, it doesn't like the order that Build gives it to DMD. main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 12:23:06 PM
Dec 05 2005
"Derek Parnell" <derek psych.ward> wrote in message news:hfmw5i74yg20.19uyy5ema0dii.dlg 40tude.net...No, it doesn't like the order that Build gives it to DMD. main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails
Thanks. I am able to reproduce it now.
Dec 05 2005
Derek Parnell wrote:On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote:Walter Bright wrote:"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn20e8$1q23$1 digitaldaemon.com...After a long long time I managed to get it down to this, changing/removing anything else makes code compile. I compile it like this: build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.
No, it doesn't like the order that Build gives it to DMD. main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails
Thanks, i get it.
Dec 05 2005
On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote:Derek Parnell wrote:On Tue, 06 Dec 2005 01:32:02 +0100, Ivan Senji wrote:Walter Bright wrote:"Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn20e8$1q23$1 digitaldaemon.com...After a long long time I managed to get it down to this, changing/removing anything else makes code compile. I compile it like this: build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
You are right, it works that way. But it still crashes if invoked by build. It somehow doesn't like build's arguments.
No, it doesn't like the order that Build gives it to DMD. main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails
Thanks, i get it.
In fact, if main.d has a main() function, it works in all cases. -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 6:06:18 PM
Dec 05 2005
Derek Parnell wrote:On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote:main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails
Thanks, i get it.
In fact, if main.d has a main() function, it works in all cases.
But it doesn't to me. Have yout tried: dmd main ivan_set LR -cov dmd ivan_set main LR -cov dmd ivan_set lr main -cov I got so crazy removing stuff from these 3 files that in the end i also removed main, but main isn't the problem, the problem is it doesn't work with -cov with some orders of files.
Dec 05 2005
On Tue, 06 Dec 2005 08:38:21 +0100, Ivan Senji wrote:Derek Parnell wrote:On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote:main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails
Thanks, i get it.
In fact, if main.d has a main() function, it works in all cases.
But it doesn't to me. Have yout tried: dmd main ivan_set LR -cov dmd ivan_set main LR -cov dmd ivan_set lr main -cov I got so crazy removing stuff from these 3 files that in the end i also removed main, but main isn't the problem, the problem is it doesn't work with -cov with some orders of files.
LOL ... stupid me ... I forgot the '-cov' switch when testing ... Sorry. -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 6:59:17 PM
Dec 05 2005
There's a bug posting from a while back noting similar behaviour for "circular dependencies" ~ compiled one way the executable runs, whilst compiling in a different order causes that error message to show up. Wierd. - Kris "Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn3f5e$7p0$1 digitaldaemon.com...Derek Parnell wrote:On Tue, 06 Dec 2005 07:52:45 +0100, Ivan Senji wrote:main LR ivan_set : works LR main ivan_set : works main ivan_set LR : fails ivan_set main LR : fails LR ivan_set main : works ivan_set lr main : fails
Thanks, i get it.
In fact, if main.d has a main() function, it works in all cases.
But it doesn't to me. Have yout tried: dmd main ivan_set LR -cov dmd ivan_set main LR -cov dmd ivan_set lr main -cov I got so crazy removing stuff from these 3 files that in the end i also removed main, but main isn't the problem, the problem is it doesn't work with -cov with some orders of files.
Dec 06 2005
Kris wrote:There's a bug posting from a while back noting similar behaviour for "circular dependencies" ~ compiled one way the executable runs, whilst compiling in a different order causes that error message to show up. Wierd.
I know, that one has been more or less around forever :), but what is interesting is that in this case -cov causes it, and everything works fine without it.
Dec 06 2005
On Mon, 5 Dec 2005 10:40:27 -0800, Walter Bright wrote:Path: digitalmars.com!not-for-mail From: "Walter Bright" <newshound digitalmars.com> Newsgroups: digitalmars.D.bugs Subject: Re: -cov crashing dmd Date: Mon, 5 Dec 2005 10:40:27 -0800 Organization: Digital Mars Lines: 18 Message-ID: <dn22qr$1sum$1 digitaldaemon.com> References: <dn20e8$1q23$1 digitaldaemon.com> X-Trace: digitaldaemon.com 1133809308 62422 24.16.50.251 (5 Dec 2005 19:01:48 GMT) X-Complaints-To: usenet digitalmars.com NNTP-Posting-Date: Mon, 5 Dec 2005 19:01:48 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Xref: digitalmars.com digitalmars.D.bugs:5752 "Ivan Senji" <ivan.senji_REMOVE_ _THIS__gmail.com> wrote in message news:dn20e8$1q23$1 digitaldaemon.com...After a long long time I managed to get it down to this, changing/removing anything else makes code compile. I compile it like this: build main.d -full -clean -cov
I tried: dmd -cov main LR ivan_set and it doesn't crash when compiling it. It doesn't link, however, because there is no main() function.
Try ... dmd -cov main ivan_set LR That will crash it. -- Derek (skype: derek.j.parnell) Melbourne, Australia "A learning experience is one of those things that says, 'You know that thing you just did? Don't do that.'" - D.N. Adams 6/12/2005 12:15:16 PM
Dec 05 2005
Ivan Senji wrote:After a long long time I managed to get it down to this, changing/removing anything else makes code compile. I compile it like this: build main.d -full -clean -cov
I was under the impression that you use build to make the 'exe', and then run 'dmd main.exe -cov' to get the code coverage *confused*
Dec 05 2005
clayasaurus wrote:Ivan Senji wrote:After a long long time I managed to get it down to this, changing/removing anything else makes code compile. I compile it like this: build main.d -full -clean -cov
I was under the impression that you use build to make the 'exe', and then run 'dmd main.exe -cov' to get the code coverage *confused*
Nevermind, you just compile it with the -cov option and run it to get the .lst file.
Dec 05 2005









"Walter Bright" <newshound digitalmars.com> 