gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Krawall and GCC 4?

#64825 - Ultima2876 - Tue Dec 27, 2005 3:10 am

Krawall doesn't seem to like compiling with GCC 4... it says it only supports GCC 3. Any way to get it compiling with GCC 4 so I can use a more up to date DevkitARM?

Thanks.

#64826 - kusma - Tue Dec 27, 2005 3:32 am

just remove the warnings from the header, and you'll be all fine.

#64856 - Ultima2876 - Tue Dec 27, 2005 6:18 pm

.. wow, thanks XD

#83873 - DrkMatter_ - Fri May 19, 2006 4:31 am

I am experiencing a problem similar to that of the OP. However, simply removing the #error line has not solved the problem.

elif __GNUC__ == 3
#define LONG_CALL __attribute__ ((long_call))

Still isn't defined, so I added it within the #else.

While this solved the LONG_CALL error the compiler was throwing at me, I am still left with __attribute__ ((packed)) being ignored on the structures krawall define. I have no idea on wether this will cause adverse effects: I assume that changing the alignment of the data would break Krawall, but I've read somehwhere that this particula warning might be triggered if the packed attribute has no effects, IE, doens't really change the alignment.

So, to sum it up, I'm getting rpetty confused. Has anyone else made Krawall worked with the most recent release of DevKitARM (18), and if so, was a fix needed for the packing of the data?

Thanks for any help.

----------------------------------

EDIT: It seems that my converted data was the problem after all. Switching to another song fixed everything. I'd assume this means that the ignored attribute really isn't a concern.

#83978 - tepples - Sat May 20, 2006 12:13 am

__GNUC__ might be 4 on newer versions of devkitARM.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#84865 - gauauu - Thu May 25, 2006 2:27 am

Also you can just pay the $15 or so for the new version of krawall, with full support for gcc 4