-
Discostew
- Posts: 103
- Joined: Sun Mar 08, 2009 7:24 pm
Post
by Discostew » Mon Jun 14, 2010 10:37 pm
I recently tried to compile some code made by the SuperCard team that has some relation to resetting with their newest product, the DSTWO (SDK is planned to be released). ATM, it won't compile because of an undefined reference to '__irq_flagsaux' (as well as mistypes with some functions, and missing libraries they haven't released). Checking the libnds source, I can see it being referenced, but could see no trace of where it is defined, though in interrupts.h, there is the line 'extern vuint32 __irq_flagsaux[];'. Is this still being used, or is it old code that has been left in but has no purpose in our general DS programming and doesn't get included during compile?
Code: Select all
"make" -C arm7
make[1]: Entering directory `/c/for_dstwo_reset/arm7'
reset_patch.bin
arm7_main.c
arm-eabi-gcc -MMD -MP -MF /c/for_dstwo_reset/arm7/build/arm7_main.d -g -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -mthumb -I/c/for_dstwo_reset/arm7/include -I/c/for_dstwo_reset/arm7/data -I/c/devkitPro/libnds/include -I/c/for_dstwo_reset/arm7/build -DARM7 -c /c/for_dstwo_reset/arm7/source/arm7_main.c -o arm7_main.o
linking for_dstwo_reset.arm7.elf
c:/devkitPro/libnds/lib\libnds7.a(interruptDispatcher.o): In function `IntrRet':
/Users/davem/projects/devkitpro/libnds-master/libnds/arm7/../source/common/interruptDispatcher.s:128: undefined reference to `__irq_flagsaux'
collect2: ld returned 1 exit status
make[2]: *** [/c/for_dstwo_reset/arm7/for_dstwo_reset.arm7.elf] Error 1
make[1]: *** [build] Error 2
make[1]: Leaving directory `/c/for_dstwo_reset/arm7'
"make": *** [arm7/for_dstwo_reset.elf] Error 2
> Process Exit Code: 2
> Time Taken: 00:01
-
WinterMute
- Site Admin
- Posts: 2003
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
-
Contact:
Post
by WinterMute » Tue Jun 15, 2010 11:49 am
Update your toolchain, this is part of the recent DSi updates. What I'm trying to do is make sure that standard DS binaries are automatically DSi compatible - effectively running in hybrid mode on DSi. __irq_flagsaux is defined in the arm7 linkscript so it's also possible that the code you're building uses a custom linkscript which needs updated.
Who is online
Users browsing this forum: No registered users and 1 guest