I'm trying to compile Homemenuhax so that it works with the Primal Kyogre theme. I keep getting a really weird error about an undefined reference to "IFile_ctx" which seems to be made in themedata_payload.s
I commented out all other Regions in the Makefile, but even before I did that I got the same error.
I saw in a comment somewhere in this thread that it could be due to the Uncompressed Theme File being > 1MB. I just can't find anything on this error message to make me think one way or the other. I don't have any other theme files to test with right now.
Anyone have any ideas?
I commented out all other Regions in the Makefile, but even before I did that I got the same error.
I saw in a comment somewhere in this thread that it could be due to the Uncompressed Theme File being > 1MB. I just can't find anything on this error message to make me think one way or the other. I don't have any other theme files to test with right now.
Anyone have any ideas?
Code:
C:\Users\d4mation\Desktop\3ds_homemenuhax>make clean && make LOADSPAYLOAD=1 USE_P
ADCHECK=0x200 ENABLE_LOADROPBIN=1 ENABLE_HBLAUNCHER=1 LOADSDCFG_PADCHECK=1 MENUR
OP_PATH=menurop_prebuilt THEMEDATA_PATH=C:/users/d4mation/desktop/body_LZ_dec.bin
#@if [ ! -d "menurop_prebuilt/JPN" ]; then $(error "The menurop_prebuilt/JPN dir
ectory doesn't exist, please run the generate_menurop_addrs.sh script."); fi
#@if [ ! -d "menurop_prebuilt/EUR" ]; then $(error "The menurop_prebuilt/EUR dir
ectory doesn't exist, please run the generate_menurop_addrs.sh script."); fi
#@if [ ! -d "menurop_prebuilt/CHN" ]; then $(error "The menurop_prebuilt/CHN dir
ectory doesn't exist, please run the generate_menurop_addrs.sh script."); fi
#@if [ ! -d "menurop_prebuilt/KOR" ]; then $(error "The menurop_prebuilt/KOR dir
ectory doesn't exist, please run the generate_menurop_addrs.sh script."); fi
#@if [ ! -d "menurop_prebuilt/TWN" ]; then $(error "The menurop_prebuilt/TWN dir
ectory doesn't exist, please run the generate_menurop_addrs.sh script."); fi
#@for path in menurop_prebuilt/JPN/*; do make -f Makefile buildtheme --no-print-
directory REGION=JPN REGIONVAL=0 MENUVERSION=$(basename "$path"); done
arm-none-eabi-gcc -x assembler-with-cpp -nostartfiles -nostdlib -DREGION=USA -DR
EGIONVAL=1 -DMENUVERSION=11272 -DHEAPBUF=0x35052080 -DROPBIN_BUFADR=0x35040000 -
DTARGETOVERWRITE_MEMCHUNKADR=0x0FFFFEA4 -DNEW3DS=0 -DUSE_PADCHECK=0x200 -DLOADS
DCFG_PADCHECK=1 -DENABLE_LOADROPBIN -DENABLE_HBLAUNCHER -DTHEMEDATA_PATH=\"C:/us
ers/d4mation/desktop/body_LZ_dec.bin\" -DROPBINPAYLOAD_PATH=\"sd:/ropbinpayload_m
enuhax_USA11272_old3ds.bin\" -include menurop_prebuilt/USA/11272 themedata_paylo
ad.s -o build/menuhax_USA11272_old3ds.elf
C:\Users\d4mation\AppData\Local\Temp\ccszooRv.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1337ec): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccszooRv.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13382c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccszooRv.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13386c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccszooRv.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1338ac): undefined reference to `IFile_ctx'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [build/menuhax_USA11272_old3ds.elf] Error 1
make[1]: *** [buildtheme] Error 2
arm-none-eabi-gcc -x assembler-with-cpp -nostartfiles -nostdlib -DREGION=USA -DR
EGIONVAL=1 -DMENUVERSION=12288 -DHEAPBUF=0x35052080 -DROPBIN_BUFADR=0x35040000 -
DTARGETOVERWRITE_MEMCHUNKADR=0x0FFFFEA4 -DNEW3DS=0 -DUSE_PADCHECK=0x200 -DLOADS
DCFG_PADCHECK=1 -DENABLE_LOADROPBIN ABLE_HBLAUNCHER -DTHEMEDATA_PATH=\"C:/users/
d4mation/desktop/body_LZ_dec.bin\" -DROPBINPAYLOAD_PATH=\"sd:/ropbinpayload_menuh
ax_USA12288_old3ds.bin\" -include menurop_prebuilt/USA/12288 themedata_payload.s
-o build/menuhax_USA12288_old3ds.elf
C:\Users\d4mation\AppData\Local\Temp\ccQN3yT3.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1337ec): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccQN3yT3.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13382c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccQN3yT3.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13386c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccQN3yT3.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1338ac): undefined reference to `IFile_ctx'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [build/menuhax_USA12288_old3ds.elf] Error 1
make[1]: *** [buildtheme] Error 2
arm-none-eabi-gcc -x assembler-with-cpp -nostartfiles -nostdlib -DREGION=USA -DR
EGIONVAL=1 -DMENUVERSION=13330 -DHEAPBUF=0x35052080 -DROPBIN_BUFADR=0x35040000 -
DTARGETOVERWRITE_MEMCHUNKADR=0x0FFFFEA4 -DNEW3DS=0 -DUSE_PADCHECK=0x200 -DLOADS
DCFG_PADCHECK=1 -DENABLE_LOADROPBIN -DENABLE_HBLAUNCHER -DTHEMEDATA_PATH=\"C:/us
ers/d4mation/desktop/body_LZ_dec.bin\" -DROPBINPAYLOAD_PATH=\"sd:/ropbinpayload_m
enuhax_USA13330_old3ds.bin\" -include menurop_prebuilt/USA/13330 themedata_paylo
ad.s -o build/menuhax_USA13330_old3ds.elf
C:\Users\d4mation\AppData\Local\Temp\ccqY98Vz.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1337ec): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccqY98Vz.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13382c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccqY98Vz.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13386c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccqY98Vz.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1338ac): undefined reference to `IFile_ctx'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [build/menuhax_USA13330_old3ds.elf] Error 1
make[1]: *** [buildtheme] Error 2
arm-none-eabi-gcc -x assembler-with-cpp -nostartfiles -nostdlib -DREGION=USA -DR
EGIONVAL=1 -DMENUVERSION=14336 -DHEAPBUF=0x35052080 -DROPBIN_BUFADR=0x35040000 -
DTARGETOVERWRITE_MEMCHUNKADR=0x0FFFFEA4 -DNEW3DS=0 -DUSE_PADCHECK=0x200 -DLOADS
DCFG_PADCHECK=1 -DENABLE_LOADROPBIN -DENABLE_HBLAUNCHER -DTHEMEDATA_PATH=\"C:/us
ers/d4mation/desktop/body_LZ_dec.bin\" -DROPBINPAYLOAD_PATH=\"sd:/ropbinpayload_m
enuhax_USA14336_old3ds.bin\" -include menurop_prebuilt/USA/14336 themedata_paylo
ad.s -o build/menuhax_USA14336_old3ds.elf
C:\Users\d4mation\AppData\Local\Temp\cckbihA9.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1337ec): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\cckbihA9.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13382c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\cckbihA9.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13386c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\cckbihA9.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1338ac): undefined reference to `IFile_ctx'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [build/menuhax_USA14336_old3ds.elf] Error 1
make[1]: *** [buildtheme] Error 2
arm-none-eabi-gcc -x assembler-with-cpp -nostartfiles -nostdlib -DREGION=USA -DR
EGIONVAL=1 -DMENUVERSION=15360 -DHEAPBUF=0x35052080 -DROPBIN_BUFADR=0x35040000 -
DTARGETOVERWRITE_MEMCHUNKADR=0x0FFFFEA4 -DNEW3DS=0 -DUSE_PADCHECK=0x200 -DLOADS
DCFG_PADCHECK=1 -DENABLE_LOADROPBIN -DENABLE_HBLAUNCHER -DTHEMEDATA_PATH=\"C:/us
ers/d4mation/desktop/body_LZ_dec.bin\" -DROPBINPAYLOAD_PATH=\"sd:/ropbinpayload_m
enuhax_USA15360_old3ds.bin\" -include menurop_prebuilt/USA/15360 themedata_paylo
ad.s -o build/menuhax_USA15360_old3ds.elf
C:\Users\d4mation\AppData\Local\Temp\ccOt62Lk.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1337ec): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccOt62Lk.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13382c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccOt62Lk.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13386c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccOt62Lk.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1338ac): undefined reference to `IFile_ctx'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [build/menuhax_USA15360_old3ds.elf] Error 1
make[1]: *** [buildtheme] Error 2
arm-none-eabi-gcc -x assembler-with-cpp -nostartfiles -nostdlib -DREGION=USA -DR
EGIONVAL=1 -DMENUVERSION=16404 -DHEAPBUF=0x35052080 -DROPBIN_BUFADR=0x35040000 -
DTARGETOVERWRITE_MEMCHUNKADR=0x0FFFFEA4 -DNEW3DS=0 -DUSE_PADCHECK=0x200 -DLOADS
DCFG_PADCHECK=1 -DENABLE_LOADROPBIN -DENABLE_HBLAUNCHER -DTHEMEDATA_PATH=\"C:/us
ers/d4mation/desktop/body_LZ_dec.bin\" -DROPBINPAYLOAD_PATH=\"sd:/ropbinpayload_m
enuhax_USA16404_old3ds.bin\" -include menurop_prebuilt/USA/16404 themedata_paylo
ad.s -o build/menuhax_USA16404_old3ds.elf
C:\Users\d4mation\AppData\Local\Temp\cckm0vaT.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1337ec): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\cckm0vaT.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13382c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\cckm0vaT.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13386c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\cckm0vaT.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1338ac): undefined reference to `IFile_ctx'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [build/menuhax_USA16404_old3ds.elf] Error 1
make[1]: *** [buildtheme] Error 2
arm-none-eabi-gcc -x assembler-with-cpp -nostartfiles -nostdlib -DREGION=USA -DR
EGIONVAL=1 -DMENUVERSION=17415 -DHEAPBUF=0x35052080 -DROPBIN_BUFADR=0x35040000 -
DTARGETOVERWRITE_MEMCHUNKADR=0x0FFFFEA4 -DNEW3DS=0 -DUSE_PADCHECK=0x200 -DLOADS
DCFG_PADCHECK=1 -DENABLE_LOADROPBIN -DENABLE_HBLAUNCHER -DTHEMEDATA_PATH=\"C:/us
ers/d4mation/desktop/body_LZ_dec.bin\" -DROPBINPAYLOAD_PATH=\"sd:/ropbinpayload_m
enuhax_USA17415_old3ds.bin\" -include menurop_prebuilt/USA/17415 themedata_paylo
ad.s -o build/menuhax_USA17415_old3ds.elf
C:\Users\d4mation\AppData\Local\Temp\cc0tz9ax.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1337ec): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\cc0tz9ax.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13382c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\cc0tz9ax.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13386c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\cc0tz9ax.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1338ac): undefined reference to `IFile_ctx'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [build/menuhax_USA17415_old3ds.elf] Error 1
make[1]: *** [buildtheme] Error 2
arm-none-eabi-gcc -x assembler-with-cpp -nostartfiles -nostdlib -DREGION=USA -DR
EGIONVAL=1 -DMENUVERSION=19456 -DHEAPBUF=0x35052080 -DROPBIN_BUFADR=0x35040000 -
DTARGETOVERWRITE_MEMCHUNKADR=0x0FFFFEA4 -DNEW3DS=0 -DUSE_PADCHECK=0x200 -DLOADS
DCFG_PADCHECK=1 -DENABLE_LOADROPBIN -DENABLE_HBLAUNCHER -DTHEMEDATA_PATH=\"C:/us
ers/d4mation/desktop/body_LZ_dec.bin\" -DROPBINPAYLOAD_PATH=\"sd:/ropbinpayload_m
enuhax_USA19456_old3ds.bin\" -include menurop_prebuilt/USA/19456 themedata_paylo
ad.s -o build/menuhax_USA19456_old3ds.elf
C:\Users\d4mation\AppData\Local\Temp\ccEePGB4.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1337ec): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccEePGB4.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13382c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccEePGB4.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13386c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccEePGB4.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1338ac): undefined reference to `IFile_ctx'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [build/menuhax_USA19456_old3ds.elf] Error 1
make[1]: *** [buildtheme] Error 2
arm-none-eabi-gcc -x assembler-with-cpp -nostartfiles -nostdlib -DREGION=USA -DR
EGIONVAL=1 -DMENUVERSION=20480 -DHEAPBUF=0x35052080 -DROPBIN_BUFADR=0x35040000 -
DTARGETOVERWRITE_MEMCHUNKADR=0x0FFFFEA4 -DNEW3DS=0 -DUSE_PADCHECK=0x200 -DLOADS
DCFG_PADCHECK=1 -DENABLE_LOADROPBIN -DENABLE_HBLAUNCHER -DTHEMEDATA_PATH=\"C:/us
ers/d4mation/desktop/body_LZ_dec.bin\" -DROPBINPAYLOAD_PATH=\"sd:/ropbinpayload_m
enuhax_USA20480_old3ds.bin\" -include menurop_prebuilt/USA/20480 themedata_paylo
ad.s -o build/menuhax_USA20480_old3ds.elf
C:\Users\d4mation\AppData\Local\Temp\ccSkxiig.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1337ec): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccSkxiig.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13382c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccSkxiig.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13386c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccSkxiig.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1338ac): undefined reference to `IFile_ctx'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [build/menuhax_USA20480_old3ds.elf] Error 1
make[1]: *** [buildtheme] Error 2
arm-none-eabi-gcc -x assembler-with-cpp -nostartfiles -nostdlib -DREGION=USA -DR
EGIONVAL=1 -DMENUVERSION=21504 -DHEAPBUF=0x35052080 -DROPBIN_BUFADR=0x35040000 -
DTARGETOVERWRITE_MEMCHUNKADR=0x0FFFFEA4 -DNEW3DS=0 -DUSE_PADCHECK=0x200 -DLOADS
DCFG_PADCHECK=1 -DENABLE_LOADROPBIN -DENABLE_HBLAUNCHER -DTHEMEDATA_PATH=\"C:/us
ers/d4mation/desktop/body_LZ_dec.bin\" -DROPBINPAYLOAD_PATH=\"sd:/ropbinpayload_m
enuhax_USA21504_old3ds.bin\" -include menurop_prebuilt/USA/21504 themedata_paylo
ad.s -o build/menuhax_USA21504_old3ds.elf
C:\Users\d4mation\AppData\Local\Temp\ccKwFckO.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x1337ec): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccKwFckO.o: In function `rop_ret2menu_stack_
newlrval':
(.init+0x13382c): undefined reference to `IFile_ctx'
C:\Users\d4mation\AppData\Local\Temp\ccKwFckO.o: In function `rop_ret2menu_sta
C:\Users\d4mation\Desktop\3ds_homemenuhax>








