Advertisement
Guest User

Untitled

a guest
Nov 26th, 2021
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 31.87 KB | None | 0 0
  1. pi@retropie:~ $ nano install-gmloader.sh
  2. pi@retropie:~ $ cat install-gmloader.sh
  3. sudo apt install libopenal-dev libfreetype6-dev zlib1g-dev libbz2-dev libpng-dev libzip-dev libsdl2-image-dev cmake git
  4. cd
  5. git clone https://github.com/JohnnyonFlame/droidports --recursive
  6. cd droidports
  7. mkdir build-gmloader
  8. cd build-gmloader
  9. cmake CMakeLists.txt -DCMAKE_BUILD_TYPE=Release -DPLATFORM=linux -DPORT=gmloader ..
  10. make -j$(($(nproc)+1))
  11. pi@retropie:~ $ bash install-gmloader.sh
  12. Reading package lists... Done
  13. Building dependency tree      
  14. Reading state information... Done
  15. git is already the newest version (1:2.20.1-2+deb10u3).
  16. libbz2-dev is already the newest version (1.0.6-9.2~deb10u1).
  17. libfreetype6-dev is already the newest version (2.9.1-3+deb10u2).
  18. libopenal-dev is already the newest version (1:1.19.1-1).
  19. libpng-dev is already the newest version (1.6.36-6).
  20. libsdl2-image-dev is already the newest version (2.0.4+dfsg1-1+deb10u1).
  21. libzip-dev is already the newest version (1.5.1-4).
  22. zlib1g-dev is already the newest version (1:1.2.11.dfsg-1).
  23. cmake is already the newest version (3.16.3-3~bpo10+1).
  24. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  25. Cloning into 'droidports'...
  26. remote: Enumerating objects: 562, done.
  27. remote: Counting objects: 100% (562/562), done.
  28. remote: Compressing objects: 100% (267/267), done.
  29. remote: Total 562 (delta 308), reused 498 (delta 246), pack-reused 0
  30. Receiving objects: 100% (562/562), 226.18 KiB | 2.49 MiB/s, done.
  31. Resolving deltas: 100% (308/308), done.
  32. Submodule '3rdparty/freetype' (https://github.com/freetype/freetype) registered for path '3rdparty/freetype'
  33. Submodule '3rdparty/lodepng' (https://github.com/lvandeve/lodepng) registered for path '3rdparty/lodepng'
  34. Cloning into '/home/pi/droidports/3rdparty/freetype'...
  35. remote: Enumerating objects: 83343, done.        
  36. remote: Counting objects: 100% (5200/5200), done.        
  37. remote: Compressing objects: 100% (2095/2095), done.        
  38. Receiving objects:   3% (2501/83343), 436.01 KiB | 797.00 KiB/s  Receiving objects:   4% (3334/83343), 436.01 KiB | 797.00 KiB/s  Receiving objects:   4% (4101/83343), 436.01 KiB | 797.00 KiB/s  Receiving objects:   5% (4168/83343), 436.01 KiB | 797.00 KiB/s  remote: Total 83343 (delta 3749), reused 4513 (delta 3092), pack-reused 78143        
  39. Receiving objects: 100% (83343/83343), 27.59 MiB | 3.45 MiB/s, done.
  40. Resolving deltas: 100% (68605/68605), done.
  41. Cloning into '/home/pi/droidports/3rdparty/lodepng'...
  42. remote: Enumerating objects: 2614, done.        
  43. remote: Counting objects: 100% (11/11), done.        
  44. remote: Compressing objects: 100% (8/8), done.        
  45. remote: Total 2614 (delta 3), reused 5 (delta 3), pack-reused 2603        
  46. Receiving objects: 100% (2614/2614), 1.60 MiB | 2.80 MiB/s, done.
  47. Resolving deltas: 100% (1098/1098), done.
  48. Submodule path '3rdparty/freetype': checked out '3785393d1a3c12fb1b4a3995cc0e953a58531cfe'
  49. Submodule 'dlg' (https://github.com/nyorain/dlg.git) registered for path '3rdparty/freetype/subprojects/dlg'
  50. Cloning into '/home/pi/droidports/3rdparty/freetype/subprojects/dlg'...
  51. remote: Enumerating objects: 1116, done.        
  52. remote: Counting objects: 100% (106/106), done.        
  53. remote: Compressing objects: 100% (60/60), done.        
  54. remote: Total 1116 (delta 45), reused 73 (delta 28), pack-reused 1010        
  55. Receiving objects: 100% (1116/1116), 3.49 MiB | 2.73 MiB/s, done.
  56. Resolving deltas: 100% (616/616), done.
  57. Submodule path '3rdparty/freetype/subprojects/dlg': checked out '0cc0d3eaed28483fc8036d90ac18878ebd83ed87'
  58. Submodule path '3rdparty/lodepng': checked out '7fdcc96a5e5864eee72911c3ca79b1d9f0d12292'
  59. -- The C compiler identification is GNU 8.3.0
  60. -- The CXX compiler identification is GNU 8.3.0
  61. -- Check for working C compiler: /usr/bin/cc
  62. -- Check for working C compiler: /usr/bin/cc -- works
  63. -- Detecting C compiler ABI info
  64. -- Detecting C compiler ABI info - done
  65. -- Detecting C compile features
  66. -- Detecting C compile features - done
  67. -- Check for working CXX compiler: /usr/bin/c++
  68. -- Check for working CXX compiler: /usr/bin/c++ -- works
  69. -- Detecting CXX compiler ABI info
  70. -- Detecting CXX compiler ABI info - done
  71. -- Detecting CXX compile features
  72. -- Detecting CXX compile features - done
  73. -- Found OpenAL: /usr/lib/arm-linux-gnueabihf/libopenal.so  
  74. -- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.11")
  75. -- Found BZip2: /usr/lib/arm-linux-gnueabihf/libbz2.so (found version "1.0.6")
  76. -- Looking for BZ2_bzCompressInit
  77. -- Looking for BZ2_bzCompressInit - found
  78. -- Found PNG: /usr/lib/arm-linux-gnueabihf/libpng.so (found version "1.6.36")
  79. -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
  80. -- Found LIBZIP: /usr/lib/arm-linux-gnueabihf/libzip.so  
  81. -- Found Freetype: /usr/lib/arm-linux-gnueabihf/libfreetype.so (found version "2.9.1")
  82. -- Looking for pthread.h
  83. -- Looking for pthread.h - found
  84. -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  85. -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
  86. -- Looking for pthread_create in pthreads
  87. -- Looking for pthread_create in pthreads - not found
  88. -- Looking for pthread_create in pthread
  89. -- Looking for pthread_create in pthread - found
  90. -- Found Threads: TRUE  
  91. -- Found SDL2: /usr/lib/arm-linux-gnueabihf/libSDL2main.a;/usr/lib/arm-linux-gnueabihf/libSDL2.so;-lpthread  
  92. -- Configuring done
  93. -- Generating done
  94. -- Build files have been written to: /home/pi/droidports/build-gmloader
  95. Scanning dependencies of target lodepng
  96. [  3%] Building C object 3rdparty/CMakeFiles/lodepng.dir/lodepng.c.o
  97. [  7%] Linking C static library liblodepng.a
  98. [  7%] Built target lodepng
  99. Scanning dependencies of target gmloader
  100. [ 14%] Building C object CMakeFiles/gmloader.dir/bridges/freetype_bridge.c.o
  101. [ 14%] Building C object CMakeFiles/gmloader.dir/bridges/openal_bridge.c.o
  102. [ 17%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/RunnerJNILib.c.o
  103. [ 21%] Building C object CMakeFiles/gmloader.dir/bridges/zip_bridge.c.o
  104. [ 25%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/gamepad_impl.c.o
  105. In file included from /home/pi/droidports/ports/gmloader/RunnerJNILib.c:173:
  106. /home/pi/droidports/jni/prologue_helpers.h: In function ‘RunnerJNILib_OsGetInfo_V’:
  107. /home/pi/droidports/jni/prologue_helpers.h:37:14: warning: assignment to ‘jobject’ {aka ‘struct _jobject *} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  108.          *ret = CL ## _ ## ID(ARGC);                                   \
  109.               ^
  110. /home/pi/droidports/ports/gmloader/RunnerJNILib.h:14:5: note: in expansion of macro ‘DECL_STATIC_MANAGED’
  111.      DECL_STATIC_MANAGED   ( RunnerJNILib, OsGetInfo,              jobject,     F_v,              ARG0,             "()I")                                                                              \
  112.      ^~~~~~~~~~~~~~~~~~~
  113. /home/pi/droidports/ports/gmloader/RunnerJNILib.c:18:27: note: in expansion of macro ‘JNIRUNNER_MANAGED_LIB_FUNCS’
  114.  #define MANAGED_LIB_FUNCS JNIRUNNER_MANAGED_LIB_FUNCS
  115.                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  116. /home/pi/droidports/jni/prologue_helpers.h:54:1: note: in expansion of macro ‘MANAGED_LIB_FUNCS’
  117.  MANAGED_LIB_FUNCS
  118.  ^~~~~~~~~~~~~~~~~
  119. /home/pi/droidports/jni/prologue_helpers.h: In function ‘RunnerJNILib_SetMP3Volume_V’:
  120. /home/pi/droidports/jni/prologue_helpers.h:54:1: warning: conversion from ‘jdouble’ {aka ‘double’} to ‘jfloat’ {aka ‘float’} may change value [-Wfloat-conversion]
  121. In file included from /home/pi/droidports/ports/gmloader/RunnerJNILib.c:173:
  122. /home/pi/droidports/jni/prologue_helpers.h: In function ‘RunnerJNILib_OsGetInfo_A’:
  123. /home/pi/droidports/jni/prologue_helpers.h:65:14: warning: assignment to ‘jobject’ {aka ‘struct _jobject *} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  124.          *ret = CL ## _ ## ID(ARGC);                                     \
  125.               ^
  126. /home/pi/droidports/ports/gmloader/RunnerJNILib.h:14:5: note: in expansion of macro ‘DECL_STATIC_MANAGED’
  127.      DECL_STATIC_MANAGED   ( RunnerJNILib, OsGetInfo,              jobject,     F_v,              ARG0,             "()I")                                                                              \
  128.      ^~~~~~~~~~~~~~~~~~~
  129. /home/pi/droidports/ports/gmloader/RunnerJNILib.c:18:27: note: in expansion of macro ‘JNIRUNNER_MANAGED_LIB_FUNCS’
  130.  #define MANAGED_LIB_FUNCS JNIRUNNER_MANAGED_LIB_FUNCS
  131.                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  132. /home/pi/droidports/jni/prologue_helpers.h:82:1: note: in expansion of macro ‘MANAGED_LIB_FUNCS’
  133.  MANAGED_LIB_FUNCS
  134.  ^~~~~~~~~~~~~~~~~
  135. /home/pi/droidports/bridges/openal_bridge.c: In function ‘bridge_alcDestroyContext’:
  136. /home/pi/droidports/bridges/openal_bridge.c:51:11: warning: implicit declaration of function ‘pthread_mutex_destroy_bridge’; did you mean ‘pthread_mutexattr_destroy_bridge’? [-Wimplicit-function-declaration]
  137.      while(pthread_mutex_destroy_bridge(&context->mtx->mutex) == EBUSY);
  138.            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  139.            pthread_mutexattr_destroy_bridge
  140. /home/pi/droidports/bridges/openal_bridge.c: In function ‘bridge_alcGetCurrentContext’:
  141. /home/pi/droidports/bridges/openal_bridge.c:87:12: warning: return discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  142.      return currentALCContext;
  143.             ^~~~~~~~~~~~~~~~~
  144. [ 28%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/libyoyo.c.o
  145. /home/pi/droidports/ports/gmloader/gamepad_impl.c: In function ‘register_gamepad_functs’:
  146. /home/pi/droidports/ports/gmloader/gamepad_impl.c:221:49: warning: passing argument 3 of ‘hook_symbol’ makes integer from pointer without a cast [-Wint-conversion]
  147.      hook_symbol(libyoyo, "_Z14GamePadRestartv", GamePadRestart, 1);
  148.                                                  ^~~~~~~~~~~~~~
  149. In file included from /home/pi/droidports/ports/gmloader/gamepad_impl.c:4:
  150. /home/pi/droidports/platform/common/so_util.h:82:64: note: expected ‘uintptr_t’ {aka ‘unsigned int’} but argument is of type ‘void (*)()
  151.  void hook_symbol(so_module *mod, const char *symbol, uintptr_t dst, int is_optional);
  152.                                                       ~~~~~~~~~~^~~
  153. [ 32%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/main.c.o
  154. /home/pi/droidports/ports/gmloader/libyoyo.c: In function ‘Audio_Load_cb’:
  155. /home/pi/droidports/ports/gmloader/libyoyo.c:304:43: warning: passing argument 1 of ‘Audio_PrepareGroup’ makes pointer from integer without a cast [-Wint-conversion]
  156.      Audio_PrepareGroup(data->m_soundsAdded[1]);
  157.                         ~~~~~~~~~~~~~~~~~~~^~~
  158. /home/pi/droidports/ports/gmloader/libyoyo.c:304:43: note: expected ‘void *’ but argument is of type ‘int’
  159. /home/pi/droidports/ports/gmloader/libyoyo.c: In function ‘CAudioGroupMan__LoadGroup_reimpl’:
  160. /home/pi/droidports/ports/gmloader/libyoyo.c:323:29: warning: assignment to ‘void (*)(CThread *, void *, void *, char *){aka ‘void (*)(struct CThread *, void *, void *, char *)} from ‘uintptr_t’ {aka ‘unsigned int’} makes pointer from integer without a cast [-Wint-conversion]
  161.          CThread__start_PcNS = so_symbol(libyoyo, "_ZN7CThread5StartEPFPvS0_ES0_PcNS_9ePriorityE");
  162.                              ^
  163. /home/pi/droidports/ports/gmloader/libyoyo.c:324:27: warning: assignment to ‘void (*)(CThread *, void *, void *){aka ‘void (*)(struct CThread *, void *, void *)} from ‘uintptr_t’ {aka ‘unsigned int’} makes pointer from integer without a cast [-Wint-conversion]
  164.          CThread__start_NS = so_symbol(libyoyo, "_ZN7CThread5StartEPFPvS0_ES0_NS_9ePriorityE");
  165.                            ^
  166. /home/pi/droidports/ports/gmloader/libyoyo.c:399:9: warning: implicit declaration of function ‘munmap’; did you mean ‘fminmag’? [-Wimplicit-function-declaration]
  167.          munmap(mem, mem_sz);
  168.          ^~~~~~
  169.          fminmag
  170. /home/pi/droidports/ports/gmloader/libyoyo.c:400:9: warning: implicit declaration of function ‘close’; did you mean ‘clone’? [-Wimplicit-function-declaration]
  171.          close(fd);
  172.          ^~~~~
  173.          clone
  174. /home/pi/droidports/ports/gmloader/libyoyo.c: At top level:
  175. /home/pi/droidports/ports/gmloader/libyoyo.c:410:19: warning: type defaults to ‘int’ in declaration of ‘Mutex__dtor’ [-Wimplicit-int]
  176.  static ABI_ATTR (*Mutex__dtor)(void *) = NULL;
  177.                    ^~~~~~~~~~~
  178. /home/pi/droidports/ports/gmloader/libyoyo.c:411:19: warning: type defaults to ‘int’ in declaration of ‘MemoryManager__Free’ [-Wimplicit-int]
  179.  static ABI_ATTR (*MemoryManager__Free)(void *) = NULL;
  180.                    ^~~~~~~~~~~~~~~~~~~
  181. /home/pi/droidports/ports/gmloader/libyoyo.c: In function ‘RunnerLoadGame_reimpl’:
  182. /home/pi/droidports/ports/gmloader/libyoyo.c:463:22: warning: assignment to ‘void **’ from ‘uintptr_t’ {aka ‘unsigned int’} makes pointer from integer without a cast [-Wint-conversion]
  183.      g_ppYYStackTrace = so_symbol(libyoyo, "g_ppYYStackTrace");
  184.                       ^
  185. /home/pi/droidports/ports/gmloader/libyoyo.c:469:20: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  186.          *g_nYYCode = (*g_pLLVMVars)->nYYCode;
  187.                     ^
  188. /home/pi/droidports/ports/gmloader/libyoyo.c: In function ‘patch_specifics’:
  189. /home/pi/droidports/ports/gmloader/libyoyo.c:553:5: warning: implicit declaration of function ‘register_mouse_functs’; did you mean ‘register_gamepad_functs’? [-Wimplicit-function-declaration]
  190.      register_mouse_functs(fct_add);
  191.      ^~~~~~~~~~~~~~~~~~~~~
  192.      register_gamepad_functs
  193. /home/pi/droidports/ports/gmloader/libyoyo.c:554:44: warning: passing argument 3 of ‘hook_symbol’ makes integer from pointer without a cast [-Wint-conversion]
  194.      hook_symbol(mod, "_Z13IO_Start_Stepv", IO_Start_Step_hook, 1);
  195.                                             ^~~~~~~~~~~~~~~~~~
  196. In file included from /home/pi/droidports/ports/gmloader/libyoyo.c:13:
  197. /home/pi/droidports/platform/common/so_util.h:82:64: note: expected ‘uintptr_t’ {aka ‘unsigned int’} but argument is of type ‘void (*)()
  198.  void hook_symbol(so_module *mod, const char *symbol, uintptr_t dst, int is_optional);
  199.                                                       ~~~~~~~~~~^~~
  200. /home/pi/droidports/ports/gmloader/libyoyo.c: In function ‘invoke_app’:
  201. /home/pi/droidports/ports/gmloader/libyoyo.c:666:14: warning: implicit declaration of function ‘isalnum’ [-Wimplicit-function-declaration]
  202.          if (!isalnum(*c))
  203.               ^~~~~~~
  204. In file included from /home/pi/droidports/ports/gmloader/libyoyo.c:16:
  205. /home/pi/droidports/ports/gmloader/libyoyo.c:681:14: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  206.    MK_JSTRING(apk_path),
  207.               ^~~~~~~~
  208. /home/pi/droidports/jni/fake_jni.h:443:69: note: in definition of macro ‘MK_JSTRING’
  209.  #define MK_JSTRING(data) (_jstring){.clazz = &jstring_class, .str = data}
  210.                                                                      ^~~~
  211. [ 35%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/mouse_impl.c.o
  212. [ 39%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/sdl2_media.c.o
  213. [ 42%] Building C object CMakeFiles/gmloader.dir/bridges/ctype_bridge.c.o
  214. [ 46%] Building C object CMakeFiles/gmloader.dir/bridges/gles2_bridge.c.o
  215. [ 50%] Building C object CMakeFiles/gmloader.dir/bridges/math_bridge.c.o
  216. [ 53%] Building C object CMakeFiles/gmloader.dir/bridges/misc_bridges.c.o
  217. [ 57%] Building C object CMakeFiles/gmloader.dir/bridges/pthread_bridge.c.o
  218. /home/pi/droidports/bridges/misc_bridges.c: In function ‘impl__android_log_print’:
  219. /home/pi/droidports/bridges/misc_bridges.c:62:15: warning: passing argument 1 of ‘vsnprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
  220.      vsnprintf(&andlog, 2047, fmt, va);
  221.                ^~~~~~~
  222. In file included from /home/pi/droidports/bridges/misc_bridges.c:2:
  223. /usr/include/stdio.h:358:40: note: expected ‘char * restrict’ but argument is of type ‘char (*)[2048]
  224.  extern int vsnprintf (char *__restrict __s, size_t __maxlen,
  225.                        ~~~~~~~~~~~~~~~~~^~~
  226. /home/pi/droidports/bridges/misc_bridges.c: In function ‘impl__android_log_vprint’:
  227. /home/pi/droidports/bridges/misc_bridges.c:71:15: warning: passing argument 1 of ‘vsnprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
  228.      vsnprintf(&andlog, 2047, fmt, va);
  229.                ^~~~~~~
  230. In file included from /home/pi/droidports/bridges/misc_bridges.c:2:
  231. /usr/include/stdio.h:358:40: note: expected ‘char * restrict’ but argument is of type ‘char (*)[2048]
  232.  extern int vsnprintf (char *__restrict __s, size_t __maxlen,
  233.                        ~~~~~~~~~~~~~~~~~^~~
  234. /home/pi/droidports/bridges/pthread_bridge.c: In function ‘pthread_mutex_lock_bridge’:
  235. /home/pi/droidports/bridges/pthread_bridge.c:75:13: warning: comparison of distinct pointer types lacks a cast
  236.      if (uid < (BIONIC_pthread_mutex_t*)0x1000)
  237.              ^
  238. /home/pi/droidports/bridges/pthread_bridge.c: In function ‘pthread_mutex_unlock_bridge’:
  239. /home/pi/droidports/bridges/pthread_bridge.c:90:41: warning: passing argument 1 of ‘pthread_mutex_init_bridge’ from incompatible pointer type [-Wincompatible-pointer-types]
  240.          ret = pthread_mutex_init_bridge(uid, NULL);
  241.                                          ^~~
  242. /home/pi/droidports/bridges/pthread_bridge.c:37:64: note: expected ‘BIONIC_pthread_mutex_t *{aka ‘struct <anonymous> *} but argument is of type ‘pthread_mutex_t **{aka ‘union <anonymous> **}
  243.  ABI_ATTR int pthread_mutex_init_bridge(BIONIC_pthread_mutex_t *_uid, pthread_mutexattr_t **mutexattr)
  244.                                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
  245. /home/pi/droidports/bridges/pthread_bridge.c: In function ‘pthread_cond_wait_bridge’:
  246. /home/pi/droidports/bridges/pthread_bridge.c:150:29: warning: initialization of ‘pthread_mutex_t **{aka ‘union <anonymous> **} from incompatible pointer type ‘BIONIC_pthread_mutex_t *{aka ‘struct <anonymous> *} [-Wincompatible-pointer-types]
  247.      pthread_mutex_t **mtx = _mtx;
  248.                              ^~~~
  249. /home/pi/droidports/bridges/pthread_bridge.c: In function ‘pthread_cond_timedwait_bridge’:
  250. /home/pi/droidports/bridges/pthread_bridge.c:162:29: warning: initialization of ‘pthread_mutex_t **{aka ‘union <anonymous> **} from incompatible pointer type ‘BIONIC_pthread_mutex_t *{aka ‘struct <anonymous> *} [-Wincompatible-pointer-types]
  251.      pthread_mutex_t **mtx = _mtx;
  252.                              ^~~~
  253. [ 60%] Building C object CMakeFiles/gmloader.dir/bridges/stdio_bridge.c.o
  254. [ 64%] Building C object CMakeFiles/gmloader.dir/jni/JString.c.o
  255. [ 67%] Building C object CMakeFiles/gmloader.dir/jni/fake_jni.c.o[ 71%] Building C object CMakeFiles/gmloader.dir/jni/os_Build.c.o/home/pi/droidports/jni/fake_jni.c: In function ‘iface_NewString’:
  256. /home/pi/droidports/jni/fake_jni.c:334:17: warning: passing argument 1 of ‘strndup’ from incompatible pointer type [-Wincompatible-pointer-types]
  257.   return strndup(unicodeChars, len);
  258.                  ^~~~~~~~~~~~
  259. In file included from /home/pi/droidports/jni/fake_jni.c:5:
  260. /usr/include/string.h:174:14: note: expected ‘const char *’ but argument is of type ‘const jchar *{aka ‘const short unsigned int *}
  261.  extern char *strndup (const char *__string, size_t __n)
  262.               ^~~~~~~
  263. /home/pi/droidports/jni/fake_jni.c:334:9: warning: returning ‘char *’ from a function with incompatible return type ‘jstring’ {aka ‘struct _jstring *} [-Wincompatible-pointer-types]
  264.   return strndup(unicodeChars, len);
  265.          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  266. /home/pi/droidports/jni/fake_jni.c: In function ‘iface_GetStringChars’:
  267. /home/pi/droidports/jni/fake_jni.c:345:9: warning: returning ‘char *’ from a function with incompatible return type ‘const jchar *{aka ‘const short unsigned int *} [-Wincompatible-pointer-types]
  268.   return strdup(jstr->str);
  269.          ^~~~~~~~~~~~~~~~~
  270. /home/pi/droidports/jni/fake_jni.c: In function ‘iface_ReleaseStringChars’:
  271. /home/pi/droidports/jni/fake_jni.c:350:7: warning: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  272.   free(chars);
  273.        ^~~~~
  274. In file included from /usr/include/SDL2/SDL_stdinc.h:40,
  275.                  from /usr/include/SDL2/SDL_main.h:25,
  276.                  from /usr/include/SDL2/SDL.h:32,
  277.                  from /home/pi/droidports/jni/fake_jni.c:13:
  278. /usr/include/stdlib.h:563:25: note: expected ‘void *’ but argument is of type ‘const jchar *{aka ‘const short unsigned int *}
  279.  extern void free (void *__ptr) __THROW;
  280.                    ~~~~~~^~~~~
  281. /home/pi/droidports/jni/fake_jni.c: In function ‘iface_NewStringUTF’:
  282. /home/pi/droidports/jni/fake_jni.c:355:9: warning: returning ‘char *’ from a function with incompatible return type ‘jstring’ {aka ‘struct _jstring *} [-Wincompatible-pointer-types]
  283.   return strdup(bytes);
  284.          ^~~~~~~~~~~~~
  285. /home/pi/droidports/jni/fake_jni.c: In function ‘iface_ReleaseStringUTFChars’:
  286. /home/pi/droidports/jni/fake_jni.c:372:7: warning: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  287.   free(utf);
  288.        ^~~
  289. In file included from /usr/include/SDL2/SDL_stdinc.h:40,
  290.                  from /usr/include/SDL2/SDL_main.h:25,
  291.                  from /usr/include/SDL2/SDL.h:32,
  292.                  from /home/pi/droidports/jni/fake_jni.c:13:
  293. /usr/include/stdlib.h:563:25: note: expected ‘void *’ but argument is of type ‘const char *
  294.  extern void free (void *__ptr) __THROW;
  295.                    ~~~~~~^~~~~
  296. /home/pi/droidports/jni/fake_jni.c: In function ‘iface_GetJavaVM’:
  297. /home/pi/droidports/jni/fake_jni.c:415:27: warning: assignment to ‘void *’ from ‘unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
  298.      jni_fake_vm.reserved0 = (uintptr_t)&jni_fake_vm;
  299.                            ^
  300. /home/pi/droidports/jni/fake_jni.c: At top level:
  301. /home/pi/droidports/jni/fake_jni.c:743:22: warning: initialization of ‘jint (*)(const JavaVM *){aka ‘int (*)(const struct JNIInvokeInterface *)} from incompatible pointer type ‘_jobject * (*)(){aka ‘struct _jobject * (*)()} [-Wincompatible-pointer-types]     .DestroyJavaVM = &iface_ret0,
  302.                       ^
  303. /home/pi/droidports/jni/fake_jni.c:743:22: note: (near initialization for ‘jni_fake_vm.DestroyJavaVM’)
  304. /home/pi/droidports/jni/fake_jni.c:744:28: warning: initialization of ‘jint (*)(const JavaVM *, const JNIEnv *, void *){aka ‘int (*)(const struct JNIInvokeInterface *, const struct JNINativeInterface *, void *)} from incompatible pointer type ‘jint (*)(const JavaVM *, void **, void *){aka ‘int (*)(const struct JNIInvokeInterface *, void **, void *)} [-Wincompatible-pointer-types]
  305.      .AttachCurrentThread = &iface_AttachCurrentThread,
  306.                             ^
  307. /home/pi/droidports/jni/fake_jni.c:744:28: note: (near initialization for ‘jni_fake_vm.AttachCurrentThread’)
  308. /home/pi/droidports/jni/fake_jni.c:745:28: warning: initialization of ‘jint (*)(const JavaVM *){aka ‘int (*)(const struct JNIInvokeInterface *)} from incompatible pointer type ‘_jobject * (*)(){aka ‘struct _jobject * (*)()} [-Wincompatible-pointer-types]     .DetachCurrentThread = &iface_ret0,
  309.                             ^
  310. /home/pi/droidports/jni/fake_jni.c:745:28: note: (near initialization for ‘jni_fake_vm.DetachCurrentThread’)
  311. /home/pi/droidports/jni/fake_jni.c:746:15: warning: initialization of ‘jint (*)(const JavaVM *, void **, jint){aka ‘int (*)(const struct JNIInvokeInterface *, void **, int)} from incompatible pointer type ‘_jobject * (*)(){aka ‘struct _jobject * (*)()} [-Wincompatible-pointer-types]
  312.      .GetEnv = &iface_ret0,
  313.                ^
  314. /home/pi/droidports/jni/fake_jni.c:746:15: note: (near initialization for ‘jni_fake_vm.GetEnv’)
  315. /home/pi/droidports/jni/fake_jni.c:747:36: warning: initialization of ‘jint (*)(const JavaVM *, const JNIEnv *, void *){aka ‘int (*)(const struct JNIInvokeInterface *, const struct JNINativeInterface *, void *)} from incompatible pointer type ‘_jobject * (*)(){aka ‘struct _jobject * (*)()} [-Wincompatible-pointer-types]
  316.      .AttachCurrentThreadAsDaemon = &iface_ret0
  317.                                     ^
  318. /home/pi/droidports/jni/fake_jni.c:747:36: note: (near initialization for ‘jni_fake_vm.AttachCurrentThreadAsDaemon’)
  319. [ 75%] Building C object CMakeFiles/gmloader.dir/platform/common/crc32.c.o
  320. [ 78%] Building C object CMakeFiles/gmloader.dir/platform/common/gles2_loader.c.o
  321. [ 82%] Building C object CMakeFiles/gmloader.dir/platform/common/io_util.c.o
  322. /home/pi/droidports/platform/common/io_util.c: In function ‘io_buffer_from_file’:
  323. /home/pi/droidports/platform/common/io_util.c:26:63: warning: passing argument 6 of ‘mmap’ makes integer from pointer without a cast [-Wint-conversion]
  324.          mem = mmap(NULL, mem_sz, PROT_WRITE, MAP_PRIVATE, fd, NULL);
  325.                                                                ^~~~
  326. In file included from /home/pi/droidports/platform/common/io_util.c:5:
  327. /usr/include/arm-linux-gnueabihf/sys/mman.h:57:14: note: expected ‘__off_t’ {aka ‘long int’} but argument is of type ‘void *
  328.  extern void *mmap (void *__addr, size_t __len, int __prot,
  329.               ^~~~
  330. /home/pi/droidports/platform/common/io_util.c:36:15: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
  331.          mem = malloc(sizeof(mem_sz));
  332.                ^~~~~~
  333. /home/pi/droidports/platform/common/io_util.c:36:15: warning: incompatible implicit declaration of built-in function ‘malloc’
  334. /home/pi/droidports/platform/common/io_util.c:36:15: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
  335. /home/pi/droidports/platform/common/io_util.c:8:1:
  336. +#include <stdlib.h>
  337.  
  338. /home/pi/droidports/platform/common/io_util.c:36:15:
  339.          mem = malloc(sizeof(mem_sz));
  340.                ^~~~~~
  341. /home/pi/droidports/platform/common/io_util.c:53:5: warning: implicit declaration of functionfree[-Wimplicit-function-declaration]
  342.      free(mem);
  343.      ^~~~
  344. /home/pi/droidports/platform/common/io_util.c:53:5: warning: incompatible implicit declaration of built-in functionfree
  345. /home/pi/droidports/platform/common/io_util.c:53:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free
  346. [ 85%] Building C object CMakeFiles/gmloader.dir/platform/common/so_util.c.o
  347. [ 89%] Building C object CMakeFiles/gmloader.dir/platform/common/zip_util.c.o
  348. /home/pi/droidports/platform/common/so_util.c: In function ‘trampoline_ldm’:
  349. /home/pi/droidports/platform/common/so_util.c:66:21: warning: initialization of ‘uint32_t’ {aka ‘unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  350.    uint32_t stored = NULL;
  351.                      ^~~~
  352. /home/pi/droidports/platform/common/so_util.c:85:10: warning: assignment to ‘uint32_t’ {aka ‘unsigned int’} from ‘uint32_t *{aka ‘unsigned int *} makes integer from pointer without a cast [-Wint-conversion]
  353.    *ptr++ = dst+1;                                       // .dword <...>        ; [dst+0x4]
  354.           ^
  355. In file included from /home/pi/droidports/platform/common/so_util.c:23:
  356. /home/pi/droidports/platform/common/asm_encodings.h:26:24: warning: passing argument 3 of ‘so_alloc_arena’ makes integer from pointer without a cast [-Wint-conversion]
  357.  #define B_OFFSET(x) (x + 8) // branch jumps into addr - 8, so range is biased forward
  358.                      ~~~^~~~
  359. /home/pi/droidports/platform/common/so_util.c:88:55: note: in expansion of macro ‘B_OFFSET’
  360.    uintptr_t patch_addr = so_alloc_arena(mod, B_RANGE, B_OFFSET(dst), trampoline_sz);
  361.                                                        ^~~~~~~~
  362. /home/pi/droidports/platform/common/so_util.c:34:75: note: expected ‘uintptr_t’ {aka ‘unsigned int’} but argument is of type ‘uint32_t *{aka ‘unsigned int *}
  363.  static uintptr_t so_alloc_arena(so_module *so, uintptr_t range, uintptr_t dst, size_t sz)
  364.                                                                  ~~~~~~~~~~^~~
  365. /home/pi/droidports/platform/common/so_util.c: In function ‘hook_thumb’:
  366. /home/pi/droidports/platform/common/so_util.c:125:23: warning: passing argument 1 of ‘unrestricted_memcpy’ makes pointer from integer without a cast [-Wint-conversion]
  367.    unrestricted_memcpy(trampoline_addr, trampoline, sizeof(trampoline));
  368.                        ^~~~~~~~~~~~~~~
  369. In file included from /home/pi/droidports/platform/common/so_util.c:22:
  370. /home/pi/droidports/platform/common/so_util.h:94:31: note: expected ‘void *’ but argument is of type ‘uintptr_t’ {aka ‘unsigned int’}
  371.  int unrestricted_memcpy(void *dst, const void *src, size_t len);                         ~~~~~~^~~
  372. /home/pi/droidports/platform/common/so_util.c: In function ‘hook_arm’:
  373. /home/pi/droidports/platform/common/so_util.c:147:23: warning: passing argument 1 of ‘unrestricted_memcpy’ makes pointer from integer without a cast [-Wint-conversion]
  374.    unrestricted_memcpy(trampoline_addr, trampoline, sizeof(trampoline));
  375.                        ^~~~~~~~~~~~~~~
  376. In file included from /home/pi/droidports/platform/common/so_util.c:22:
  377. /home/pi/droidports/platform/common/so_util.h:94:31: note: expected ‘void *’ but argument is of type ‘uintptr_t’ {aka ‘unsigned int’}
  378.  int unrestricted_memcpy(void *dst, const void *src, size_t len);                         ~~~~~~^~~
  379. /home/pi/droidports/platform/common/so_util.c: In function ‘so_load’:
  380. /home/pi/droidports/platform/common/so_util.c:221:25: warning: assignment to ‘uintptr_t’ {aka ‘unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  381.          mod->patch_base = block_get_base_address(mod->patch_blockid);
  382.                          ^
  383. /home/pi/droidports/platform/common/so_util.c:240:41: warning: assignment to ‘uintptr_t’ {aka ‘unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  384.          mod->cave_base = mod->cave_head = prog_data + mod->phdr[i].p_memsz;
  385.                                          ^
  386. /home/pi/droidports/platform/common/so_util.c:260:19: warning: assignment to ‘uintptr_t’ {aka ‘unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  387.          data_addr = prog_data + prog_size; // for the next one
  388.                    ^
  389. /home/pi/droidports/platform/common/so_util.c: In function ‘so_symbol’:
  390. /home/pi/droidports/platform/common/so_util.c:588:12: warning: returning ‘void *’ from a function with return type ‘uintptr_t’ {aka ‘unsigned int’} makes integer from pointer without a cast [-Wint-conversion]
  391.      return NULL;
  392.             ^~~~
  393. /home/pi/droidports/platform/common/so_util.c: In function ‘so_symbol_fix_ldmia’:
  394. /home/pi/droidports/platform/common/so_util.c:612:27: warning: passing argument 2 of ‘trampoline_ldm’ makes pointer from integer without a cast [-Wint-conversion]
  395.        trampoline_ldm(mod, addr);
  396.                            ^~~~
  397. /home/pi/droidports/platform/common/so_util.c:56:54: note: expected ‘uint32_t *{aka ‘unsigned int *} but argument is of type ‘uintptr_t’ {aka ‘unsigned int’}
  398.  static void trampoline_ldm(so_module *mod, uint32_t *dst)
  399.                                             ~~~~~~~~~~^~~
  400. [ 92%] Building C object CMakeFiles/gmloader.dir/platform/linux/physram.c.o
  401. /home/pi/droidports/platform/linux/physram.c: In function ‘get_available_physram’:
  402. /home/pi/droidports/platform/linux/physram.c:8:12: warning: implicit declaration of function ‘get_avphys_pages’ [-Wimplicit-function-declaration]
  403.      return get_avphys_pages() * sysconf(_SC_PAGESIZE);
  404.             ^~~~~~~~~~~~~~~~
  405. [ 96%] Building C object CMakeFiles/gmloader.dir/platform/linux/so_util_linux.c.o
  406. [100%] Linking C executable gmloader
  407. [100%] Built target gmloader
  408. pi@retropie:~ $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement