Problem with gxtexconv...

support for the powerpc toolchain
Post Reply
hemes
Posts: 2
Joined: Tue Jun 30, 2009 11:51 pm

Problem with gxtexconv...

Post by hemes » Wed Jul 01, 2009 12:46 am

Hey All,

I am trying to get some Wii/Gamecube development underway and have run into a Bus Error when compiling some of the examples.

Here is my setup:
OS X 10.4.11
devkitPPC_r17-osx
libogc-1.7.1a
gamecube-examples-20090509
wii-examples-20090509

Basically I followed the setup here:
http://wiki.devkitpro.org/index.php/Get ... /devkitPPC


I can successfully compile many of the examples.
The problem occurs when making some of the stuff in a /graphics/ directory. The error I get is to the effect of:
>textures.scf
>make[1]: *** [textures.tpl] Bus error

As far as I can tell it only happens when the main source file has includes like
#include "textures_tpl.h"
#include "textures.h"
or
#include "NeHe_tpl.h"
#include "NeHe.h"
But the files don't exist as far as I can tell...


Any insight to this would be greatly appreciated.

Thanks.
Last edited by hemes on Wed Jul 01, 2009 11:47 pm, edited 1 time in total.

hemes
Posts: 2
Joined: Tue Jun 30, 2009 11:51 pm

Re: OS X wii/gamecube Compile Issues: Bus Error

Post by hemes » Wed Jul 01, 2009 11:44 pm

OK, after some digging I have traced the problem to the gxtexconv executable.

Here is a backtrace of the error:
Starting program: /devkitpro/devkitPPC/bin/gxtexconv -s textures.scf
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x9010c456 in _malloc_initialize ()
(gdb) bt
#0 0x9010c456 in _malloc_initialize ()
#1 0x90002417 in malloc ()
#2 0x90b4e5b3 in operator new ()
#3 0x90b2dfb6 in std::string::_Rep::_S_create ()
#4 0x90b2f7c5 in std::string::_M_mutate ()
#5 0x90b2f8ce in std::string::_M_replace_safe ()
#6 0x90b2f969 in std::string::assign ()
#7 0x000052cd in ?? ()
#8 0x000037f3 in ?? ()
#9 0x00001866 in ?? ()


I guess I'll post this in the bugs section?

Here is the output of uname for my system:
Darwin Kernel Version 8.11.1
root:xnu-792.25.20~1/RELEASE_I386 i386 i386

And I'm running
OS X 10.4.11
Macbook w/ Intel Core 2 Duo

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Problem with gxtexconv...

Post by WinterMute » Sat Jul 11, 2009 2:04 am

Give this a shot & see how it goes.

http://sourceforge.net/projects/devkitp ... 2/download

I'll get these universal binaries to work right yet :p
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests