Thread overview | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
February 04, 2007 Tango ready? | ||||
---|---|---|---|---|
| ||||
I tried downloading tango beta .95 and get it to install both under my gdc installation and dmd installation. Both failed miserablly using lib/install-dmd.sh and lib/install-gdc.sh From the dmd installation it bombed here: gcc -c -O -m32 critical.c -ocritical.o dmd -c -release -O -inline -version=Posix -w deh2.d -ofdeh2.o dmd -c -release -O -inline -version=Posix -w dmain2.d -ofdmain2.o dmd -c -release -O -inline -version=Posix -w genobj.d -ofgenobj.o dmd: toobj.c:315: virtual void ClassDeclaration::toObjFile(): Assertion `classinfo->structsize == 0x3C' failed. make[1]: *** [genobj.o] Aborted make[1]: Leaving directory `/usr/local/src/tango/lib/compiler/dmd' From the gdc installation it never would generate libtango.o in the lib directory. Has anyone else successfully installed Tango? Joe |
February 04, 2007 Re: Tango ready? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joseph Bell | Joseph Bell wrote: > I tried downloading tango beta .95 and get it to install both under my gdc installation and dmd installation. Both failed miserablly using lib/install-dmd.sh and lib/install-gdc.sh > > From the dmd installation it bombed here: > gcc -c -O -m32 critical.c -ocritical.o > dmd -c -release -O -inline -version=Posix -w deh2.d -ofdeh2.o > dmd -c -release -O -inline -version=Posix -w dmain2.d -ofdmain2.o > dmd -c -release -O -inline -version=Posix -w genobj.d -ofgenobj.o > dmd: toobj.c:315: virtual void ClassDeclaration::toObjFile(): Assertion `classinfo->structsize == 0x3C' failed. > make[1]: *** [genobj.o] Aborted > make[1]: Leaving directory `/usr/local/src/tango/lib/compiler/dmd' > > From the gdc installation it never would generate libtango.o in the lib directory. > > Has anyone else successfully installed Tango? > > Joe Tango has a 1004 compatible runtime component. That particular assertion problem is a mismatch between the 1004 runtime and a pre-1004 compiler (dmd 1.0?). It's effectively the same thing as if you ran a dmd 1.0 with a phobos 1004 :) Hope that gets you going again! - Kris p.s. there's also forums at Tango which generally get a very quick response. The IRC channel is usually immediate, if you have an IRC client. All noted here: http://www.dsource.org/projects/tango/wiki/Contact |
February 04, 2007 Re: Tango ready? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joseph Bell | Joseph Bell wrote:
> I tried downloading tango beta .95 and get it to install both under my gdc installation and dmd installation. Both failed miserablly using lib/install-dmd.sh and lib/install-gdc.sh
>
> From the dmd installation it bombed here:
> gcc -c -O -m32 critical.c -ocritical.o
> dmd -c -release -O -inline -version=Posix -w deh2.d -ofdeh2.o
> dmd -c -release -O -inline -version=Posix -w dmain2.d -ofdmain2.o
> dmd -c -release -O -inline -version=Posix -w genobj.d -ofgenobj.o
> dmd: toobj.c:315: virtual void ClassDeclaration::toObjFile(): Assertion `classinfo->structsize == 0x3C' failed.
> make[1]: *** [genobj.o] Aborted
> make[1]: Leaving directory `/usr/local/src/tango/lib/compiler/dmd'
As kris said, the 'object' module for Tango seems to assume DMD 1.004 if you're using DMD.
You could try commenting out the 'OffsetTypeInfo[] offTi;' line in the ClassInfo declaration, that seems to be the change that leads to that assertion. I'm not sure if there were any other significant changes though. Or you could, you know, upgrade DMD ;).
|
February 04, 2007 Re: Tango ready? | ||||
---|---|---|---|---|
| ||||
Posted in reply to kris | kris wrote: > Joseph Bell wrote: >> I tried downloading tango beta .95 and get it to install both under my gdc installation and dmd installation. Both failed miserablly using lib/install-dmd.sh and lib/install-gdc.sh >> >> From the dmd installation it bombed here: >> gcc -c -O -m32 critical.c -ocritical.o >> dmd -c -release -O -inline -version=Posix -w deh2.d -ofdeh2.o >> dmd -c -release -O -inline -version=Posix -w dmain2.d -ofdmain2.o >> dmd -c -release -O -inline -version=Posix -w genobj.d -ofgenobj.o >> dmd: toobj.c:315: virtual void ClassDeclaration::toObjFile(): Assertion `classinfo->structsize == 0x3C' failed. >> make[1]: *** [genobj.o] Aborted >> make[1]: Leaving directory `/usr/local/src/tango/lib/compiler/dmd' >> >> From the gdc installation it never would generate libtango.o in the lib directory. >> >> Has anyone else successfully installed Tango? >> >> Joe > > Tango has a 1004 compatible runtime component. That particular assertion problem is a mismatch between the 1004 runtime and a pre-1004 compiler (dmd 1.0?). It's effectively the same thing as if you ran a dmd 1.0 with a phobos 1004 :) > > Hope that gets you going again! > > - Kris If Tango requires DMD 1.004+, I think it should say so on the relevant web page(s), such as one or more of these: http://www.dsource.org/projects/tango/wiki/Download http://www.dsource.org/projects/tango/wiki/TopicBuildingTango http://www.dsource.org/projects/tango/wiki/TopicInstallTango If it's already mentioned in bunch of other places, I'm sorry I missed them. -- jcc7 |
February 04, 2007 Re: Tango ready? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joseph Bell | The GDC issue is my fault, I missed something in the installer. Just `touch libtango.a`, it's not supposed to exist anyway. - Gregor Richards |
February 04, 2007 Re: Tango ready? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Justin C Calvarese | Justin C Calvarese wrote:
> If Tango requires DMD 1.004+, I think it should say so on the relevant web page(s), such as one or more of these:
>
> http://www.dsource.org/projects/tango/wiki/Download
> http://www.dsource.org/projects/tango/wiki/TopicBuildingTango
> http://www.dsource.org/projects/tango/wiki/TopicInstallTango
>
> If it's already mentioned in bunch of other places, I'm sorry I missed them.
>
Done. Thanks!
|
February 04, 2007 Re: Tango ready? | ||||
---|---|---|---|---|
| ||||
Posted in reply to kris | kris wrote:
> Justin C Calvarese wrote:
>> If Tango requires DMD 1.004+, I think it should say so on the relevant web page(s), such as one or more of these:
>>
>> http://www.dsource.org/projects/tango/wiki/Download
>> http://www.dsource.org/projects/tango/wiki/TopicBuildingTango
>> http://www.dsource.org/projects/tango/wiki/TopicInstallTango
>>
>> If it's already mentioned in bunch of other places, I'm sorry I missed them.
>>
>
> Done. Thanks!
From the download page: "The runtime portion of this release requires a v1.004 compatible compiler."
Actually, that's just if you compiler actually *is* DMD, I think. In object.d, it has the v1.004 modification in a version(DigitalMars), so I think it'll probably break if used with a v1.004-compatible GDC...
(Presumably this was done because GDC isn't v1.004-compatible yet?)
|
February 04, 2007 Re: Tango ready? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frits van Bommel | Frits van Bommel wrote: > kris wrote: >> Justin C Calvarese wrote: >>> If Tango requires DMD 1.004+, I think it should say so on the relevant web page(s), such as one or more of these: >>> >>> http://www.dsource.org/projects/tango/wiki/Download http://www.dsource.org/projects/tango/wiki/TopicBuildingTango http://www.dsource.org/projects/tango/wiki/TopicInstallTango >>> >>> If it's already mentioned in bunch of other places, I'm sorry I missed them. >>> >> >> Done. Thanks! > > From the download page: "The runtime portion of this release requires a > v1.004 compatible compiler." > > Actually, that's just if you compiler actually *is* DMD, I think. In object.d, it has the v1.004 modification in a version(DigitalMars), so I think it'll probably break if used with a v1.004-compatible GDC... (Presumably this was done because GDC isn't v1.004-compatible yet?) You're right about this of course :) I'll fix it soonish. Thanks! -- Lars Ivar Igesund blog at http://larsivi.net DSource & #D: larsivi Dancing the Tango |
February 04, 2007 Re: Tango ready? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frits van Bommel | Frits van Bommel escribió: > kris wrote: >> Justin C Calvarese wrote: >>> If Tango requires DMD 1.004+, I think it should say so on the relevant web page(s), such as one or more of these: >>> >>> http://www.dsource.org/projects/tango/wiki/Download >>> http://www.dsource.org/projects/tango/wiki/TopicBuildingTango >>> http://www.dsource.org/projects/tango/wiki/TopicInstallTango >>> >>> If it's already mentioned in bunch of other places, I'm sorry I missed them. >>> >> >> Done. Thanks! > > From the download page: "The runtime portion of this release requires a v1.004 compatible compiler." > > Actually, that's just if you compiler actually *is* DMD, I think. In object.d, it has the v1.004 modification in a version(DigitalMars), so I think it'll probably break if used with a v1.004-compatible GDC... > (Presumably this was done because GDC isn't v1.004-compatible yet?) David updated it yesterday. The gdc-0.22-dev branch in svn is up to 1.004. -- Carlos Santander Bernal |
February 04, 2007 Re: Tango ready? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander |
Thanks for all of the comments on both DMD and GDC - I didn't have the latest and greatest DMD so I moved it to the side and let the Tango installer take care of it. All is well now. Except for converting everything in my code :-)
Joe
Carlos Santander wrote:
> Frits van Bommel escribió:
>> kris wrote:
>>> Justin C Calvarese wrote:
>>>> If Tango requires DMD 1.004+, I think it should say so on the relevant web page(s), such as one or more of these:
>>>>
>>>> http://www.dsource.org/projects/tango/wiki/Download
>>>> http://www.dsource.org/projects/tango/wiki/TopicBuildingTango
>>>> http://www.dsource.org/projects/tango/wiki/TopicInstallTango
>>>>
>>>> If it's already mentioned in bunch of other places, I'm sorry I missed them.
>>>>
>>>
>>> Done. Thanks!
>>
>> From the download page: "The runtime portion of this release requires a v1.004 compatible compiler."
>>
>> Actually, that's just if you compiler actually *is* DMD, I think. In object.d, it has the v1.004 modification in a version(DigitalMars), so I think it'll probably break if used with a v1.004-compatible GDC...
>> (Presumably this was done because GDC isn't v1.004-compatible yet?)
>
> David updated it yesterday. The gdc-0.22-dev branch in svn is up to 1.004.
>
|
Copyright © 1999-2021 by the D Language Foundation