kodi-game / game.libretro.beetle-saturn

Beetle-Saturn for Kodi
https://github.com/libretro/beetle-saturn-libretro
0 stars 4 forks source link

Build fails on all Windows and OSX #1

Open garbear opened 7 years ago

garbear commented 7 years ago

Windows build error (from jenkins):

g++ -o mednafen_saturn_libretro.dll mednafen/ss/db.o mednafen/ss/cdb.o mednafen/ss/sound.o mednafen/ss/cart.o mednafen/ss/scu_dsp_gen.o mednafen/ss/scu_dsp_mvi.o mednafen/ss/scu_dsp_jmp.o mednafen/ss/scu_dsp_misc.o mednafen/ss/vdp1.o mednafen/ss/vdp1_line.o mednafen/ss/vdp1_sprite.o mednafen/ss/vdp1_poly.o mednafen/ss/vdp2.o mednafen/ss/vdp2_render.o mednafen/ss/smpc.o mednafen/ss/input/gamepad.o mednafen/ss/input/3dpad.o mednafen/ss/input/mouse.o mednafen/ss/input/multitap.o mednafen/ss/input/mission.o mednafen/ss/input/keyboard.o mednafen/ss/input/wheel.o mednafen/hw_cpu/m68k/m68k.o mednafen/cdrom/CDAccess.o mednafen/cdrom/CDAccess_Image.o mednafen/cdrom/CDAccess_CCD.o mednafen/cdrom/CDAFReader.o mednafen/cdrom/CDAFReader_Vorbis.o mednafen/cdrom/cdromif.o mednafen/cdrom/CDUtility.o mednafen/cdrom/lec.o mednafen/cdrom/galois.o mednafen/cdrom/recover-raw.o mednafen/cdrom/l-ec.o mednafen/cdrom/edc_crc32.o mednafen/error.o mednafen/settings.o mednafen/general.o mednafen/FileStream.o mednafen/MemoryStream.o mednafen/Stream.o mednafen/state.o mednafen/mempatcher.o mednafen/video/Deinterlacer.o mednafen/video/surface.o mednafen/git.o libretro.o mednafen/hash/sha256.o mednafen/hash/md5.o deps/zlib/adler32.o deps/zlib/compress.o deps/zlib/crc32.o deps/zlib/deflate.o deps/zlib/gzclose.o deps/zlib/gzlib.o deps/zlib/gzread.o deps/zlib/gzwrite.o deps/zlib/inffast.o deps/zlib/inflate.o deps/zlib/inftrees.o deps/zlib/trees.o deps/zlib/uncompr.o deps/zlib/zutil.o libretro_cbs.o mednafen/tremor/floor0.o mednafen/tremor/bitwise.o mednafen/tremor/synthesis.o mednafen/tremor/window.o mednafen/tremor/sharedbook.o mednafen/tremor/block.o mednafen/tremor/framing.o mednafen/tremor/res012.o mednafen/tremor/info.o mednafen/tremor/codebook.o mednafen/tremor/registry.o mednafen/tremor/vorbisfile.o mednafen/tremor/mapping0.o mednafen/tremor/mdct.o mednafen/tremor/floor1.o mednafen/file.o mednafen/mednafen-endian.o libretro-common/streams/file_stream.o libretro-common/string/stdstring.o libretro-common/rthreads/rthreads.o libretro-common/file/retro_stat.o -static-libgcc -static-libstdc++ -lwinmm  -shared -Wl,--no-undefined -Wl,--version-script=link.T 
mednafen/ss/input/gamepad.o: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status
Makefile:370: recipe for target 'mednafen_saturn_libretro.dll' failed
make: *** [mednafen_saturn_libretro.dll] Error 1
make: Leaving directory '/xbmc/cmake/addons/build/beetle-saturn/src/beetle-saturn'
NMAKE : fatal error U1077: 'call' : return code '0x2'
Stop.

OSX error (from jenkins):

