You are not logged in.

#1 2017-11-25 20:42:28

quellen
Member
Registered: 2014-05-24
Posts: 130

[Solved] Building libretro-fsuae

hi,
i'm trying to compile libretro-fsuae (amiga emulator plugin for retroarch) from git:
https://github.com/libretro/libretro-fsuae
but it says error:

$ git clone https://github.com/libretro/libretro-fsuae
Cloning into 'libretro-fsuae'...
remote: Counting objects: 24964, done.
remote: Total 24964 (delta 0), reused 0 (delta 0), pack-reused 24963
Ricezione degli oggetti: 100% (24964/24964), 38.10 MiB | 1.82 MiB/s, done.
Risoluzione dei delta: 100% (17181/17181), done.
$ cd libretro-fsuae/
$ ls
autogen.sh       gui-retro         m4                    README.md
ChangeLog-fsuae  ISSUES-fsuae      Makefile.common       rebase
configure.ac     libco             Makefile.in           retrodep
COPYING          libretro          Makefile.libretro     sources
doc              libretro-include  README-fsuae          TODO-libretro-puae.txt
fs-uae.dat       licenses          README-libretro-puae
$ sh autogen.sh 
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: You should add the contents of the following files to 'aclocal.m4':
libtoolize:   '/usr/share/aclocal/libtool.m4'
libtoolize:   '/usr/share/aclocal/ltoptions.m4'
libtoolize:   '/usr/share/aclocal/ltsugar.m4'
libtoolize:   '/usr/share/aclocal/ltversion.m4'
libtoolize:   '/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Remember to add 'LT_INIT' to configure.ac.
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
libtoolize: 'AC_PROG_RANLIB' is rendered obsolete by 'LT_INIT'
configure.ac:41: installing './compile'
configure.ac:8: installing './config.guess'
configure.ac:8: installing './config.sub'
configure.ac:21: installing './install-sh'
configure.ac:21: installing './missing'
sources/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
$ ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking for msgfmt... /usr/bin/msgfmt
checking for zip... /usr/bin/zip
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether C compiler accepts -fno-strict-overflow... yes
checking whether C compiler accepts -fno-strict-aliasing... yes
checking whether C compiler accepts -Wmissing-declarations... yes
checking whether C compiler accepts -Waddress... yes
checking whether C compiler accepts -Wmissing-format-attribute... yes
checking if compiler allows __builtin_expect... yes
checking for ftime in -lcompat... no
checking for dlopen in -ldl... yes
checking for main in -lgdi32... no
checking for glib-2.0 >= 2.32 gthread-2.0... yes
checking for main in -lIphlpapi... no
checking for libmpeg2 libmpeg2convert... yes
checking for floor in -lm... yes
checking for mirclient... no
checking for openal... yes
checking for gl... yes
checking for libpng... yes
checking for zlib... yes
checking for main in -lWinmm... no
checking for main in -lWs2_32... no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking AL/al.h usability... yes
checking AL/al.h presence... yes
checking for AL/al.h... yes
checking AL/alc.h usability... yes
checking AL/alc.h presence... yes
checking for AL/alc.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for inttypes.h... (cached) yes
checking libkern/OSByteOrder.h usability... no
checking libkern/OSByteOrder.h presence... no
checking for libkern/OSByteOrder.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking OpenAL/al.h usability... no
checking OpenAL/al.h presence... no
checking for OpenAL/al.h... no
checking OpenAL/alc.h usability... no
checking OpenAL/alc.h presence... no
checking for OpenAL/alc.h... no
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/filsys.h usability... no
checking sys/filsys.h presence... no
checking for sys/filsys.h... no
checking sys/fs/s5param.h usability... no
checking sys/fs/s5param.h presence... no
checking for sys/fs/s5param.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking for working volatile... yes
checking for __attribute__((always_inline))... yes
checking for __attribute__((fastcall))... no
checking for __attribute__((format))... yes
checking for __attribute__((noinline))... yes
checking for __attribute__((noreturn))... yes
checking for __attribute__((regparm))... yes
checking for __attribute__((unused))... yes
checking for __attribute__((unused))... yes
checking for struct stat.st_rdev... yes
checking for struct stat.st_mtim.tv_nsec... yes
checking for struct stat.st_mtimespec.tv_nsec... no
checking for struct stat.st_mtime_nsec... no
checking for struct in_addr.S_un... no
checking for struct ucontext.uc_mcontext.gregs... no
checking for ptrdiff_t... yes
checking for struct stat.st_blocks... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for mode_t... yes
checking for off_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for __uint128_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of long long int... 8
checking size of short... 2
checking size of void *... 8
checking for working alloca.h... yes
checking for alloca... yes
checking for unistd.h... (cached) yes
checking for working chown... yes
checking for error_at_line... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for working strcoll... yes
checking for working strtod... yes
checking for atexit... yes
checking for bzero... yes
checking for dlopen... yes
checking for dup2... yes
checking for floor... yes
checking for fseeko64... yes
checking for ftello64... yes
checking for ftime... yes
checking for ftruncate... yes
checking for getcwd... yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for getpagesize... (cached) yes
checking for gmtime_r... yes
checking for index... yes
checking for inet_aton... yes
checking for inet_ntoa... yes
checking for localeconv... yes
checking for localtime_r... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for pow... yes
checking for putenv... yes
checking for rmdir... yes
checking for posix_memalign... yes
checking for select... yes
checking for setenv... yes
checking for setlocale... yes
checking for socket... yes
checking for sqrt... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strlcpy... no
checking for strncasecmp... yes
checking for strpbrk... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for strtoull... yes
checking for tzset... yes
checking for utime... yes
checking for clock_gettime... yes
checking for gettimeofday... yes
checking whether CLOCK_MONOTONIC is declared... yes
checking for bswap_16... yes
checking for bswap_32... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sources/Makefile
config.status: creating config.h
config.status: executing depfiles commands

Configuration summary for FS-UAE:

  Building for OS:   linux-gnu ("linux")
  Building for CPU:  x86_64
  Module extension:  .so

  LIBMPEG2_CFLAGS:   -I/usr/include/mpeg2dec
  LIBMPEG2_LIBS:     -lmpeg2 -lmpeg2convert
  OPENAL_CFLAGS:     -I/usr/include/AL
  OPENAL_LIBS:       -lopenal
  OPENGL_CFLAGS:     -I/usr/include/libdrm
  OPENGL_LIBS:       -lGL
  OS_CPPFLAGS:       -DLINUX
  OS_LDFLAGS:        
  SDL2_CFLAGS:       
  SDL2_LIBS:         
$ make
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o libretro/libretro.o libretro/libretro.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o libco/libco.o libco/libco.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o libretro/libretro-mapper.o libretro/libretro-mapper.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o libretro/vkbd.o libretro/vkbd.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o libretro/graph.o libretro/graph.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o libretro/diskutils.o libretro/diskutils.c
libretro/diskutils.c: In function ‘scandir’:
libretro/diskutils.c:97:52: warning: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
       qsort (names, pos, sizeof (struct dirent *), compar);
                                                    ^~~~~~
In file included from ./sources/src/od-fs/../include/sysdeps.h:45:0,
                 from ./sources/src/od-fs/defines.h:117,
                 from ./sources/src/od-fs/sysconfig.h:279,
                 from libretro/libretro-glue.h:4,
                 from libretro/diskutils.c:1:
/usr/include/stdlib.h:712:13: note: expected ‘__compar_fn_t {aka int (*)(const void *, const void *)}’ but argument is of type ‘int (*)(const struct dirent **, const struct dirent **)’
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
             ^~~~~
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o libretro/fontmsx.o libretro/fontmsx.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/main.o sources/src/main.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/newcpu.o sources/src/newcpu.c
sources/src/newcpu.c: In function ‘cpu_semaphore_get’:
sources/src/newcpu.c:4343:14: warning: implicit declaration of function ‘GetCurrentThreadId’ [-Wimplicit-function-declaration]
  DWORD tid = GetCurrentThreadId();
              ^~~~~~~~~~~~~~~~~~
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/newcpu_common.o sources/src/newcpu_common.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/memory.o sources/src/memory.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/rommgr.o sources/src/rommgr.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/custom.o sources/src/custom.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/dongle.o sources/src/dongle.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/cia.o sources/src/cia.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/autoconf.o sources/src/autoconf.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/traps.o sources/src/traps.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/keybuf.o sources/src/keybuf.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/diskutil.o sources/src/diskutil.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/zfile.o sources/src/zfile.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/zfile_archive.o sources/src/zfile_archive.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/cfgfile.o sources/src/cfgfile.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/inputdevice.o sources/src/inputdevice.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/gfxutil.o sources/src/gfxutil.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/audio.o sources/src/audio.c
sources/src/audio.c: In function ‘audio_reset’:
sources/src/audio.c:1638:15: warning: overflow in implicit constant conversion [-Woverflow]
    cdp->per = PERIOD_MAX - 1;
               ^~~~~~~~~~
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/statusline.o sources/src/statusline.c
gcc -fPIC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLINUX -O2 -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -D__LIBRETRO__ -DFPUEMU -DUNALIGNED_PROFITABLE -DAMAX -DAGA -DAUTOCONFIG -DFILESYS  -DFDI2RAW -DDEBUGGER -DSAVESTATE -DENFORCER -DACTION_REPLAY -DWITH_THREADED_CPU -DRETRO=1 -DINLINE="inline" -std=gnu11 -DHAVE_CONFIG_H -DUAE -DLIBRETRO_FSUAE -DUSE_GLIB -DUSE_PSEM -DJIT   -I./sources/src -I./sources/src/include -I./libretro -I./libretro-include -I./sources/utils -I./sources/src/od-fs -I./sources/src/od-fs/include -I./sources/src/../softfloat -I. -I./sources/libfsemu/src/../include -I./sources/src/jit -c -o sources/src/drawing.o sources/src/drawing.c
sources/src/drawing.c:1316:10: fatal error: ../gen/linetoscr.c: File o directory non esistente
 #include "../gen/linetoscr.c"
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:143: sources/src/drawing.o] Error 1

maybe it doesn't work because the last update of source is 1 year ago? Someone has some old package?

Last edited by quellen (2017-12-08 18:17:08)

Online

#2 2017-11-25 20:48:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 23,839
Website

Re: [Solved] Building libretro-fsuae

Not an Arch Discussion, moving to AUR Issues


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2017-11-25 21:20:18

slithery
Member
Registered: 2013-12-01
Posts: 2,081

Re: [Solved] Building libretro-fsuae

Does it compile if you follow the instructions on the github page you linked to?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan

aur - dotfiles

Offline

#4 2017-12-06 16:01:06

quellen
Member
Registered: 2014-05-24
Posts: 130

Re: [Solved] Building libretro-fsuae

then i solved following the instructions on the github page and using these options:

./autogen.sh
CFLAGS="-O2" ./configure --build=x86_64-pc-linux-gnu --prefix=/usr/local --enable-shared --disable-static --libdir=/usr/local/lib64 --enable-jit
make gen -j 4
make clean
make -j 4

it works good on retroarch.

now i'm trying to make a PKGBUILD:

pkgname=libretro-fsuae-git
pkgver=1712.7990f7ad
pkgrel=1
pkgdesc="A port of the Commodore Amiga Emulator to libretro (WIP)"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/libretro/libretro-fsuae"
license=('GPL3')
groups=('libretro')
depends=('zlib')
makedepends=('git')

_libname=fsuae_libretro
_gitname=libretro-fsuae
source=("git+https://github.com/libretro/${_gitname}.git"
	"https://raw.github.com/libretro/libretro-super/master/dist/info/${_libname}.info")
sha256sums=('SKIP'
	'SKIP')

pkgver() {
  cd "${_gitname}"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "${_gitname}"
  ./autogen.sh
  CFLAGS="-O2" ./configure --build=x86_64-pc-linux-gnu --prefix=/usr --enable-shared --disable-static --libdir=/usr/lib64 --enable-jit
  make gen -j 4
  make clean
  make -j 4
}

package() {
  install -Dm644 "${_gitname}/${_libname}.so" "${pkgdir}/usr/lib/libretro/${_libname}.so"
  install -Dm644 "${_libname}.info" "${pkgdir}/usr/share/libretro/info/${_libname}.info"
}

Building works but the "fsuae_libretro.so" obtained is different from that builded directly from GIT and it doesn't work on retroarch:

$ retroarch --libretro /usr/lib/libretro/fsuae_libretro.so ~/a500.fs-uae
[INFO] Loading dynamic libretro core from: "/usr/lib/libretro/fsuae_libretro.so"
[ERROR] Failed to open libretro core: "/usr/lib/libretro/fsuae_libretro.so"
[ERROR] Error(s): /usr/lib/libretro/fsuae_libretro.so: undefined symbol: esp_scsi_init
Errore di segmentazione (core dump creato)

why? it's very strange, the building options are the same.

EDIT:
i have SOLVED adding this on build option of PKGBUILD:

CFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe"
CXXFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe"

Last edited by quellen (2017-12-08 18:16:48)

Online

Board footer

Powered by FluxBB