Thread overview | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
March 20, 2010 GDC 4.4.3 | ||||
---|---|---|---|---|
| ||||
After some time, I have finally got GDC (DMD 2.015) to build and compile Phobos2 with GCC-4.4.3. So far I have only built and run hello world, and a couple of small test programs I made to investigate problems I had patching GCC. However, it's a start. What do I use for testing it - DStress? Steve |
March 20, 2010 Re: GDC 4.4.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Teale | On 20/03/10 08:08, Steve Teale wrote:
> After some time, I have finally got GDC (DMD 2.015) to build and compile
> Phobos2 with GCC-4.4.3.
>
> So far I have only built and run hello world, and a couple of small test
> programs I made to investigate problems I had patching GCC.
>
> However, it's a start.
>
> What do I use for testing it - DStress?
>
> Steve
I'd go with DStress if you want a full test suite, but there's also the ldc mini test suite, and if you can get a copy of Walters test suite (you'll have to ask him nicely, he prefers to keep it to a select few due to licensing issues) that would be great :)
It would also be a good idea to start up a gdc test suite, every time you find a bug/a bug is reported, add it to the test suite and make sure it's run before each release... that way you can minimise the number of regressions :) I'd say you could try and compile some libraries/apps too, but I doubt there's any that work with dmdfe 2.015 any more... your best bet in that sense for now would to be to make sure phobos compiles and its unit tests pass for now, at least until you manage to update the front end so you can test with other apps/libraries.
Thanks for all your work, good luck getting gdc up to date and usable again :)
|
March 21, 2010 Re: GDC 4.4.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Teale | Steve Teale Wrote:
> After some time, I have finally got GDC (DMD 2.015) to build and compile Phobos2 with GCC-4.4.3.
>
> So far I have only built and run hello world, and a couple of small test programs I made to investigate problems I had patching GCC.
>
> However, it's a start.
>
> What do I use for testing it - DStress?
>
> Steve
Great news!
Have you tested it with D1?
Unfortunately, I do not have a real testing suite. One of the things I plan to do is have some example programs included with GDC so that the user can make sure everything is working okay.
Some of the programs could be trivial, others could be to test commonly error prone code.
Right now, all that's in there is a "Hello World" program.
|
March 21, 2010 Re: GDC 4.4.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Michael P. | On Sun, 21 Mar 2010 12:38:29 -0400, Michael P. wrote:
> Steve Teale Wrote:
>
>> After some time, I have finally got GDC (DMD 2.015) to build and
>> compile Phobos2 with GCC-4.4.3.
>>
>> So far I have only built and run hello world, and a couple of small test programs I made to investigate problems I had patching GCC.
>>
>> However, it's a start.
>>
>> What do I use for testing it - DStress?
>>
>> Steve
>
> Great news!
> Have you tested it with D1?
>
> Unfortunately, I do not have a real testing suite. One of the things I plan to do is have some example programs included with GDC so that the user can make sure everything is working okay. Some of the programs could be trivial, others could be to test commonly error prone code. Right now, all that's in there is a "Hello World" program.
Michael,
I haven't tested it with D1 - frankly it's not clear to me where D1 is going.
There is an outstanding problem. Could you please try the following with your latest D1 version:
import std.stdio;
int foo(int n)
{
int inner(int m)
{
int ininner(int k)
{
writefln("foo.n = %d", n);
return k+m+n+1;
}
return ininner(m)+n+1;
}
return inner(n)+n;
}
void main()
{
int t = foo(22);
writefln("t = %d", t);
}
This fails with mine, and with the latest GDC I got from Ubuntu.
Thanks
Steve
|
March 21, 2010 Re: GDC 4.4.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Teale | Steve Teale Wrote:
> On Sun, 21 Mar 2010 12:38:29 -0400, Michael P. wrote:
>
> > Steve Teale Wrote:
> >
> >> After some time, I have finally got GDC (DMD 2.015) to build and
> >> compile Phobos2 with GCC-4.4.3.
> >>
> >> So far I have only built and run hello world, and a couple of small test programs I made to investigate problems I had patching GCC.
> >>
> >> However, it's a start.
> >>
> >> What do I use for testing it - DStress?
> >>
> >> Steve
> >
> > Great news!
> > Have you tested it with D1?
> >
> > Unfortunately, I do not have a real testing suite. One of the things I plan to do is have some example programs included with GDC so that the user can make sure everything is working okay. Some of the programs could be trivial, others could be to test commonly error prone code. Right now, all that's in there is a "Hello World" program.
>
> Michael,
>
> I haven't tested it with D1 - frankly it's not clear to me where D1 is going.
>
> There is an outstanding problem. Could you please try the following with your latest D1 version:
>
> import std.stdio;
>
> int foo(int n)
> {
> int inner(int m)
> {
> int ininner(int k)
> {
> writefln("foo.n = %d", n);
> return k+m+n+1;
> }
>
> return ininner(m)+n+1;
> }
>
> return inner(n)+n;
> }
>
> void main()
> {
> int t = foo(22);
> writefln("t = %d", t);
> }
>
> This fails with mine, and with the latest GDC I got from Ubuntu.
>
> Thanks
> Steve
It seems to work fine on the latest hg tip from bitbucket. (DMD FE version 1.046) It compiles fine and outputs the same results as dmd 1.057.
|
March 27, 2010 Re: GDC 4.4.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Teale | Steve Teale wrote: > After some time, I have finally got GDC (DMD 2.015) to build and compile > Phobos2 with GCC-4.4.3. Hi, can you please publish your efforts of make gdc running on 4.4.3? So we can merge with the main branch. Thanks. |
March 27, 2010 Re: GDC 4.4.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vincenzo Ampolo | On Sat, 27 Mar 2010 10:52:25 +0100, Vincenzo Ampolo wrote:
> Hi,
>
> can you please publish your efforts of make gdc running on 4.4.3? So we can merge with the main branch.
>
> Thanks.
Vincenzo,
There are still outstanding problems, since I've tried to compile and run more programs I find that something has changed in 4.4.3 that has broken the D runtime - more specifically GC.
I get a segmentation fault if I try to change the length of an empty array - not good.
When I've got this issue sorted I will prepare some patches. Like the rest of us, I do have personal life commitments that take up time - very annoying.
Steve
|
April 21, 2010 Re: GDC 4.4.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Teale | > There are still outstanding problems, since I've tried to compile and run more programs I find that something has changed in 4.4.3 that has broken the D runtime - more specifically GC.
>
> I get a segmentation fault if I try to change the length of an empty array - not good.
>
> When I've got this issue sorted I will prepare some patches. Like the rest of us, I do have personal life commitments that take up time - very annoying.
Isn't that an argument in _favour_ of publishing your current branch, with issues acknowledged, so that others with more time can get on and fix them straight away?
|
August 09, 2010 Re: GDC 4.4.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Teale | Hey Steve, Do you still have the patches for GCC-4.4 at hand? If you were to make them available for access, I for one would be greatly appreciated. As we are going through some swift changes in GDC at the moment, having the patches "in the flux" will allow us to ensure the integrity and functionality of the patches are kept in good working order for everyone to benefit. Regards Iain. |
Copyright © 1999-2021 by the D Language Foundation