devkitARM r23b stat function fails - devkitARM r22 succeeded

support for the ARM toolchain
Post Reply
icosahedron
Posts: 9
Joined: Mon Mar 24, 2008 5:30 pm

devkitARM r23b stat function fails - devkitARM r22 succeeded

Post by icosahedron » Wed Aug 13, 2008 7:47 am

A while ago I was able to set up reading files from an emulator image using the instructions found here: http://thoughtsfrommylife.com/article-7 ... _on_the_DS when using devkitARM r22. Using the sample code found here: http://chishm.drunkencoders.com/libfat/, I was able to see the files and load them.

Recently I updated to devkitARM r23b. Using the same libraries (devkitPro didn't update libfat), I now receive an error from stat for the stat.st_size member. Oddly enough, the size returned by every call is 'FSCR' in hex.

Looking at the differences, as mentioned before, libfat is identical. The compiler has changed, despite -v saying they're both 4.3.0. Also a number of header files and libraries have changed. Before I go digging through all these to determine the cause, I was wondering if anyone else had seen a problem like this.

icosahedron
Posts: 9
Joined: Mon Mar 24, 2008 5:30 pm

Re: devkitARM r23b stat function fails - devkitARM r22 succeeded

Post by icosahedron » Thu Aug 14, 2008 5:11 pm

I've "solved" the problem by rebuilding libfat. I did have to make one small change to libfat.c, turning off the clause where it looks at __system_argv by adding a guard to the #ifndef for NDS as well. It now compiles and runs fine apparently.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests