libretro / snes9x2010

Snes9x 2010. Port of Snes9x 1.52+ to Libretro (previously called SNES9x Next). Rewritten in C and several optimizations and speedhacks.
Other
98 stars 70 forks source link

Compilation error for armv7_a7 #155

Closed DrUm78 closed 2 years ago

DrUm78 commented 2 years ago

Hardware: FunKey S (SoC V3s ARM Cortex A7-A clocked @ 1.2GHz).

Hello, despite the last commit https://github.com/libretro/snes9x2010/commit/69c2b8ca7f6c1c529e8a1298a387572e39ccdb90, compilation still fails for armv devices (here armv7_a7). I get this error (sample): /opt/FunKey-sdk/bin/../lib/gcc/arm-funkey-linux-musleabihf/10.2.0/../../../../arm-funkey-linux-musleabihf/bin/ld: /tmp/snes9x2010_libretro.so.g1RmfQ.ltrans40.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `Memory' can not be used when making a shared object; recompile with -fPIC /opt/FunKey-sdk/bin/../lib/gcc/arm-funkey-linux-musleabihf/10.2.0/../../../../arm-funkey-linux-musleabihf/bin/ld: /tmp/snes9x2010_libretro.so.g1RmfQ.ltrans0.ltrans.o(.text+0x580): unresolvable R_ARM_CALL relocation against symbol `memcpy' collect2: error: ld returned 1 exit status

Of course, -fPIC is already set so I don't know how to solve it. I just discovered this page http://bot.libretro.com/nightly/ though but nothing is compiled for "classic_armv7_a7" and Android "armeabi-v7a" does not work on my device so I would need to build it myself.

Thanks!

DrUm78 commented 2 years ago

Ok I fixed the compilation by taking "Makefile.libretro" from another core (PokeMini). Closed.