linux-powerpc trouble

Carlos Santander csantander619 at gmail.com
Thu Nov 23 09:08:20 PST 2006


Marcel Unbehaun escribió:
> All in all gdc works very good on my " ppc 7447/7457, altivec supported CHRP
> Pegasos2 GNU/Linux",
> but one error always comes back:
> I'm trying to build the famous aba-games on my machine - several build/work good.
> But all those which use a routine in "barrage.d" to initialize bulletml crash
> at the same part:
> 
> http://paste.dprogramming.com/dpknqggs.php
> 
> As I don't know how long my pasted entry above exists (?) - I better paste a
> copy here, too:
> 
> -------------
>   public static BulletMLParserTinyXML* getInstance(char[] dirName, char[]
> fileName) {
>     if (!parser[dirName][fileName]) {
>       char[] barrageName = dirName ~ "/" ~ fileName;
>       Logger.info("Loading BulletML: " ~ barrageName);
>       parser[dirName][fileName] =
>         BulletMLParserTinyXML_new(std.string.toStringz(BARRAGE_DIR_NAME ~ "/"
> ~ barrageName));
>       BulletMLParserTinyXML_parse(parser[dirName][fileName]);
>     }
>     return parser[dirName][fileName];
>   }
> 
> 
> This is a part from barrage.d from ABA-games Val&Rick.
> I built it with 3.4.5& gdc-0.19
> It also exists in other games & they all crash in this region on a linux-powerpc
> system! (torustrooper, tumikifighter, (mu-cade))
> The problems in similar non-aba games from http://homepage2.nifty.com/isshiki/
> maybe have the same reason:
> these games (GradleUnsion, z-lock) build, but either shots, or enemies are missing
> Parsec47 uses a similar routine to handle bulletml, but there it works.
> Valgrind prints this line as 1st error:
>    if (!parser[dirName][fileName]) {
> 

I haven't looked at the code, but if either parser or parser[dirName] are AAs, 
maybe you should change that line to a "in" expression (or a couple of them.)

> Would be great if someone could look into this...
> --------------
> 
> Thanks a lot for attention!
> 
> friendly,
> Marcel "frostwork" Unbehaun


-- 
Carlos Santander Bernal



More information about the D.gnu mailing list