Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Tango 0.99.7 compiling issues

Moderators: kris

Posted: 09/12/08 04:40:32

There seems to something definitely broken with 0.99.7 a few things report all kinds of errors with core/Memory.di and i've been checking regularly here http://www.dsource.org/projects/tango/browser/trunk/tango/core and it allways says that Memory.di is set to svn:ignore. For example when compilling gtkd:

ion.d atk\RelationSet.d atk\Selection.d atk\State.d atk\StateSet.d atk\Streamabl
eContent.d atk\Table.d atk\Text.d atk\Util.d atk\ValueAtk.d -ofDD-atk.lib
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
C:\D\tango\bin\..\import\tango\core\Memory.di(130): Declaration expected, not ':
'
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: identifier 'BlkInfo'
is not defined
C:\D\tango\bin\..\import\tango\core\Memory.di(216): Error: BlkInfo is used as a
type
Command C:\D\tango\bin\rebuild.exe returned with code 1, aborting.
Error: Command failed, aborting.
Author Message

Posted: 09/12/08 08:01:02

tango.core.Memory.di is generated from a similarly named file inside lib/common. This happens in the cd lib && ./build-<compilername>.* process.

If you assumed Memory.di to come from svn, you may have had things get out of synch? Also, some older versions of gdc/gdmd used to mess up the .di generation - so if you have the good ole' GDC 0.24 (not an updated 0.24 (sic!)) that may be it.

Posted: 09/12/08 11:21:05

OK so I assume it should be fine if I download tango from svn and compile because the Memory.di I got came from the bundled zip file which I was only using because I thought that would guarantee me higher stability. Thanks.

Posted: 09/12/08 12:39:07

I checked the 0.99.7-with-DMD zip bundle, and there is nothing wrong with Memory.di in there (at least not where your error messages report it).

Which file did you download, which compiler (and version) do you use, and do you use dsss/rebuild (if so, which version)?

If there had been anything like that wrong with those downloads, we'd most likely hear about it a long time ago.

Posted: 09/12/08 23:08:30

I was using 1.033 dmd but upgrading to 1.035 alone didn't make the difference. When I replaced:
import/tango/
import/std/
import/object.di
with the ones from repository snapshot
http://downloads.dsource.org/projects/tango/snapshots/tango-bin-win32-CURRENT-dmd.1.035.zip gtkd and dfl both now compile. It seems that the reported error about Memory.di may not actually be the problem?