Closed mrki0620 closed 4 years ago
Running into the same issue as well.
...
c4.c:(.text._atan2+0x80): dangerous relocation: unsupported relocation
/usr/bin/ld: ./source/c4emu.o(.text.C4DoScaleRotate+0xa8): unresolvable R_ARM_CALL relocation against symbol `memset@@GLIBC_2.4'
/usr/bin/ld: final link failed: symbol needs debug section which does not exist
collect2: error: ld returned 1 exit status
make: *** [Makefile:579: snes9x2005_libretro.so] Error 1
/home/pi/RetroPie-Setup
Could not successfully build lr-snes9x2005 - Super Nintendo emu - Snes9x 1.43 based port for libretro (/home/pi/RetroPie-Setup/tmp/build/lr-snes9x2005/snes9x2005_libretro.so not found).
This is due to
2179ab8a12c8dfad88d343f32fff5c4f3a4b0e1d is the first bad commit
commit 2179ab8a12c8dfad88d343f32fff5c4f3a4b0e1d
Author: twinaphex <libretro@gmail.com>
Date: Fri Dec 27 04:25:56 2019 +0100
Update Makefile
:100644 100644 be367d446646d8e132b1dd112ce7140983d20e1d e59d74ba1864f5ea68e0a37ffcbed9396c0b68c7 M Makefile
removing the
LDFLAGS += $(fpic)
FLAGS += $(fpic)
$(fpic) is added to the LD parameters later so I assume it's preferred to do the same for the compiling - I'll submit a PR.
Hi to all. Can someone help me with the below compile error, which I'm getting on the RPI4 environment with latest raspbian buster (desktop version). Below log says, that due to some compile/make errors the snes9x2005_libretro.so cannot be found. Is it possible to get allready compiled .so for the RPI4 (buster). On the other hand the lr-snes9x2010 compiles without problems. many thanks for your answer. Peter LOG below
Getting sources for 'lr-snes9x2005' : Super Nintendo emu - Snes9x 1.43 based port for libretro = = = = = = = = = = = = = = = = = = = = =
git clone --recursive --depth 1 --branch master "https://github.com/libretro/snes9x2005.git" "/home/pi/RetroPie-Setup/tmp/build/lr-snes9x2005" Cloning into '/home/pi/RetroPie-Setup/tmp/build/lr-snes9x2005'... HEAD is now in branch 'master' at commit 'bc69ab7e61d744b5310e6664f733c17903b3f91a' /home/pi/RetroPie-Setup /home/pi/RetroPie-Setup/tmp/build/lr-snes9x2005 /home/pi/RetroPie-Setup
= = = = = = = = = = = = = = = = = = = = = Building 'lr-snes9x2005' : Super Nintendo emu - Snes9x 1.43 based port for libretro = = = = = = = = = = = = = = = = = = = = =
rm -f snes9x2005_libretro.so ./source/c4.o ./source/c4emu.o ./source/cheats2.o ./source/cheats.o ./source/clip.o ./source/cpu.o ./source/cpuexec.o ./source/cpuops.o ./source/data.o ./source/dma.o ./source/dsp1.o ./source/fxemu.o ./source/fxinst.o ./source/gfx.o ./source/getset.o ./source/globals.o ./source/memmap.o ./source/obc1.o ./source/ppu.o ./source/sa1.o ./source/sa1cpu.o ./source/sdd1.o ./source/sdd1emu.o ./source/seta010.o ./source/seta011.o ./source/seta018.o ./source/seta.o ./source/spc7110.o ./source/spc7110dec.o ./source/srtc.o ./source/tile.o ./libretro.o ./source/apu.o ./source/soundux.o ./source/spc700.o cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/c4.o source/c4.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/c4emu.o source/c4emu.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/cheats2.o source/cheats2.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/cheats.o source/cheats.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/clip.o source/clip.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/cpu.o source/cpu.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/cpuexec.o source/cpuexec.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/cpuops.o source/cpuops.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/data.o source/data.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/dma.o source/dma.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/dsp1.o source/dsp1.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/fxemu.o source/fxemu.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/fxinst.o source/fxinst.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/gfx.o source/gfx.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/getset.o source/getset.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/globals.o source/globals.c cc -O2 -march=armv8-a+crc -mtune=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -pipe -DGIT_VERSION=\"" bc69ab7"\" -fno-builtin -fno-exceptions -ffunction-sections -DLOAD_FROM_MEMORY_TEST -Wall -Wextra -pedantic -Wno-implicit-function-declaration -Wno-implicit-fallthrough -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-uninitialized -Wno-strict-aliasing -Wno-overflow -fno-strict-overflow -I./source -I. -I./libretro-common/include -O2 -DNDEBUG -DLAGFIX -c -osource/memmap.o source/memmap.c source/memmap.c: In function ‘KartContents’: source/memmap.c:2526:15: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(tmp, "%s+%s", tmp, "BSX"); ^~~ ~~~ source/memmap.c:2528:15: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(tmp, "%s+%s", tmp, "SPC7110+RTC"); ^~~ ~~~ source/memmap.c:2530:15: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(tmp, "%s+%s", tmp, "SPC7110"); ^~~ ~~~ source/memmap.c:2532:15: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(tmp, "%s+%s", tmp, "C4"); ^~~ ~~~ source/memmap.c:2538:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(tmp, "%s+%s", tmp, "ST-010"); ^~~ ~~~ source/memmap.c:2541:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(tmp, "%s+%s", tmp, "ST-011"); ^~~ ~~~ source/memmap.c:2544:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(tmp, "%s+%s", tmp, "ST-018"); ^~~ ~~~ source/memmap.c:2551:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(tmp, "%s+%s", tmp, CoPro [(Memory.ROMType & 0xf0) >> 4]); ^~~ ~~~ source/memmap.c:2553:18: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] sprintf(tmp, "%s+DSP%d", tmp, Settings.DSP == 0 ? 1 : Settings.DSP); ^~~ ~~~ source/memmap.c: In function ‘LoROMMap’: source/memmap.c:1550:79: warning: array subscript -24576 is below array bounds of ‘uint8_t[8192]’ {aka ‘unsigned char[8192]’} [-Warray-bounds] Memory.Map [c + 6] = Memory.Map [c + 0x806] = (uint8_t*) bytes0x2000 - 0x6000;