Thread overview
dwt-linux: building with gdc
Feb 21, 2008
Dan Dennedy
Feb 21, 2008
Dan Dennedy
Feb 22, 2008
John Reimer
February 21, 2008
Although a D newb, I'm having a go at building dwt-linux with gdc. Before getting it to work successfully with dmd, I had a gdc-based setup, and I tried 'dsss build' with /etc/rebuild/default => gdc-posix-tango. It was getting stuck and pegging the CPU for a _long_ time, so I added the verbose option to the gdmd command flags. It gets stuck at 'code TableTreeEditor' after successfully completing semantic1-3 stages.

Since I'm a newb but not incompetent and wanting to contribute somehow, I'm hoping for someone to offer hints where to turn next in troubleshooting this.

February 21, 2008
Dan Dennedy wrote:
> Although a D newb, I'm having a go at building dwt-linux with gdc. Before getting it to work successfully with dmd, I had a gdc-based setup, and I tried 'dsss build' with /etc/rebuild/default => gdc-posix-tango. It was getting stuck and pegging the CPU for a _long_ time, so I added the verbose option to the gdmd command flags. It gets stuck at 'code TableTreeEditor' after successfully completing semantic1-3 stages.

I was able to proceed to completion by moving dwt/custom/TableTreeEditor.d and TreeEditor.d out of the way. I could then build all the dwt-samples and run many of them.

Success: simple, HelloWorld*, Snippet258, Snippet41, torhu_synctest, DrawingBoard

Segfault: ControlExample, CustomControlExample, Snippet163, Snippet189,
AddressBook (starts, but any menu item crashes)

That's the status in case you didn't know. It kinda works with gdc.

February 22, 2008
Dan Dennedy wrote:
> Dan Dennedy wrote:
>> Although a D newb, I'm having a go at building dwt-linux with gdc. Before
>> getting it to work successfully with dmd, I had a gdc-based setup, and I
>> tried 'dsss build' with /etc/rebuild/default => gdc-posix-tango. It was
>> getting stuck and pegging the CPU for a _long_ time, so I added the
>> verbose option to the gdmd command flags. It gets stuck at 'code
>> TableTreeEditor' after successfully completing semantic1-3 stages.
> 
> I was able to proceed to completion by moving dwt/custom/TableTreeEditor.d
> and TreeEditor.d out of the way. I could then build all the dwt-samples and
> run many of them.
> 
> Success: simple, HelloWorld*, Snippet258, Snippet41, torhu_synctest,
> DrawingBoard
> 
> Segfault: ControlExample, CustomControlExample, Snippet163, Snippet189,
> AddressBook (starts, but any menu item crashes)
>  That's the status in case you didn't know. It kinda works with gdc.
> 


That's good news!  I'm interested in seeing gdc support for dwt. :) Unfortunately gdc lags quite severely behind the dmd releases... but gdc support will be an important part of any other cross-platform ports of DWT (until other technologies mature, like perhaps dil and llvmdc).

Thanks for trying this out. :)

-JJR