AdvMAME make error


6 posts
by davedude0 » Sun Oct 21, 2012 6:51 pm
This is the error that it came up with about an hour into the 'make' function. I was following instructions from issue 116 of linux user to get MAME working. Any help apprecialted, and any other options that wont come up with an error would be nice ;)

Also is there a 'sudo apt-get install...' version of MAME to make this process painless?

The error that came up is under here

|
v

src/cpu/sh2/sh2.c: In function ‘sh2_get_info’:
src/cpu/sh2/sh2.c:3217:1: error: unrecognizable insn:
(insn 2034 2033 2035 183 (set (subreg:SI (reg:DI 362 [ sh2.irq_line_state ]) 0)
(sign_extend:SI (mem/s/j/c:QI (plus:SI (reg/f:SI 361)
(const_int 260 [0x104])) [0 sh2.irq_line_state+0 S1 A32]))) src/cpu/sh2/sh2.c:3111 -1
(nil))
src/cpu/sh2/sh2.c:3217:1: internal compiler error: in extract_insn, at recog.c:2109
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccrVF0Wl.out file, please attach this to your bugreport.
make: *** [obj/mame/linux/blend/cpu/sh2/sh2.o] Error 1
Posts: 16
Joined: Sun Jul 15, 2012 10:20 pm
by welshy » Mon Nov 05, 2012 4:51 pm
davedude0
I have compiled Advmame 0.106.0 and 0.106.1 consistently with this method using image 2012-09-18-wheezy-raspbian (And two previous versions), my RPi is over clocked to 900MHz. The problem seems to be the SH2 processor emulator core using the 4.6 compiler.
1. Compile STRAIGHT from Terminal (DON’T go into X)
2. Make sure you have the RAM split set up attributing ALL the RAM to the ARM (Use the config (sudo raspi-config))
3. Compile as ROOT (Set up a root password for this if you haven’t already! (sudo passwd root)
4. Install libsdl1.2-dev dependencies (apt-get install libsdl1.2-dev)
5. Install the GCC 4.7 Compiler (apt-get install gcc-4.7)
6. Change over to the 4.7 Compiler -
export CC=gcc-4.7
export GCC=g++-4.7
Now just CD into the directory where you uncompressed the source code
./configure
make
make install (Optional, but useful in this case as running straight from Terminal (Not in X) gives a significant performance increase!)
7. Once it has completed compiling (It will take a few hour’s!!!) exit ROOT
8. Now start the executable so it sets up all the correct folders -
advmame (Hopefully it will give you a message telling you its set these up!)
9. Start X
10. There should now be a hidden folder .advance
11. Put any ROMS you have in the appropriate folder (rom)
12. In the advmame.rc add the line -
device_video_clock 5 - 50 / 15.62 / 50 ; 5 - 50 / 15.73 / 60
(This will force the correct output to HDMI)
13. Save it
14. Exit X
15. Now just type advmame “Name of ROM”
16. Hopefully it should now work!
I started a thread (Best Emulators for Pi) viewtopic.php?f=78&t=21458 for some guidance and help on emulators from what I have discovered so far. There is information there on Advmame, Advmess, Atari++, FBZX, GNGEO, Mednafen, PSX Rearmed, Stella and UAE!
Hope that helps!
Posts: 1360
Joined: Mon Oct 29, 2012 2:07 pm
by davedude0 » Mon Nov 05, 2012 5:41 pm
Great, thanks ;)
I'll do this when I next get on the Pi!
It's interesting that it won't work in X though...
Thanks anyway, and I hope this can help others with similar problems!
Posts: 16
Joined: Sun Jul 15, 2012 10:20 pm
by welshy » Mon Nov 05, 2012 6:37 pm
davedude0
It MAY work in X (I've NEVER fully watched it compile, just kept an eye on it). However, it's a BIG program and X has a memory overhead, EVERY bit of extra RAM helps!
My RPi is ONLY the 256MEG version btw!
Glad to be of help!
Posts: 1360
Joined: Mon Oct 29, 2012 2:07 pm
by davedude0 » Tue Nov 06, 2012 4:30 pm
Same; 256mb version too here ;)
Really want a 512mb one too though :3
Posts: 16
Joined: Sun Jul 15, 2012 10:20 pm
by welshy » Wed Nov 07, 2012 12:44 pm
davedude0
If you are interested, See viewtopic.php?f=78&t=22302 for GNGEO help!
Posts: 1360
Joined: Mon Oct 29, 2012 2:07 pm