Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@retropie:~ $ nano install-gmloader.sh
- pi@retropie:~ $ cat install-gmloader.sh
- sudo apt install libopenal-dev libfreetype6-dev zlib1g-dev libbz2-dev libpng-dev libzip-dev libsdl2-image-dev cmake git
- cd
- git clone https://github.com/JohnnyonFlame/droidports --recursive
- cd droidports
- mkdir build-gmloader
- cd build-gmloader
- cmake CMakeLists.txt -DCMAKE_BUILD_TYPE=Release -DPLATFORM=linux -DPORT=gmloader ..
- make -j$(($(nproc)+1))
- pi@retropie:~ $ bash install-gmloader.sh
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- git is already the newest version (1:2.20.1-2+deb10u3).
- libbz2-dev is already the newest version (1.0.6-9.2~deb10u1).
- libfreetype6-dev is already the newest version (2.9.1-3+deb10u2).
- libopenal-dev is already the newest version (1:1.19.1-1).
- libpng-dev is already the newest version (1.6.36-6).
- libsdl2-image-dev is already the newest version (2.0.4+dfsg1-1+deb10u1).
- libzip-dev is already the newest version (1.5.1-4).
- zlib1g-dev is already the newest version (1:1.2.11.dfsg-1).
- cmake is already the newest version (3.16.3-3~bpo10+1).
- 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- Cloning into 'droidports'...
- remote: Enumerating objects: 562, done.
- remote: Counting objects: 100% (562/562), done.
- remote: Compressing objects: 100% (267/267), done.
- remote: Total 562 (delta 308), reused 498 (delta 246), pack-reused 0
- Receiving objects: 100% (562/562), 226.18 KiB | 2.49 MiB/s, done.
- Resolving deltas: 100% (308/308), done.
- Submodule '3rdparty/freetype' (https://github.com/freetype/freetype) registered for path '3rdparty/freetype'
- Submodule '3rdparty/lodepng' (https://github.com/lvandeve/lodepng) registered for path '3rdparty/lodepng'
- Cloning into '/home/pi/droidports/3rdparty/freetype'...
- remote: Enumerating objects: 83343, done.
- remote: Counting objects: 100% (5200/5200), done.
- remote: Compressing objects: 100% (2095/2095), done.
- 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
- Receiving objects: 100% (83343/83343), 27.59 MiB | 3.45 MiB/s, done.
- Resolving deltas: 100% (68605/68605), done.
- Cloning into '/home/pi/droidports/3rdparty/lodepng'...
- remote: Enumerating objects: 2614, done.
- remote: Counting objects: 100% (11/11), done.
- remote: Compressing objects: 100% (8/8), done.
- remote: Total 2614 (delta 3), reused 5 (delta 3), pack-reused 2603
- Receiving objects: 100% (2614/2614), 1.60 MiB | 2.80 MiB/s, done.
- Resolving deltas: 100% (1098/1098), done.
- Submodule path '3rdparty/freetype': checked out '3785393d1a3c12fb1b4a3995cc0e953a58531cfe'
- Submodule 'dlg' (https://github.com/nyorain/dlg.git) registered for path '3rdparty/freetype/subprojects/dlg'
- Cloning into '/home/pi/droidports/3rdparty/freetype/subprojects/dlg'...
- remote: Enumerating objects: 1116, done.
- remote: Counting objects: 100% (106/106), done.
- remote: Compressing objects: 100% (60/60), done.
- remote: Total 1116 (delta 45), reused 73 (delta 28), pack-reused 1010
- Receiving objects: 100% (1116/1116), 3.49 MiB | 2.73 MiB/s, done.
- Resolving deltas: 100% (616/616), done.
- Submodule path '3rdparty/freetype/subprojects/dlg': checked out '0cc0d3eaed28483fc8036d90ac18878ebd83ed87'
- Submodule path '3rdparty/lodepng': checked out '7fdcc96a5e5864eee72911c3ca79b1d9f0d12292'
- -- The C compiler identification is GNU 8.3.0
- -- The CXX compiler identification is GNU 8.3.0
- -- Check for working C compiler: /usr/bin/cc
- -- Check for working C compiler: /usr/bin/cc -- works
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Detecting C compile features
- -- Detecting C compile features - done
- -- Check for working CXX compiler: /usr/bin/c++
- -- Check for working CXX compiler: /usr/bin/c++ -- works
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- -- Found OpenAL: /usr/lib/arm-linux-gnueabihf/libopenal.so
- -- Found ZLIB: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.11")
- -- Found BZip2: /usr/lib/arm-linux-gnueabihf/libbz2.so (found version "1.0.6")
- -- Looking for BZ2_bzCompressInit
- -- Looking for BZ2_bzCompressInit - found
- -- Found PNG: /usr/lib/arm-linux-gnueabihf/libpng.so (found version "1.6.36")
- -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
- -- Found LIBZIP: /usr/lib/arm-linux-gnueabihf/libzip.so
- -- Found Freetype: /usr/lib/arm-linux-gnueabihf/libfreetype.so (found version "2.9.1")
- -- Looking for pthread.h
- -- Looking for pthread.h - found
- -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
- -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
- -- Looking for pthread_create in pthreads
- -- Looking for pthread_create in pthreads - not found
- -- Looking for pthread_create in pthread
- -- Looking for pthread_create in pthread - found
- -- Found Threads: TRUE
- -- Found SDL2: /usr/lib/arm-linux-gnueabihf/libSDL2main.a;/usr/lib/arm-linux-gnueabihf/libSDL2.so;-lpthread
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /home/pi/droidports/build-gmloader
- Scanning dependencies of target lodepng
- [ 3%] Building C object 3rdparty/CMakeFiles/lodepng.dir/lodepng.c.o
- [ 7%] Linking C static library liblodepng.a
- [ 7%] Built target lodepng
- Scanning dependencies of target gmloader
- [ 14%] Building C object CMakeFiles/gmloader.dir/bridges/freetype_bridge.c.o
- [ 14%] Building C object CMakeFiles/gmloader.dir/bridges/openal_bridge.c.o
- [ 17%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/RunnerJNILib.c.o
- [ 21%] Building C object CMakeFiles/gmloader.dir/bridges/zip_bridge.c.o
- [ 25%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/gamepad_impl.c.o
- In file included from /home/pi/droidports/ports/gmloader/RunnerJNILib.c:173:
- /home/pi/droidports/jni/prologue_helpers.h: In function ‘RunnerJNILib_OsGetInfo_V’:
- /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]
- *ret = CL ## _ ## ID(ARGC); \
- ^
- /home/pi/droidports/ports/gmloader/RunnerJNILib.h:14:5: note: in expansion of macro ‘DECL_STATIC_MANAGED’
- DECL_STATIC_MANAGED ( RunnerJNILib, OsGetInfo, jobject, F_v, ARG0, "()I") \
- ^~~~~~~~~~~~~~~~~~~
- /home/pi/droidports/ports/gmloader/RunnerJNILib.c:18:27: note: in expansion of macro ‘JNIRUNNER_MANAGED_LIB_FUNCS’
- #define MANAGED_LIB_FUNCS JNIRUNNER_MANAGED_LIB_FUNCS
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- /home/pi/droidports/jni/prologue_helpers.h:54:1: note: in expansion of macro ‘MANAGED_LIB_FUNCS’
- MANAGED_LIB_FUNCS
- ^~~~~~~~~~~~~~~~~
- /home/pi/droidports/jni/prologue_helpers.h: In function ‘RunnerJNILib_SetMP3Volume_V’:
- /home/pi/droidports/jni/prologue_helpers.h:54:1: warning: conversion from ‘jdouble’ {aka ‘double’} to ‘jfloat’ {aka ‘float’} may change value [-Wfloat-conversion]
- In file included from /home/pi/droidports/ports/gmloader/RunnerJNILib.c:173:
- /home/pi/droidports/jni/prologue_helpers.h: In function ‘RunnerJNILib_OsGetInfo_A’:
- /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]
- *ret = CL ## _ ## ID(ARGC); \
- ^
- /home/pi/droidports/ports/gmloader/RunnerJNILib.h:14:5: note: in expansion of macro ‘DECL_STATIC_MANAGED’
- DECL_STATIC_MANAGED ( RunnerJNILib, OsGetInfo, jobject, F_v, ARG0, "()I") \
- ^~~~~~~~~~~~~~~~~~~
- /home/pi/droidports/ports/gmloader/RunnerJNILib.c:18:27: note: in expansion of macro ‘JNIRUNNER_MANAGED_LIB_FUNCS’
- #define MANAGED_LIB_FUNCS JNIRUNNER_MANAGED_LIB_FUNCS
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- /home/pi/droidports/jni/prologue_helpers.h:82:1: note: in expansion of macro ‘MANAGED_LIB_FUNCS’
- MANAGED_LIB_FUNCS
- ^~~~~~~~~~~~~~~~~
- /home/pi/droidports/bridges/openal_bridge.c: In function ‘bridge_alcDestroyContext’:
- /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]
- while(pthread_mutex_destroy_bridge(&context->mtx->mutex) == EBUSY);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- pthread_mutexattr_destroy_bridge
- /home/pi/droidports/bridges/openal_bridge.c: In function ‘bridge_alcGetCurrentContext’:
- /home/pi/droidports/bridges/openal_bridge.c:87:12: warning: return discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- return currentALCContext;
- ^~~~~~~~~~~~~~~~~
- [ 28%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/libyoyo.c.o
- /home/pi/droidports/ports/gmloader/gamepad_impl.c: In function ‘register_gamepad_functs’:
- /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]
- hook_symbol(libyoyo, "_Z14GamePadRestartv", GamePadRestart, 1);
- ^~~~~~~~~~~~~~
- In file included from /home/pi/droidports/ports/gmloader/gamepad_impl.c:4:
- /home/pi/droidports/platform/common/so_util.h:82:64: note: expected ‘uintptr_t’ {aka ‘unsigned int’} but argument is of type ‘void (*)()’
- void hook_symbol(so_module *mod, const char *symbol, uintptr_t dst, int is_optional);
- ~~~~~~~~~~^~~
- [ 32%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/main.c.o
- /home/pi/droidports/ports/gmloader/libyoyo.c: In function ‘Audio_Load_cb’:
- /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]
- Audio_PrepareGroup(data->m_soundsAdded[1]);
- ~~~~~~~~~~~~~~~~~~~^~~
- /home/pi/droidports/ports/gmloader/libyoyo.c:304:43: note: expected ‘void *’ but argument is of type ‘int’
- /home/pi/droidports/ports/gmloader/libyoyo.c: In function ‘CAudioGroupMan__LoadGroup_reimpl’:
- /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]
- CThread__start_PcNS = so_symbol(libyoyo, "_ZN7CThread5StartEPFPvS0_ES0_PcNS_9ePriorityE");
- ^
- /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]
- CThread__start_NS = so_symbol(libyoyo, "_ZN7CThread5StartEPFPvS0_ES0_NS_9ePriorityE");
- ^
- /home/pi/droidports/ports/gmloader/libyoyo.c:399:9: warning: implicit declaration of function ‘munmap’; did you mean ‘fminmag’? [-Wimplicit-function-declaration]
- munmap(mem, mem_sz);
- ^~~~~~
- fminmag
- /home/pi/droidports/ports/gmloader/libyoyo.c:400:9: warning: implicit declaration of function ‘close’; did you mean ‘clone’? [-Wimplicit-function-declaration]
- close(fd);
- ^~~~~
- clone
- /home/pi/droidports/ports/gmloader/libyoyo.c: At top level:
- /home/pi/droidports/ports/gmloader/libyoyo.c:410:19: warning: type defaults to ‘int’ in declaration of ‘Mutex__dtor’ [-Wimplicit-int]
- static ABI_ATTR (*Mutex__dtor)(void *) = NULL;
- ^~~~~~~~~~~
- /home/pi/droidports/ports/gmloader/libyoyo.c:411:19: warning: type defaults to ‘int’ in declaration of ‘MemoryManager__Free’ [-Wimplicit-int]
- static ABI_ATTR (*MemoryManager__Free)(void *) = NULL;
- ^~~~~~~~~~~~~~~~~~~
- /home/pi/droidports/ports/gmloader/libyoyo.c: In function ‘RunnerLoadGame_reimpl’:
- /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]
- g_ppYYStackTrace = so_symbol(libyoyo, "g_ppYYStackTrace");
- ^
- /home/pi/droidports/ports/gmloader/libyoyo.c:469:20: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
- *g_nYYCode = (*g_pLLVMVars)->nYYCode;
- ^
- /home/pi/droidports/ports/gmloader/libyoyo.c: In function ‘patch_specifics’:
- /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]
- register_mouse_functs(fct_add);
- ^~~~~~~~~~~~~~~~~~~~~
- register_gamepad_functs
- /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]
- hook_symbol(mod, "_Z13IO_Start_Stepv", IO_Start_Step_hook, 1);
- ^~~~~~~~~~~~~~~~~~
- In file included from /home/pi/droidports/ports/gmloader/libyoyo.c:13:
- /home/pi/droidports/platform/common/so_util.h:82:64: note: expected ‘uintptr_t’ {aka ‘unsigned int’} but argument is of type ‘void (*)()’
- void hook_symbol(so_module *mod, const char *symbol, uintptr_t dst, int is_optional);
- ~~~~~~~~~~^~~
- /home/pi/droidports/ports/gmloader/libyoyo.c: In function ‘invoke_app’:
- /home/pi/droidports/ports/gmloader/libyoyo.c:666:14: warning: implicit declaration of function ‘isalnum’ [-Wimplicit-function-declaration]
- if (!isalnum(*c))
- ^~~~~~~
- In file included from /home/pi/droidports/ports/gmloader/libyoyo.c:16:
- /home/pi/droidports/ports/gmloader/libyoyo.c:681:14: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- MK_JSTRING(apk_path),
- ^~~~~~~~
- /home/pi/droidports/jni/fake_jni.h:443:69: note: in definition of macro ‘MK_JSTRING’
- #define MK_JSTRING(data) (_jstring){.clazz = &jstring_class, .str = data}
- ^~~~
- [ 35%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/mouse_impl.c.o
- [ 39%] Building C object CMakeFiles/gmloader.dir/ports/gmloader/sdl2_media.c.o
- [ 42%] Building C object CMakeFiles/gmloader.dir/bridges/ctype_bridge.c.o
- [ 46%] Building C object CMakeFiles/gmloader.dir/bridges/gles2_bridge.c.o
- [ 50%] Building C object CMakeFiles/gmloader.dir/bridges/math_bridge.c.o
- [ 53%] Building C object CMakeFiles/gmloader.dir/bridges/misc_bridges.c.o
- [ 57%] Building C object CMakeFiles/gmloader.dir/bridges/pthread_bridge.c.o
- /home/pi/droidports/bridges/misc_bridges.c: In function ‘impl__android_log_print’:
- /home/pi/droidports/bridges/misc_bridges.c:62:15: warning: passing argument 1 of ‘vsnprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
- vsnprintf(&andlog, 2047, fmt, va);
- ^~~~~~~
- In file included from /home/pi/droidports/bridges/misc_bridges.c:2:
- /usr/include/stdio.h:358:40: note: expected ‘char * restrict’ but argument is of type ‘char (*)[2048]’
- extern int vsnprintf (char *__restrict __s, size_t __maxlen,
- ~~~~~~~~~~~~~~~~~^~~
- /home/pi/droidports/bridges/misc_bridges.c: In function ‘impl__android_log_vprint’:
- /home/pi/droidports/bridges/misc_bridges.c:71:15: warning: passing argument 1 of ‘vsnprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
- vsnprintf(&andlog, 2047, fmt, va);
- ^~~~~~~
- In file included from /home/pi/droidports/bridges/misc_bridges.c:2:
- /usr/include/stdio.h:358:40: note: expected ‘char * restrict’ but argument is of type ‘char (*)[2048]’
- extern int vsnprintf (char *__restrict __s, size_t __maxlen,
- ~~~~~~~~~~~~~~~~~^~~
- /home/pi/droidports/bridges/pthread_bridge.c: In function ‘pthread_mutex_lock_bridge’:
- /home/pi/droidports/bridges/pthread_bridge.c:75:13: warning: comparison of distinct pointer types lacks a cast
- if (uid < (BIONIC_pthread_mutex_t*)0x1000)
- ^
- /home/pi/droidports/bridges/pthread_bridge.c: In function ‘pthread_mutex_unlock_bridge’:
- /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]
- ret = pthread_mutex_init_bridge(uid, NULL);
- ^~~
- /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> **’}
- ABI_ATTR int pthread_mutex_init_bridge(BIONIC_pthread_mutex_t *_uid, pthread_mutexattr_t **mutexattr)
- ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
- /home/pi/droidports/bridges/pthread_bridge.c: In function ‘pthread_cond_wait_bridge’:
- /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]
- pthread_mutex_t **mtx = _mtx;
- ^~~~
- /home/pi/droidports/bridges/pthread_bridge.c: In function ‘pthread_cond_timedwait_bridge’:
- /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]
- pthread_mutex_t **mtx = _mtx;
- ^~~~
- [ 60%] Building C object CMakeFiles/gmloader.dir/bridges/stdio_bridge.c.o
- [ 64%] Building C object CMakeFiles/gmloader.dir/jni/JString.c.o
- [ 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’:
- /home/pi/droidports/jni/fake_jni.c:334:17: warning: passing argument 1 of ‘strndup’ from incompatible pointer type [-Wincompatible-pointer-types]
- return strndup(unicodeChars, len);
- ^~~~~~~~~~~~
- In file included from /home/pi/droidports/jni/fake_jni.c:5:
- /usr/include/string.h:174:14: note: expected ‘const char *’ but argument is of type ‘const jchar *’ {aka ‘const short unsigned int *’}
- extern char *strndup (const char *__string, size_t __n)
- ^~~~~~~
- /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]
- return strndup(unicodeChars, len);
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- /home/pi/droidports/jni/fake_jni.c: In function ‘iface_GetStringChars’:
- /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]
- return strdup(jstr->str);
- ^~~~~~~~~~~~~~~~~
- /home/pi/droidports/jni/fake_jni.c: In function ‘iface_ReleaseStringChars’:
- /home/pi/droidports/jni/fake_jni.c:350:7: warning: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- free(chars);
- ^~~~~
- In file included from /usr/include/SDL2/SDL_stdinc.h:40,
- from /usr/include/SDL2/SDL_main.h:25,
- from /usr/include/SDL2/SDL.h:32,
- from /home/pi/droidports/jni/fake_jni.c:13:
- /usr/include/stdlib.h:563:25: note: expected ‘void *’ but argument is of type ‘const jchar *’ {aka ‘const short unsigned int *’}
- extern void free (void *__ptr) __THROW;
- ~~~~~~^~~~~
- /home/pi/droidports/jni/fake_jni.c: In function ‘iface_NewStringUTF’:
- /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]
- return strdup(bytes);
- ^~~~~~~~~~~~~
- /home/pi/droidports/jni/fake_jni.c: In function ‘iface_ReleaseStringUTFChars’:
- /home/pi/droidports/jni/fake_jni.c:372:7: warning: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
- free(utf);
- ^~~
- In file included from /usr/include/SDL2/SDL_stdinc.h:40,
- from /usr/include/SDL2/SDL_main.h:25,
- from /usr/include/SDL2/SDL.h:32,
- from /home/pi/droidports/jni/fake_jni.c:13:
- /usr/include/stdlib.h:563:25: note: expected ‘void *’ but argument is of type ‘const char *’
- extern void free (void *__ptr) __THROW;
- ~~~~~~^~~~~
- /home/pi/droidports/jni/fake_jni.c: In function ‘iface_GetJavaVM’:
- /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]
- jni_fake_vm.reserved0 = (uintptr_t)&jni_fake_vm;
- ^
- /home/pi/droidports/jni/fake_jni.c: At top level:
- /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,
- ^
- /home/pi/droidports/jni/fake_jni.c:743:22: note: (near initialization for ‘jni_fake_vm.DestroyJavaVM’)
- /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]
- .AttachCurrentThread = &iface_AttachCurrentThread,
- ^
- /home/pi/droidports/jni/fake_jni.c:744:28: note: (near initialization for ‘jni_fake_vm.AttachCurrentThread’)
- /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,
- ^
- /home/pi/droidports/jni/fake_jni.c:745:28: note: (near initialization for ‘jni_fake_vm.DetachCurrentThread’)
- /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]
- .GetEnv = &iface_ret0,
- ^
- /home/pi/droidports/jni/fake_jni.c:746:15: note: (near initialization for ‘jni_fake_vm.GetEnv’)
- /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]
- .AttachCurrentThreadAsDaemon = &iface_ret0
- ^
- /home/pi/droidports/jni/fake_jni.c:747:36: note: (near initialization for ‘jni_fake_vm.AttachCurrentThreadAsDaemon’)
- [ 75%] Building C object CMakeFiles/gmloader.dir/platform/common/crc32.c.o
- [ 78%] Building C object CMakeFiles/gmloader.dir/platform/common/gles2_loader.c.o
- [ 82%] Building C object CMakeFiles/gmloader.dir/platform/common/io_util.c.o
- /home/pi/droidports/platform/common/io_util.c: In function ‘io_buffer_from_file’:
- /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]
- mem = mmap(NULL, mem_sz, PROT_WRITE, MAP_PRIVATE, fd, NULL);
- ^~~~
- In file included from /home/pi/droidports/platform/common/io_util.c:5:
- /usr/include/arm-linux-gnueabihf/sys/mman.h:57:14: note: expected ‘__off_t’ {aka ‘long int’} but argument is of type ‘void *’
- extern void *mmap (void *__addr, size_t __len, int __prot,
- ^~~~
- /home/pi/droidports/platform/common/io_util.c:36:15: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
- mem = malloc(sizeof(mem_sz));
- ^~~~~~
- /home/pi/droidports/platform/common/io_util.c:36:15: warning: incompatible implicit declaration of built-in function ‘malloc’
- /home/pi/droidports/platform/common/io_util.c:36:15: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
- /home/pi/droidports/platform/common/io_util.c:8:1:
- +#include <stdlib.h>
- /home/pi/droidports/platform/common/io_util.c:36:15:
- mem = malloc(sizeof(mem_sz));
- ^~~~~~
- /home/pi/droidports/platform/common/io_util.c:53:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
- free(mem);
- ^~~~
- /home/pi/droidports/platform/common/io_util.c:53:5: warning: incompatible implicit declaration of built-in function ‘free’
- /home/pi/droidports/platform/common/io_util.c:53:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
- [ 85%] Building C object CMakeFiles/gmloader.dir/platform/common/so_util.c.o
- [ 89%] Building C object CMakeFiles/gmloader.dir/platform/common/zip_util.c.o
- /home/pi/droidports/platform/common/so_util.c: In function ‘trampoline_ldm’:
- /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]
- uint32_t stored = NULL;
- ^~~~
- /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]
- *ptr++ = dst+1; // .dword <...> ; [dst+0x4]
- ^
- In file included from /home/pi/droidports/platform/common/so_util.c:23:
- /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]
- #define B_OFFSET(x) (x + 8) // branch jumps into addr - 8, so range is biased forward
- ~~~^~~~
- /home/pi/droidports/platform/common/so_util.c:88:55: note: in expansion of macro ‘B_OFFSET’
- uintptr_t patch_addr = so_alloc_arena(mod, B_RANGE, B_OFFSET(dst), trampoline_sz);
- ^~~~~~~~
- /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 *’}
- static uintptr_t so_alloc_arena(so_module *so, uintptr_t range, uintptr_t dst, size_t sz)
- ~~~~~~~~~~^~~
- /home/pi/droidports/platform/common/so_util.c: In function ‘hook_thumb’:
- /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]
- unrestricted_memcpy(trampoline_addr, trampoline, sizeof(trampoline));
- ^~~~~~~~~~~~~~~
- In file included from /home/pi/droidports/platform/common/so_util.c:22:
- /home/pi/droidports/platform/common/so_util.h:94:31: note: expected ‘void *’ but argument is of type ‘uintptr_t’ {aka ‘unsigned int’}
- int unrestricted_memcpy(void *dst, const void *src, size_t len); ~~~~~~^~~
- /home/pi/droidports/platform/common/so_util.c: In function ‘hook_arm’:
- /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]
- unrestricted_memcpy(trampoline_addr, trampoline, sizeof(trampoline));
- ^~~~~~~~~~~~~~~
- In file included from /home/pi/droidports/platform/common/so_util.c:22:
- /home/pi/droidports/platform/common/so_util.h:94:31: note: expected ‘void *’ but argument is of type ‘uintptr_t’ {aka ‘unsigned int’}
- int unrestricted_memcpy(void *dst, const void *src, size_t len); ~~~~~~^~~
- /home/pi/droidports/platform/common/so_util.c: In function ‘so_load’:
- /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]
- mod->patch_base = block_get_base_address(mod->patch_blockid);
- ^
- /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]
- mod->cave_base = mod->cave_head = prog_data + mod->phdr[i].p_memsz;
- ^
- /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]
- data_addr = prog_data + prog_size; // for the next one
- ^
- /home/pi/droidports/platform/common/so_util.c: In function ‘so_symbol’:
- /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]
- return NULL;
- ^~~~
- /home/pi/droidports/platform/common/so_util.c: In function ‘so_symbol_fix_ldmia’:
- /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]
- trampoline_ldm(mod, addr);
- ^~~~
- /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’}
- static void trampoline_ldm(so_module *mod, uint32_t *dst)
- ~~~~~~~~~~^~~
- [ 92%] Building C object CMakeFiles/gmloader.dir/platform/linux/physram.c.o
- /home/pi/droidports/platform/linux/physram.c: In function ‘get_available_physram’:
- /home/pi/droidports/platform/linux/physram.c:8:12: warning: implicit declaration of function ‘get_avphys_pages’ [-Wimplicit-function-declaration]
- return get_avphys_pages() * sysconf(_SC_PAGESIZE);
- ^~~~~~~~~~~~~~~~
- [ 96%] Building C object CMakeFiles/gmloader.dir/platform/linux/so_util_linux.c.o
- [100%] Linking C executable gmloader
- [100%] Built target gmloader
- pi@retropie:~ $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement