libretro / libretro-fceumm

FCEUmm libretro port.
GNU General Public License v2.0
126 stars 113 forks source link

'classic_armv7_a7' compilation fails because of missing -fPIC #604

Closed DrUm78 closed 4 months ago

DrUm78 commented 5 months ago

Compilation for classic_armv7_a7 fails because -fPIC is missing here: https://github.com/libretro/libretro-fceumm/blob/aebea8783652bc75b21b9d2dcb28cedf1fa78e8a/Makefile.libretro#L353

/opt/FunKey-sdk/bin/../lib/gcc/arm-funkey-linux-musleabihf/10.2.0/../../../../arm-funkey-linux-musleabihf/bin/ld: /tmp/fceumm_libretro.so.4gEzjv.ltrans0.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' 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/fceumm_libretro.so.4gEzjv.ltrans1.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' 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/fceumm_libretro.so.4gEzjv.ltrans2.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' 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/fceumm_libretro.so.4gEzjv.ltrans3.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `mapper.lto_priv.0' 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/fceumm_libretro.so.4gEzjv.ltrans4.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' 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/fceumm_libretro.so.4gEzjv.ltrans5.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `latcheinit.lto_priv.1' 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/fceumm_libretro.so.4gEzjv.ltrans6.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' 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/fceumm_libretro.so.4gEzjv.ltrans7.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `EXPREGS' 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/fceumm_libretro.so.4gEzjv.ltrans8.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `X' 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/fceumm_libretro.so.4gEzjv.ltrans9.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `X' 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/fceumm_libretro.so.4gEzjv.ltrans10.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `input_cb.lto_priv.0' 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/fceumm_libretro.so.4gEzjv.ltrans11.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `GENIEROM.lto_priv.0' 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/fceumm_libretro.so.4gEzjv.ltrans12.ltrans.o: relocation R_ARM_MOVW_ABS_NC against `BaseDirectory.lto_priv.0' can not be used when making a shared object; recompile with -fPIC
[...]
LibretroAdmin commented 4 months ago

See if it builds now - https://github.com/libretro/libretro-fceumm/commit/386376c673299add5d949434c1cb2cee3b13be2a