RetroPie / RetroPie-Setup

Shell script to set up a Raspberry Pi/Odroid/PC with RetroArch emulator and various cores
Other
10.02k stars 1.38k forks source link

Source Based: Building GameBoy Advance emulator fails #427

Closed nilsbyte closed 10 years ago

nilsbyte commented 10 years ago

Tested with a fresh raspbian image, upgraded and updated.

Following selection in 'Source-based INSTALLATION':

DEselected:

100 AdvMame 102 Macintosh emulator 104 Amstrad CPC emulator 107 Duke3D Port 115 Apple 2 emulator Linapple 116 MAME emulator MAME4All-Pi 120 FBA emulator PiFBA 200 Cave Story LibretroCore 201 Doom LibretroCore 202 FBA LibretroCore 205 MAME LibretroCore

All OTHER packages selected.

= = = = = = = = = = = = = = = = = = = = =
Building GameBoy Advance emulator
= = = = = = = = = = = = = = = = = = = = =

/opt/retropie/emulators/gpsp /home/pi/RetroPie-Setup
rm -f *.o gpsp
gcc -O2 -pipe -mfpu=vfp -march=armv6j -mfloat-abi=hard -DARM_ARCH -DRPI_BUILD -Wall -mfpu=vfp -mfloat-abi=hard -march=armv6j -fgnu89-inline -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vmcs_host/linux -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -c -o rpi.o rpi.c
gcc -O2 -pipe -mfpu=vfp -march=armv6j -mfloat-abi=hard -DARM_ARCH -DRPI_BUILD -Wall -mfpu=vfp -mfloat-abi=hard -march=armv6j -fgnu89-inline -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vmcs_host/linux -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -c -o main.o ../main.c
gcc -O2 -pipe -mfpu=vfp -march=armv6j -mfloat-abi=hard -DARM_ARCH -DRPI_BUILD -Wall -mfpu=vfp -mfloat-abi=hard -march=armv6j -fgnu89-inline -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vmcs_host/linux -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wno-unused-variable -Wno-unused-label   -c -o cpu.o ../cpu.c
../cpu.c: In function execute_arm:
../cpu.c:4371:7: warning: variable old_pc set but not used [-Wunused-but-set-variable]
gcc -O2 -pipe -mfpu=vfp -march=armv6j -mfloat-abi=hard -DARM_ARCH -DRPI_BUILD -Wall -mfpu=vfp -mfloat-abi=hard -march=armv6j -fgnu89-inline -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vmcs_host/linux -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -c -o memory.o ../memory.c
../memory.c: In function write_eeprom:
../memory.c:271:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
../memory.c:285:12: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
../memory.c:293:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
{standard input}: Assembler messages:
{standard input}:2236: Warning: end of file not at end of a line; newline inserted
{standard input}:2404: Error: ARM register expected -- `sub'
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make: *** [memory.o] Error 4
/home/pi/RetroPie-Setup
joolswills commented 10 years ago

ouch gcc crash. please can you try again to see if it happens again?

you can trigger a specific module build with "sudo ./retropie_packages gpsp" for example

joolswills commented 10 years ago

could be an out of memory issue also (so gcc getting killed) is this a 512mb pie (re-adding comment as accidentally deleted)

nilsbyte commented 10 years ago

btw: I cloned the script yesterday 08-07-14 at 8 PM.

My Pi hs the Model B. 512 MB. Memory split set to 256 MB.

petrockblog commented 10 years ago

I have committed a patch that enhances the swap file for the time of building gpsp. This should solve this issue.

nilsbyte commented 10 years ago

It did work in my last test where I set memory split to 64. But enhancing the swap file is good too :)