asiekierka / gbsenpai

GB Studio Extended Nominal Player Adaptation/Interface
MIT License
98 stars 3 forks source link

Issue with GBA rom compilation from GB Studio 2b5 #5

Open ghamson opened 2 years ago

ghamson commented 2 years ago

Hi,

I have been using this excellent tool to compile my gb studio game to work on the GBA. It was working great but I decided to update the game to take advantage of the widescreen capabilities.

It has since stopped being able to compile the rom. I am sure it is something I have done but I wonder if someone can help be debug the issue.

The output from the commandline + debug flag to get all the output is attached.

I have tried multiple computers, reinstalling the devkit on multiple computers - this is all on Windows however.

Here is the last few lines of the output

c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/12.1.0/../../../../arm-none-eabi/bin/ld.exe: music_bank_41.o:C:/gbsenpai-main/sample_cgb/music_bank_41.c:6: multiple definition ofmusic_track_110__Data'; music_bank_38.o:C:/gbsenpai-main/sample_cgb/music_bank_38.c:6: first defined here

collect2.exe: error: ld returned 1 exit status

Reaping losing child 0x8000d0200 PID 642

make[1]: *** [/opt/devkitpro/devkitARM/gba_rules:25: /c/gbsenpai-main/sample_cgb.elf] Error 1

Removing child 0x8000d0200 PID 642 from chain.

Reaping losing child 0x8000aeed0 PID 464

make: *** [Makefile.gba:179: build_sample_cgb] Error 2

Removing child 0x8000aeed0 PID 464 from chain.`

When I look at the gba_rules... it appears to be failing when trying to create the elf, then the gba file - I have checked the permissions on the folders of devkitpro and the gbsenpai and I am running as the administrator.

Any help is appreciated. GBSenpai-DebugOutput-TimeKnights-2022-08-11.txt

asiekierka commented 2 years ago

Try clearing the sample_cgb folder and trying again. I suspect it's using files from a previous version, for some reason.