In file included from mednafen/ss/cdb.cpp:54:
In file included from In file included from mednafen/ss/cart.cpp:23:
In file included from ./mednafen/mednafen.h:33:
./mednafen/mednafen-endian.h:207:15: error: use of undeclared identifier '__builtin_assume_aligned'
 memcpy(&tmp, MDFN_ASSUME_ALIGNED(ptr, (aligned ? sizeof(T) : 1)), sizeof(T));
              ^
./mednafen/mednafen-endian.h:16:53: note: expanded from macro 'MDFN_ASSUME_ALIGNED'
#define MDFN_ASSUME_ALIGNED(p, align) ((decltype(p))__builtin_assume_aligned((p), (align)))
                                                    ^
./mednafen/mednafen.h:In file included from mednafen/ss/db.cpp:22:
In file included from ./mednafen/mednafen.h:33:
./mednafen/mednafen-endian.h:207:15: error: use of undeclared identifier '__builtin_assume_aligned'
 memcpy(&tmp, MDFN_ASSUME_ALIGNED(ptr, (aligned ? sizeof(T) : 1)), sizeof(T));
              ^
./mednafen/mednafen-endian.h:16:53: note: expanded from macro 'MDFN_ASSUME_ALIGNED'
#define MDFN_ASSUME_ALIGNED(p, align) ((decltype(p))__builtin_assume_aligned((p), (align)))
                                                    ^
33:
./mednafen/mednafen-endian.h:207:15: error: use of undeclared identifier '__builtin_assume_aligned'
 memcpy(&tmp, MDFN_ASSUME_ALIGNED(ptr, (aligned ? sizeof(T) : 1)), sizeof(T));
              ^
./mednafen/mednafen-endian.h:16:53: note: expanded from macro 'MDFN_ASSUME_ALIGNED'
#define MDFN_ASSUME_ALIGNED(p, align) ((decltype(p))__builtin_assume_aligned((p), (align)))
                                                    ^
In file included from mednafen/ss/sound.cpp:27:
In file included from ./mednafen/mednafen.h:33:
./mednafen/mednafen-endian.h:207:15: error: use of undeclared identifier '__builtin_assume_aligned'
 memcpy(&tmp, MDFN_ASSUME_ALIGNED(ptr, (aligned ? sizeof(T) : 1)), sizeof(T));
              ^
./mednafen/mednafen-endian.h:16:53: note: expanded from macro 'MDFN_ASSUME_ALIGNED'
#define MDFN_ASSUME_ALIGNED(p, align) ((decltype(p))__builtin_assume_aligned((p), (align)))
                                                    ^
1 error generated.
make[8]: *** [mednafen/ss/db.o] Error 1
make[8]: *** Waiting for unfinished jobs....
1 error generated.
make[8]: *** [mednafen/ss/cart.o] Error 1
In file included from mednafen/ss/sound.cpp:67:
In file included from mednafen/ss/scsp.inc:34:
mednafen/ss/ss_endian.h:31:10: error: use of undeclared identifier '__builtin_assume_aligned'
  memcpy(MDFN_ASSUME_ALIGNED(ptr, sizeof(T)), &value, sizeof(T));
         ^
./mednafen/mednafen-endian.h:16:53: note: expanded from macro 'MDFN_ASSUME_ALIGNED'
#define MDFN_ASSUME_ALIGNED(p, align) ((decltype(p))__builtin_assume_aligned((p), (align)))
                                                    ^
In file included from mednafen/ss/sound.cpp:67:
In file included from mednafen/ss/scsp.inc:34:
mednafen/ss/ss_endian.h:91:16: error: use of undeclared identifier '__builtin_assume_aligned'
  memcpy(&ret, MDFN_ASSUME_ALIGNED(ptr, sizeof(T)), sizeof(T));
               ^
./mednafen/mednafen-endian.h:16:53: note: expanded from macro 'MDFN_ASSUME_ALIGNED'
#define MDFN_ASSUME_ALIGNED(p, align) ((decltype(p))__builtin_assume_aligned((p), (align)))
                                                    ^
