I've been trying to compile the sd_save branch of GBARunner2 for awhile now but it is not working. I have the log here.
make -C arm7
make[1]: Entering directory '/c/users/owner/desktop/gbarunner2/arm7'
main.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm7/build/main.d -g -Wall -O3 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -marm -I/c/users/owner/desktop/gbarunner2/arm7/include -I/c/users/owner/desktop/gbarunner2/arm7/source -I/c/users/owner/desktop/gbarunner2/arm7/build -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm7/build -DARM7 -fno-exceptions -fno-rtti -c /c/users/owner/desktop/gbarunner2/arm7/source/main.cpp -o main.o
In file included from C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp:3:
C:/users/owner/desktop/gbarunner2/arm7/source/timer.h:23: warning: "TIMER_FREQ" redefined
#define TIMER_FREQ(x) (-33513982/(x))
In file included from C:/devkitPro/libnds/include/nds.h:241,
from C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp:1:
C:/devkitPro/libnds/include/nds/timers.h:145: note: this is the location of the previous definition
#define TIMER_FREQ(n) (-BUS_CLOCK/(n))
In file included from C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp:4:
C:/users/owner/desktop/gbarunner2/arm7/source/sound.h:35: warning: "REG_SOUNDCNT" redefined
#define REG_SOUNDCNT (((vu32)0x04000500))
In file included from C:/devkitPro/libnds/include/nds.h:286,
from C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp:1:
C:/devkitPro/libnds/include/nds/arm7/audio.h:67: note: this is the location of the previous definition
#define REG_SOUNDCNT ((vu16)0x4000500)
In file included from C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp:4:
C:/users/owner/desktop/gbarunner2/arm7/source/sound.h:41: warning: "REG_SOUNDBIAS" redefined
#define REG_SOUNDBIAS (((vu32)0x04000504))
In file included from C:/devkitPro/libnds/include/nds.h:286,
from C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp:1:
C:/devkitPro/libnds/include/nds/arm7/audio.h:68: note: this is the location of the previous definition
#define REG_SOUNDBIAS ((vu32)0x4000504)
C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp: In function 'int main()':
C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp:103:3: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(REG_FIFO_CNT & FIFO_CNT_EMPTY);
^~~~~
C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp:104:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
{
^
C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp:112:12: warning: unused variable 'vals' [-Wunused-variable]
uint32_t vals[4];
^~~~
C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp: At global scope:
C:/users/owner/desktop/gbarunner2/arm7/source/main.cpp:10:13: warning: 'void vblank_handler()' defined but not used [-Wunused-function]
static void vblank_handler()
^~~~~~~~~~~~~~
save.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm7/build/save.d -g -Wall -O3 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -marm -I/c/users/owner/desktop/gbarunner2/arm7/include -I/c/users/owner/desktop/gbarunner2/arm7/source -I/c/users/owner/desktop/gbarunner2/arm7/build -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm7/build -DARM7 -fno-exceptions -fno-rtti -c /c/users/owner/desktop/gbarunner2/arm7/source/save.cpp -o save.o
In file included from C:/users/owner/desktop/gbarunner2/arm7/source/save.cpp:2:
C:/users/owner/desktop/gbarunner2/arm7/source/timer.h:23: warning: "TIMER_FREQ" redefined
#define TIMER_FREQ(x) (-33513982/(x))
In file included from C:/devkitPro/libnds/include/nds.h:241,
from C:/users/owner/desktop/gbarunner2/arm7/source/save.cpp:1:
C:/devkitPro/libnds/include/nds/timers.h:145: note: this is the location of the previous definition
#define TIMER_FREQ(n) (-BUS_CLOCK/(n))
dldi_handler.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm7/build/dldi_handler.d -g -Wall -O3 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -marm -I/c/users/owner/desktop/gbarunner2/arm7/include -I/c/users/owner/desktop/gbarunner2/arm7/source -I/c/users/owner/desktop/gbarunner2/arm7/build -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm7/build -DARM7 -fno-exceptions -fno-rtti -c /c/users/owner/desktop/gbarunner2/arm7/source/dldi_handler.cpp -o dldi_handler.o
sound.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm7/build/sound.d -g -Wall -O3 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -marm -I/c/users/owner/desktop/gbarunner2/arm7/include -I/c/users/owner/desktop/gbarunner2/arm7/source -I/c/users/owner/desktop/gbarunner2/arm7/build -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm7/build -DARM7 -fno-exceptions -fno-rtti -c /c/users/owner/desktop/gbarunner2/arm7/source/sound.cpp -o sound.o
In file included from C:/users/owner/desktop/gbarunner2/arm7/source/sound.cpp:3:
C:/users/owner/desktop/gbarunner2/arm7/source/timer.h:23: warning: "TIMER_FREQ" redefined
#define TIMER_FREQ(x) (-33513982/(x))
In file included from C:/devkitPro/libnds/include/nds.h:241,
from C:/users/owner/desktop/gbarunner2/arm7/source/sound.cpp:1:
C:/devkitPro/libnds/include/nds/timers.h:145: note: this is the location of the previous definition
#define TIMER_FREQ(n) (-BUS_CLOCK/(n))
In file included from C:/users/owner/desktop/gbarunner2/arm7/source/sound.cpp:7:
C:/users/owner/desktop/gbarunner2/arm7/source/sound.h:35: warning: "REG_SOUNDCNT" redefined
#define REG_SOUNDCNT (((vu32)0x04000500))
In file included from C:/devkitPro/libnds/include/nds.h:286,
from C:/users/owner/desktop/gbarunner2/arm7/source/sound.cpp:1:
C:/devkitPro/libnds/include/nds/arm7/audio.h:67: note: this is the location of the previous definition
#define REG_SOUNDCNT ((vu16)0x4000500)
In file included from C:/users/owner/desktop/gbarunner2/arm7/source/sound.cpp:7:
C:/users/owner/desktop/gbarunner2/arm7/source/sound.h:41: warning: "REG_SOUNDBIAS" redefined
#define REG_SOUNDBIAS (((vu32)0x04000504))
In file included from C:/devkitPro/libnds/include/nds.h:286,
from C:/users/owner/desktop/gbarunner2/arm7/source/sound.cpp:1:
C:/devkitPro/libnds/include/nds/arm7/audio.h:68: note: this is the location of the previous definition
#define REG_SOUNDBIAS ((vu32)0x4000504)
C:/users/owner/desktop/gbarunner2/arm7/source/sound.cpp:96:45: warning: "/*" within comment [-Wcomment]
REG_TM[0].CNT_L = TIMER_FREQ(sampleFreq);///*10512);///13378);//10512);
C:/users/owner/desktop/gbarunner2/arm7/source/sound.cpp:106:23: warning: "/" within comment [-Wcomment]
// samplesPerBlock = /(((3 * samplesPerBlock + (/(count + 8) & ~0xF;//)) / 4) + 8) & ~0xF;//(u32)(((u64)count * 598261ull + 298685ull) / 597370ull);
dldi.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm7/build/dldi.d -x assembler-with-cpp -g -mthumb-interwork -marm -c /c/users/owner/desktop/gbarunner2/arm7/source/dldi.s -o dldi.o
lock.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm7/build/lock.d -x assembler-with-cpp -g -mthumb-interwork -marm -c /c/users/owner/desktop/gbarunner2/arm7/source/lock.s -o lock.o
irq.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm7/build/irq.d -x assembler-with-cpp -g -mthumb-interwork -marm -c /c/users/owner/desktop/gbarunner2/arm7/source/irq.s -o irq.o
linking gbarunner2.elf
make[1]: Leaving directory '/c/users/owner/desktop/gbarunner2/arm7'
make -C arm9
make[1]: Entering directory '/c/users/owner/desktop/gbarunner2/arm9'
vector.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/vector.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/vector.cpp -o vector.o
fat.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/fat.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/fat.cpp -o fat.o
In file included from C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:4:
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp: In function 'void find_dir_entry(uint32_t, const char*, dir_entry_t*, SEARCH_TYPE)':
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:37:88: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
read_sd_sectors_safe(cur_dir_sector, vram_cd->sd_info.nr_sectors_per_cluster, tmp_buf + 512);
~~~~~~~~^~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/sd_access.h:31:101: note: in definition of macro 'read_sd_sectors_safe'
#define read_sd_sectors_safe(sector,numSectors,buffer) _DLDI_readSectors_ptr((sector),(numSectors),(buffer))
^~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:47:53: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
dir_entry_t dir_entries = (dir_entry_t)(tmp_buf + 512);
~~~~~~~~^~~~~
In file included from C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:4:
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:165:115: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
read_sd_sectors_safe(get_sector_from_cluster(cur_dir_cluster), vram_cd->sd_info.nr_sectors_per_cluster, tmp_buf + 512);
~~~~~~~~^~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/sd_access.h:31:101: note: in definition of macro 'read_sd_sectors_safe'
#define read_sd_sectors_safe(sector,numSectors,buffer) _DLDI_readSectors_ptr((sector),(numSectors),(buffer))
^~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp: In function 'int write_entries_to_sd(const uint8_t, const uint8_t*, int, uint8_t, uint32_t, uint32_t, uint32_t)':
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:344:88: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
read_sd_sectors_safe(cur_dir_sector, vram_cd->sd_info.nr_sectors_per_cluster, tmp_buf + 512);
~~~~~~~~^~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/sd_access.h:31:101: note: in definition of macro 'read_sd_sectors_safe'
#define read_sd_sectors_safe(sector,numSectors,buffer) _DLDI_readSectors_ptr((sector),(numSectors),(buffer))
^~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:350:53: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
dir_entry_t dir_entries = (dir_entry_t)(tmp_buf + 512);
~~~~~~~~^~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:412:115: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
write_sd_sectors_safe(get_sector_from_cluster(cur_cluster), vram_cd->sd_info.nr_sectors_per_cluster, tmp_buf + 512);
~~~~~~~~^~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:420:113: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
write_sd_sectors_safe(get_sector_from_cluster(cur_cluster), vram_cd->sd_info.nr_sectors_per_cluster, tmp_buf + 512);
~~~~~~~~^~~~~
In file included from C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:4:
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:428:111: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
read_sd_sectors_safe(get_sector_from_cluster(cur_cluster), vram_cd->sd_info.nr_sectors_per_cluster, tmp_buf + 512);
~~~~~~~~^~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/sd_access.h:31:101: note: in definition of macro 'read_sd_sectors_safe'
#define read_sd_sectors_safe(sector,numSectors,buffer) _DLDI_readSectors_ptr((sector),(numSectors),(buffer))
^~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp: In function 'uint32_t allocate_clusters(uint32_t, int)':
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:461:48: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
read_sd_sectors_safe(prev_sector, 1, tmp_buf + (buff_pos^512));//_DLDI_readSectors_ptr(cur_sector, 1, tmp_buf + 512);
~~~~~~~~^~~~~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/sd_access.h:31:101: note: in definition of macro 'read_sd_sectors_safe'
#define read_sd_sectors_safe(sector,numSectors,buffer) _DLDI_readSectors_ptr((sector),(numSectors),(buffer))
^~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:468:47: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
read_sd_sectors_safe(cur_sector, 1, tmp_buf + buff_pos);//_DLDI_readSectors_ptr(cur_sector, 1, tmp_buf);
~~~~~~~~^~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/sd_access.h:31:101: note: in definition of macro 'read_sd_sectors_safe'
#define read_sd_sectors_safe(sector,numSectors,buffer) _DLDI_readSectors_ptr((sector),(numSectors),(buffer))
^~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:469:44: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
uint32_t clusters = (uint32_t)(tmp_buf + buff_pos);
~~~~~~~~^~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:492:51: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
uint32_t cluster_ptr = (uint32_t)(tmp_buf + (buff_pos^512));
~~~~~~~~^~~~~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:497:53: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
write_sd_sectors_safe(prev_sector, 1, tmp_buf + (buff_pos^512));
~~~~~~~~^~~~~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/fat.cpp:517:49: warning: pointer of type 'void ' used in arithmetic [-Wpointer-arith]
write_sd_sectors_safe(cur_sector, 1, tmp_buf + buff_pos);
~~~~~~~~^~~~~~~~~~
qsort.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/qsort.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/qsort.cpp -o qsort.o
vramheap.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/vramheap.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp -o vramheap.o
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:31:30: warning: multi-character character constant [-Wmultichar]
while (cur && !(cur->tag == HEAP_TAG_FREE && cur->size >= size)) {
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:48:15: warning: multi-character character constant [-Wmultichar]
block->tag = HEAP_TAG_USED;
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:58:15: warning: multi-character character constant [-Wmultichar]
if(a->tag != HEAP_TAG_FREE || b->tag != HEAP_TAG_FREE)
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:58:42: warning: multi-character character constant [-Wmultichar]
if(a->tag != HEAP_TAG_FREE || b->tag != HEAP_TAG_FREE)
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:82:19: warning: multi-character character constant [-Wmultichar]
if(block->tag != HEAP_TAG_FREE) return NULL;
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:83:40: warning: multi-character character constant [-Wmultichar]
if(block->prev && block->prev->tag == HEAP_TAG_FREE) block = vramheap_mergeblocks(block->prev, block);
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:84:40: warning: multi-character character constant [-Wmultichar]
if(block->next && block->next->tag == HEAP_TAG_FREE) block = vramheap_mergeblocks(block, block->next);
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:98:16: warning: multi-character character constant [-Wmultichar]
block2->tag = HEAP_TAG_FREE;
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:116:22: warning: multi-character character constant [-Wmultichar]
first_block->tag = HEAP_TAG_USED;
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:127:16: warning: multi-character character constant [-Wmultichar]
block->tag = HEAP_TAG_USED;
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:166:15: warning: multi-character character constant [-Wmultichar]
block->tag = HEAP_TAG_FREE;
^~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp: In function 'heap_block_t vramheap_findfreeblock(heap_block_t, int)':
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:31:57: warning: comparison of integer expressions of different signedness: 'uint32_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
while (cur && !(cur->tag == HEAP_TAG_FREE && cur->size >= size)) {
~~~~~~~~~~^~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp: In function 'uint16_t vramheap_realloc(void, int)':
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:139:10: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'long unsigned int'} [-Wsign-compare]
if(size == block->size)
~~~~~^~~~~~~~~~~~~~
C:/users/owner/desktop/gbarunner2/arm9/source/vramheap.cpp:141:10: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'long unsigned int'} [-Wsign-compare]
if(size < block->size)
~~~~~^~~~~~~~~~~~~
debugfont.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/debugfont.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/debugfont.cpp -o debugfont.o
string.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/string.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/string.cpp -o string.o
init.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/init.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/init.cpp -o init.o
sd_access.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/sd_access.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/sd_access.cpp -o sd_access.o
C:/users/owner/desktop/gbarunner2/arm9/source/sd_access.cpp:804:194: warning: "/*" within comment [-Wcomment]
read_sd_sectors_safe(get_sector_from_cluster(vram_cd->gba_rom_cluster_table[cluster_index >> (vram_cd->sd_info.cluster_shift - 9)]) + (cluster_index & (vram_cd->sd_info.cluster_mask >> 9)), 1/*vram_cd->sd_info.nr_sectors_per_cluster/, &vram_cd->cluster_cache[block << 9/*vram_cd->sd_info.cluster_shift/]);
C:/users/owner/desktop/gbarunner2/arm9/source/sd_access.cpp:804:272: warning: "/" within comment [-Wcomment]
C:/users/owner/desktop/gbarunner2/arm9/source/sd_access.cpp:914:40: warning: "/" within comment [-Wcomment]
uint32_t left_in_this_cluster = (1 << /*vram_cd->sd_info.cluster_shift/9) - cluster_offset;
C:/users/owner/desktop/gbarunner2/arm9/source/sd_access.cpp:930:58: warning: "/" within comment [-Wcomment]
arm9_memcpy16((uint16_t)dst, (uint16_t*)cluster_data, /*(1 << vram_cd->sd_info.cluster_shift)/512 / 2);
FileBrowser.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/FileBrowser.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/gui/FileBrowser.cpp -o FileBrowser.o
Directory.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/Directory.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/fat/Directory.cpp -o Directory.o
DirectoryEnumerator.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/DirectoryEnumerator.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/fat/DirectoryEnumerator.cpp -o DirectoryEnumerator.o
DirectoryEntry.cpp
arm-none-eabi-g++ -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/DirectoryEntry.d -g -Wall -O2 -nostdlib -nodefaultlibs -march=armv5te -mtune=arm946e-s -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-tree-loop-distribute-patterns -fno-builtin -fomit-frame-pointer -ffast-math -marm -mthumb-interwork -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -DARM9 -fno-rtti -fno-exceptions -fnon-call-exceptions -c /c/users/owner/desktop/gbarunner2/arm9/source/fat/DirectoryEntry.cpp -o DirectoryEntry.o
sd_access_asm_itcm.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/sd_access_asm_itcm.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/sd_access_asm_itcm.s -o sd_access_asm_itcm.o
setup.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/setup.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/setup.s -o setup.o
dldi_stub.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/dldi_stub.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/dldi_stub.s -o dldi_stub.o
consts.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/consts.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/consts.s -o consts.o
aborthandler_asm.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/aborthandler_asm.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/aborthandler_asm.s -o aborthandler_asm.o
sd_access_asm.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/sd_access_asm.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/sd_access_asm.s -o sd_access_asm.o
vram_code.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/vram_code.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/vram_code.s -o vram_code.o
bios_patches.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/bios_patches.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/bios_patches.s -o bios_patches.o
dtcm_data.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/dtcm_data.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/dtcm_data.s -o dtcm_data.o
timer.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/timer.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/timer.s -o timer.o
handle_address_write.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/handle_address_write.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/handle_address_write.s -o handle_address_write.o
gfx.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/gfx.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/gfx.s -o gfx.o
handle_address_read_table.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/handle_address_read_table.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/handle_address_read_table.s -o handle_address_read_table.o
handle_instructions_thumb.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/handle_instructions_thumb.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/handle_instructions_thumb.s -o handle_instructions_thumb.o
dma.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/dma.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/dma.s -o dma.o
snd.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/snd.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/snd.s -o snd.o
handle_address_read.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/handle_address_read.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/handle_address_read.s -o handle_address_read.o
handle_instructions_arm.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/handle_instructions_arm.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/handle_instructions_arm.s -o handle_instructions_arm.o
irq.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/irq.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/irq.s -o irq.o
handle_address_write_table.s
arm-none-eabi-gcc -MMD -MP -MF /c/users/owner/desktop/gbarunner2/arm9/build/handle_address_write_table.d -x assembler-with-cpp -g -marm -mthumb-interwork -march=armv5te -mtune=arm946e-s -I/c/users/owner/desktop/gbarunner2/arm9/include -I/c/users/owner/desktop/gbarunner2/arm9/source -I/opt/devkitpro/libnds/include -I/c/users/owner/desktop/gbarunner2/arm9/build -c /c/users/owner/desktop/gbarunner2/arm9/source/emu/handle_address_write_table.s -o handle_address_write_table.o
linking gbarunner2.elf
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/8.2.0/../../../../arm-none-eabi/bin/ld.exe: address 0x1008054 of C:/users/owner/desktop/gbarunner2/arm9/gbarunner2.elf section .itcm' is not within region
itcm'
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/8.2.0/../../../../arm-none-eabi/bin/ld.exe: address 0x1008054 of C:/users/owner/desktop/gbarunner2/arm9/gbarunner2.elf section .itcm' is not within region
itcm'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [/c/users/owner/desktop/gbarunner2/arm9/Makefile:123: /c/users/owner/desktop/gbarunner2/arm9/gbarunner2.elf] Error 1
make[1]: *** [Makefile:107: build] Error 2
make[1]: Leaving directory '/c/users/owner/desktop/gbarunner2/arm9'
make: *** [Makefile:31: arm9/gbarunner2.elf] Error 2
Please Help. I've run make clean before.