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.

Coding > internal compiler error

#13344 - schoebey - Thu Dec 11, 2003 3:29 pm

hi everyone

i'm using devkitadv (r4) for fairly some time now and never had any major trouble with it, until now:

i'm working on a large project and recently, gcc came up with the error msg "internal compiler error in arm_reorg, at config/arm/arm.c".

since it seems to be a bug in the dev-env and not in my code, i tried to d/l and install R5, with which i'm able to compile all the c-sources.
But when it comes to linking, ld.exe (obviously) is looking for some libs to include. However it's unable to find the lib 'gcc' (using the flag -lgcc)

am i missing a file in the release?

thanks for any help

schoebey

#13347 - DekuTree64 - Thu Dec 11, 2003 4:44 pm

I don't normally use the standard library on GBA, but I know you can manually specify the path to libgcc.a for a temporary fix. There seem to be quite a lot of copies of it though, all slightly different sizes, but they're in devkitadv\lib\gcc-lib\arm-agb-elf\3.2.2 and some subfolders from there.
_________________
___________
The best optimization is to do nothing at all.
Therefore a fully optimized program doesn't exist.
-Deku

#13350 - schoebey - Thu Dec 11, 2003 5:46 pm

okay, i've found the error....
the path in my makefile was incorrect....some folder is named after the version of gcc (which of course changed in R5).

now i only need to get everything to work with the crt0.s and lnkscript of the devkit.....

thanks,
schoebey