In file included from mednafen/ss/sound.cpp:67:
In file included from mednafen/ss/scsp.inc:34:
mednafen/ss/ss_endian.h:134:9: error: use of undeclared identifier '__builtin_assume_aligned'
 memcpy(MDFN_ASSUME_ALIGNED(ptr, (aligned ? sizeof(T) : 1)), &tmp, sizeof(T));
        ^
./mednafen/mednafen-endian.h:16:53: note: expanded from macro 'MDFN_ASSUME_ALIGNED'
#define MDFN_ASSUME_ALIGNED(p, align) ((decltype(p))__builtin_assume_aligned((p), (align)))
                                                    ^
4 errors generated.
make[8]: *** [mednafen/ss/sound.o] Error 1
1 error generated.
make[8]: *** [mednafen/ss/cdb.o] Error 1
1 warning generated.
1 warning generated.
make[7]: *** [beetle-saturn/src/beetle-saturn-stamp/beetle-saturn-build] Error 2
make[6]: *** [CMakeFiles/beetle-saturn.dir/all] Error 2
make[5]: *** [all] Error 2
make[4]: *** [build/beetle-saturn/src/beetle-saturn-stamp/beetle-saturn-build] Error 2
make[3]: *** [CMakeFiles/beetle-saturn.dir/all] Error 2
make[2]: *** [CMakeFiles/game.libretro.beetle-saturn.dir/rule] Error 2
make[1]: *** [game.libretro.beetle-saturn] Error 2
garbear commented 7 years ago

Build error on Win64:

g++ -o mednafen_saturn_libretro.dll ... -static-libgcc -static-libstdc++ -lwinmm  -shared -Wl,--no-undefined -Wl,--version-script=link.T 
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/gamepad.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/gamepad.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
Error: 0-bit reloc in dll
Error: 0-bit reloc in dll
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/gamepad.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/gamepad.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
Error: 0-bit reloc in dll
Error: 0-bit reloc in dll
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/3dpad.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/3dpad.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
Error: 0-bit reloc in dll
Error: 0-bit reloc in dll
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/3dpad.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/3dpad.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
Error: 0-bit reloc in dll
Error: 0-bit reloc in dll
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/mouse.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/mouse.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
Error: 0-bit reloc in dll
Error: 0-bit reloc in dll
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/mouse.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: mednafen/ss/input/mouse.o: invalid relocation type 42
C:/jenkins/workspace/WIN-64/project/BuildDependencies/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: BFD (GNU Binutils) 2.25.1 assertion fail ../../binutils-2.25.1/bfd/elf64-x86-64.c:341
Error: 0-bit reloc in dll
Error: 0-bit reloc in dll
mednafen/ss/input/gamepad.o: In function `_GLOBAL__sub_I_gamepad.cpp':
gamepad.cpp:(.text.startup+0x29): undefined reference to `__dso_handle'
gamepad.cpp:(.text.startup+0x2f): undefined reference to `__cxa_atexit'
mednafen/ss/input/3dpad.o: In function `__static_initialization_and_destruction_0(int, int) [clone .constprop.9]':
3dpad.cpp:(.text.startup+0x38d): undefined reference to `__dso_handle'
3dpad.cpp:(.text.startup+0x395): undefined reference to `__cxa_atexit'
mednafen/ss/input/mouse.o: In function `_GLOBAL__sub_I_mouse.cpp':
mouse.cpp:(.text.startup+0x29): undefined reference to `__dso_handle'
mouse.cpp:(.text.startup+0x2f): undefined reference to `__cxa_atexit'
collect2.exe: error: ld returned 1 exit status
Makefile:370: recipe for target 'mednafen_saturn_libretro.dll' failed
make: *** [mednafen_saturn_libretro.dll] Error 1
make: Leaving directory '/xbmc/cmake/addons/build/beetle-saturn/src/beetle-saturn'
NMAKE : fatal error U1077: 'call' : return code '0x2'
Stop.