ekeeke / Genesis-Plus-GX

An enhanced port of Genesis Plus - accurate & portable Sega 8/16 bit emulator
Other
698 stars 199 forks source link

Cannot build for psp1 platform : "Assembler messages" errors #404

Closed pleft closed 2 years ago

pleft commented 2 years ago

On an x86 ubuntu machine, I have installed pspdev environment and cannot build libretro core with: make -f Makefile.libretro platform=psp1

I get error when compiling core/system.c:

$ psp-gcc -ocore/system.o -c core/system.c  -DGIT_VERSION=\"" 236e783"\" -G0 -O2 -DNDEBUG  -DUSE_LIBTREMOR -DUSE_LIBCHDR -DPACKAGE_VERSION=\"1.3.2\" -DFLAC_API_EXPORTS -DFLAC__HAS_OGG=0 -DHAVE_LROUND -DHAVE_STDINT_H -D_7ZIP_ST -DHAVE_SYS_PARAM_H    -I./core/cd_hw/libchdr/src -I./core/cd_hw/libchdr/deps/libFLAC/include -I./core/cd_hw/libchdr/deps/lzma -I./core/cd_hw/libchdr/deps/zlib -I./core -I./core/z80 -I./core/m68k -I./core/ntsc -I./core/sound -I./core/input_hw -I./core/cd_hw -I./core/cart_hw -I./core/cart_hw/svp -I./libretro -I./libretro/libretro-common/include  -DUSE_16BPP_RENDERING -DFRONTEND_SUPPORTS_RGB565 -DLSB_FIRST -DBYTE_ORDER=LITTLE_ENDIAN -DPSP -D__LIBRETRO__ -DM68K_OVERCLOCK_SHIFT=20 -DZ80_OVERCLOCK_SHIFT=20 -DHAVE_YM3438_CORE -DHAVE_OPLL_CORE -DINLINE="static inline"
/tmp/cccX2eDt.s: Assembler messages:
/tmp/cccX2eDt.s:162: Error: register value used as expression `lui $16,%hi(eq)'
/tmp/cccX2eDt.s:165: Error: register value used as expression `addiu $4,$16,%lo(eq)'
/tmp/cccX2eDt.s:170: Error: register value used as expression `lui $4,%hi(eq+128)'
/tmp/cccX2eDt.s:172: Error: register value used as expression `addiu $4,$4,%lo(eq+128)'
/tmp/cccX2eDt.s:177: Error: register value used as expression `addiu $16,$16,%lo(eq)'
/tmp/cccX2eDt.s:583: Error: register value used as expression `lui $2,%hi(eq)'
/tmp/cccX2eDt.s:584: Error: register value used as expression `addiu $2,$2,%lo(eq)'
/tmp/cccX2eDt.s:585: Error: register value used as expression `lui $21,%hi(eq+128)'
/tmp/cccX2eDt.s:587: Error: register value used as expression `addiu $2,$21,%lo(eq+128)'
/tmp/cccX2eDt.s:2777: Error: symbol `eq' is already defined

any help is appreciated.

ekeeke commented 2 years ago

Sorry but you will have to report this to the libretro team (https://github.com/libretro/Genesis-Plus-GX/issues) as I don't maintain their Makefile and cannot help you with libretro core compilation.

pleft commented 2 years ago

Ok thanks a lot!