Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

NeoGeo and NeoGeoCD Emulation crashes

Recommended Posts

Dear friends,
I tried to use Raine on my Arch Linux machine.

I use the latest AUR 'raine' packet and it installes just fine.

I can start the emu and play games like Street Fighter II or other CPS games without any problem.

But NeoGeo and NeoGeoCD titles crash. Some crash very fast quickly after the bios boot, some crash, like Samurai Spirits IV, after you choose your fighter. They always crash at a quite similar point in the game. Firstly I thought they crash once playing a certain audio sample, but I'm not sure.

The interesting part is, the exact same bios/roms/images work well on the Windows Version of Raine.

Any clue could be helpful, I might miss something like a libary, but I don't know.

Thank you

Share this post

Link to post
Share on other sites
Posted (edited)

Hey thanks for the info, I use arch too and didn't even think about checking raine package in aur !

It's a little outdated, still using 0.64.16 here, but I didn't tag git for 0.91 yet, and there are big changes in the way it's built for 0.90 so it's no big surprise.

Well I'd say it's probably a build problem actually there since as you say the windows version works well here, if it was only neocd I would say a problem with sdl_sound, but since there is neogeo also in it, I am not sure...

Eventually drop a message to the maintainer of the package and you can tell him to post here if he needs.

(I'd like to give a link to the aur package on the download package, but I'll avoid to do that if it crashes on things like that... I'll eventually try it, but it's an optimized build without debug symbols so it's hard to guess what went wrong here.)

edit : I tested it, and I confirm the crash, I would say it seems linked to the sound, but not sure without a debug build, there is no message to see, just a crash as soon as the game tries to emit a sound (after the neogeo bios logo). I'd say rebuild in debug mode and run it from gdb, but here you can't do that with that binary, post to the maintainer then... I can ony confirm it shouldn't happen.


edit 2 : found the cause, I looked into the build directory, it's just that he forces an optimization for "generic" cpus, and apparently there is something there not appreciated in the build. Actually this file is forced to pentium3 in git since 2016... and it was even in the source archive he used, I checked. He used x86_64, which is not a good idea, 0.64.16 is 32 bits only ! Anyway he should just have used the default cpuinfo instead of trying to change it.

I can attach the fixed binary to this post, but you should really send a message to the maintainer... and he is behind by quite a few builds already, this 0.64.16 is from december 2018 ! More than 1 year late. Oh well I will give you instructions on how to fix it rather than attach the binary : just go to the directory where you have the PKGBUILD and all the other files, type :

cd src/raine-0.64.16

edit the cpuinfo file so that it should be like this :

_MARCH=-march=pentium3 -mtune=pentium3

then type

make clean
make -j8

(-j followed by your number of cores). It will make a new binary, now just copy the raine binary you will get to /usr/bin, you are done.
Or alternatively you can edit the PKGBUILD file, and remove these 3 lines :

  # 'detect-cpu' script does not recognize most recent cpus, use generic optimizing
  echo "_MARCH=-march=${CARCH/x86_64/x86-64} -mtune=generic" > cpuinfo
  echo "CPU=generic" >> cpuinfo

then save, and delete the pkg and src directory and the xz file, re-run makepkg -si and it should be ok this time !

Edited by Tux

Share this post

Link to post
Share on other sites

Thank you for your detailed research.

I contacted the package maintainer to fix it and gave him the link to this forum to find the information you provided to us.

I feel its better he fix it in the main pkgbuild for everybody, rather I fix it only for myself.

I'll post a message here once its working with the official pkgbuild.

Thank you so much.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...