Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pleft opened this issue Jan 6, 2022 · 0 comments
Open

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

pleft opened this issue Jan 6, 2022 · 0 comments

Comments

@pleft
Copy link

pleft commented Jan 6, 2022

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/state.o -c core/state.c -DGIT_VERSION=\"" 5cfd336"\" -G0 -O2 -DNDEBUG  -DUSE_LIBTREMOR -DUSE_LIBCHDR -D_7ZIP_ST -DUSE_LIBRETRO_VFS    -I./libretro/deps/libchdr/include -I./libretro/deps/lzma-19.00/include -I./libretro/deps/zlib-1.2.11 -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 -DMAXROMSIZE=10485760 -DINLINE="static inline"
psp-gcc -ocore/genesis.o -c core/genesis.c -DGIT_VERSION=\"" 5cfd336"\" -G0 -O2 -DNDEBUG  -DUSE_LIBTREMOR -DUSE_LIBCHDR -D_7ZIP_ST -DUSE_LIBRETRO_VFS    -I./libretro/deps/libchdr/include -I./libretro/deps/lzma-19.00/include -I./libretro/deps/zlib-1.2.11 -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 -DMAXROMSIZE=10485760 -DINLINE="static inline"
psp-gcc -ocore/system.o -c core/system.c -DGIT_VERSION=\"" 5cfd336"\" -G0 -O2 -DNDEBUG  -DUSE_LIBTREMOR -DUSE_LIBCHDR -D_7ZIP_ST -DUSE_LIBRETRO_VFS    -I./libretro/deps/libchdr/include -I./libretro/deps/lzma-19.00/include -I./libretro/deps/zlib-1.2.11 -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 -DMAXROMSIZE=10485760 -DINLINE="static inline"
/tmp/cceVUhjA.s: Assembler messages:
/tmp/cceVUhjA.s:162: Error: register value used as expression `lui $16,%hi(eq)'
/tmp/cceVUhjA.s:165: Error: register value used as expression `addiu $4,$16,%lo(eq)'
/tmp/cceVUhjA.s:170: Error: register value used as expression `lui $4,%hi(eq+128)'
/tmp/cceVUhjA.s:172: Error: register value used as expression `addiu $4,$4,%lo(eq+128)'
/tmp/cceVUhjA.s:177: Error: register value used as expression `addiu $16,$16,%lo(eq)'
/tmp/cceVUhjA.s:545: Error: register value used as expression `lui $2,%hi(eq)'
/tmp/cceVUhjA.s:546: Error: register value used as expression `addiu $2,$2,%lo(eq)'
/tmp/cceVUhjA.s:547: Error: register value used as expression `lui $21,%hi(eq+128)'
/tmp/cceVUhjA.s:549: Error: register value used as expression `addiu $2,$21,%lo(eq+128)'
/tmp/cceVUhjA.s:2823: Error: symbol `eq' is already defined
make: *** [Makefile.libretro:875: core/system.o] Error 1

any help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant