libretro / snes9x2005

Snes9x 2005. Port of SNES9x 1.43 for libretro (was previously called CAT SFC).
Other
15 stars 32 forks source link

RPI4 (buster) compile error snes9x2005_libretro.so #71

Closed mrki0620 closed 4 years ago

mrki0620 commented 4 years ago

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;


source/memmap.c:1550:79: warning: array subscript -24576 is below array bounds of ‘uint8_t[8192]’ {aka ‘unsigned char[8192]’} [-Warray-bounds]
source/memmap.c:1551:79: warning: array subscript -24576 is below array bounds of ‘uint8_t[8192]’ {aka ‘unsigned char[8192]’} [-Warray-bounds]
          Memory.Map [c + 7] = Memory.Map [c + 0x807] = (uint8_t*) bytes0x2000 - 0x6000;
                                                        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
source/memmap.c:1551:79: warning: array subscript -24576 is below array bounds of ‘uint8_t[8192]’ {aka ‘unsigned char[8192]’} [-Warray-bounds]
source/memmap.c: In function ‘SetaDSPMap’:
source/memmap.c:1638:76: 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;
                                                     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
source/memmap.c:1638:76: warning: array subscript -24576 is below array bounds of ‘uint8_t[8192]’ {aka ‘unsigned char[8192]’} [-Warray-bounds]
source/memmap.c:1639:76: warning: array subscript -24576 is below array bounds of ‘uint8_t[8192]’ {aka ‘unsigned char[8192]’} [-Warray-bounds]
       Memory.Map [c + 7] = Memory.Map [c + 0x807] = (uint8_t*) bytes0x2000 - 0x6000;
                                                     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
source/memmap.c:1639:76: warning: array subscript -24576 is below array bounds of ‘uint8_t[8192]’ {aka ‘unsigned char[8192]’} [-Warray-bounds]
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/obc1.o source/obc1.c
source/memmap.c: In function ‘JumboLoROMMap’:
source/memmap.c:2319: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;
                                                        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
source/memmap.c:2319:79: warning: array subscript -24576 is below array bounds of ‘uint8_t[8192]’ {aka ‘unsigned char[8192]’} [-Warray-bounds]
source/memmap.c:2320:79: warning: array subscript -24576 is below array bounds of ‘uint8_t[8192]’ {aka ‘unsigned char[8192]’} [-Warray-bounds]
          Memory.Map [c + 7] = Memory.Map [c + 0x807] = (uint8_t*) bytes0x2000 - 0x6000;
                                                        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
source/memmap.c:2320:79: warning: array subscript -24576 is below array bounds of ‘uint8_t[8192]’ {aka ‘unsigned char[8192]’} [-Warray-bounds]
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/ppu.o source/ppu.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/sa1.o source/sa1.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/sa1cpu.o source/sa1cpu.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/sdd1.o source/sdd1.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/sdd1emu.o source/sdd1emu.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/seta010.o source/seta010.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/seta011.o source/seta011.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/seta018.o source/seta018.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/seta.o source/seta.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/spc7110.o source/spc7110.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/spc7110dec.o source/spc7110dec.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/srtc.o source/srtc.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/tile.o source/tile.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 -olibretro.o libretro.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/apu.o source/apu.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/soundux.o source/soundux.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/spc700.o source/spc700.c
cc -fPIC -shared -Wl,--no-undefined -Wl,--version-script=link.T -o 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 -lm 
/usr/bin/ld: ./source/c4.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/c4emu.o: relocation R_ARM_MOVW_ABS_NC against `Memory' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/cheats2.o: relocation R_ARM_MOVW_ABS_NC against `Cheat' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/cheats.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/clip.o: relocation R_ARM_MOVW_ABS_NC against `PPU' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/cpu.o: relocation R_ARM_MOVW_ABS_NC against `SuperFX' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/cpuexec.o: relocation R_ARM_MOVW_ABS_NC against `CPU' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/cpuops.o: relocation R_ARM_MOVW_ABS_NC against `CPU' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/dma.o: relocation R_ARM_MOVW_ABS_NC against `CPU' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/dsp1.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/fxemu.o: relocation R_ARM_MOVW_ABS_NC against `GSU' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/fxinst.o: relocation R_ARM_MOVW_ABS_NC against `GSU' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/gfx.o: relocation R_ARM_MOVW_ABS_NC against `PPU' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/getset.o: relocation R_ARM_MOVW_ABS_NC against `Memory' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/memmap.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/obc1.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/ppu.o: relocation R_ARM_MOVW_ABS_NC against `Settings' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/sa1.o: relocation R_ARM_MOVW_ABS_NC against `Memory' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/sa1cpu.o: relocation R_ARM_MOVW_ABS_NC against `SA1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/sdd1.o: relocation R_ARM_MOVW_ABS_NC against `Memory' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/sdd1emu.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/seta010.o: relocation R_ARM_MOVW_ABS_NC against `Memory' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/seta011.o: relocation R_ARM_MOVW_ABS_NC against `Memory' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/seta018.o: relocation R_ARM_MOVW_ABS_NC against `ST018' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/seta.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/spc7110.o: relocation R_ARM_MOVW_ABS_NC against `s7r' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/spc7110dec.o: relocation R_ARM_MOVW_ABS_NC against `decomp' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/srtc.o: relocation R_ARM_MOVW_ABS_NC against `rtc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/tile.o: relocation R_ARM_MOVW_ABS_NC against `BG' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./libretro.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/apu.o: relocation R_ARM_MOVW_ABS_NC against `IAPU' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/soundux.o: relocation R_ARM_MOVW_ABS_NC against `KeyOffERate' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/spc700.o: relocation R_ARM_MOVW_ABS_NC against `IAPU' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ./source/c4.o: in function `_atan2':
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).
/home/pi/RetroPie-Setup/tmp/build/lr-snes9x2010 /home/pi/RetroPie-Setup
unagisan commented 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).
joolswills commented 4 years ago

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.