View previous topic :: View next topic |
Author |
Message |
elkano
Joined: 19 Jun 2009 Posts: 24
|
Posted: Mon Mar 08, 2010 3:34 pm Post subject: Compiling issues with last (svn) tango and ldc |
|
|
G'day,
I've just updated my system to the last mercurial ldc and subversion tango. I have run a couple of tests and the buildchain seems to be all right.
Then, I've tried to rebuild gtkD (last svn). It all goes well till it reaches gio, where it issues:
Code: | gio => DO-gio
gio/SocketAddress.d(83): Error: class gio.SocketAddress.SocketAddress unable to resolve forward reference in definition
gio/Volume.d(71): Error: class gio.Volume.Volume unable to resolve forward reference in definition
gio/Mount.d(71): Error: class gio.Mount.Mount unable to resolve forward reference in definition
Command /usr/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting. |
I have been unable to understand the issue, which is probably related to some change in ldc (since gtkD, same revision, compiled before the update). |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Mar 09, 2010 4:03 pm Post subject: |
|
|
I'm not sure whats causing the error, but it looks like a regression in LDC. |
|
Back to top |
|
|
cryke
Joined: 15 Nov 2009 Posts: 3 Location: Russia, Murmansk
|
Posted: Wed May 05, 2010 12:27 pm Post subject: |
|
|
I have the same problem... Cannot compile gtkD, using ldc rev. 1649, tango 0.99.9.
What to do? |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu May 06, 2010 3:22 pm Post subject: |
|
|
Did you get the same errors as the ones from the first post? |
|
Back to top |
|
|
cryke
Joined: 15 Nov 2009 Posts: 3 Location: Russia, Murmansk
|
Posted: Fri May 07, 2010 2:56 am Post subject: |
|
|
gio => DD-gio
gio/Volume.d(71): Error: class gio.Volume.Volume unable to resolve forward reference in definition
gio/Mount.d(71): Error: class gio.Mount.Mount unable to resolve forward reference in definition
gio/SocketAddress.d(83): Error: class gio.SocketAddress.SocketAddress unable to resolve forward reference in definition
Command /usr/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting. |
|
Back to top |
|
|
wangdong1226
Joined: 05 Dec 2010 Posts: 2
|
Posted: Sun Dec 05, 2010 8:01 pm Post subject: Re: Compiling issues with last (svn) tango and ldc |
|
|
elkano wrote: | G'day,
I've just updated my system to the last mercurial ldc and subversion tango. I have run a couple of tests and the buildchain seems to be all right.
Then, I've tried to rebuild gtkD (last svn). It all goes well till it reaches gio, where it issues:
Code: | gio => DO-gio
gio/SocketAddress.d(83): Error: class gio.SocketAddress.SocketAddress unable to resolve forward reference in definition
gio/Volume.d(71): Error: class gio.Volume.Volume unable to resolve forward reference in definition
gio/Mount.d(71): Error: class gio.Mount.Mount unable to resolve forward reference in definition
Command /usr/bin/rebuild returned with code 256, aborting.
Error: Command failed, aborting. |
I have been unable to understand the issue, which is probably related to some change in ldc (since gtkD, same revision, compiled before the update). |
It is better using official DMD2.050 to build it.
on my Fedora 14 x86_64, I've installed DMD2.050 and Code::Blocks. I building D application using DMD 2.050, it's good. |
|
Back to top |
|
|
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
Posted: Mon Dec 06, 2010 5:37 am Post subject: |
|
|
i confirm it is a ldc regression
if someone would like debug this one feel free, you are welcome |
|
Back to top |
|
|
john_i_
Joined: 16 Dec 2010 Posts: 1
|
Posted: Mon Dec 27, 2010 10:04 am Post subject: |
|
|
bioinfornatics wrote: | i confirm it is a ldc regression
if someone would like debug this one feel free, you are welcome |
I've isolated it to being a problem with ldc's handling of the template mix feature of D.
I'm not sure how to fix ldc itself, but I have created a patch for gtkd that manually inserts the template code into the classes that use it. With that patch I can compile gtkd and run the test app that comes with it successfully.
You can find the patch attached to the ldc support ticket #410 where the problem is reported:
http://www.dsource.org/projects/ldc/ticket/410 |
|
Back to top |
|
|
|