libretro / beetle-ngp-libretro

Standalone port of Mednafen NGP to the libretro API, itself a fork of Neopop.
GNU General Public License v2.0
11 stars 44 forks source link

Compilation fails for 'classic_armv7_a7' because of 'FLAGS' instead of 'CFLAGS' #111

Open DrUm78 opened 5 months ago

DrUm78 commented 5 months ago

Compilation fails for 'classic_armv7_a7'. Indeed, it seems like CFLAGS should be used instead of FLAGS below (works for me): https://github.com/libretro/beetle-ngp-libretro/blob/673c3d924ff33d71c6a342b170eff5359244df1f/Makefile#L128

Stack:

during RTL pass: expand
libretro.c: In function ‘retro_run’:
libretro.c:561:6: internal compiler error: in arm_expand_divmod_libfunc, at config/arm/arm.c:33047
  561 | void retro_run(void)
      |      ^
0x7f52f6930082 __libc_start_main
        ../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://bugs.buildroot.net/> for instructions.
lto-wrapper: fatal error: /opt/FunKey-sdk/bin/arm-funkey-linux-musleabihf-g++.br_real returned 1 exit status
compilation terminated.
/opt/FunKey-sdk/bin/../lib/gcc/arm-funkey-linux-musleabihf/10.2.0/../../../../arm-funkey-linux-musleabihf/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [Makefile:659: mednafen_ngp_libretro.so] Error 1