Advertisement
Guest User

Mania decomp error for switch

a guest
Feb 7th, 2025
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.78 KB | Software | 0 0
  1. In file included from C:/devkitPro/libnx/include/switch.h:13,
  2. from C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.h:
  3. from C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:
  4. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c: In function '_dynLoad
  5. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:157:70: error: passing
  6. ent 2 of 'svcMapProcessCodeMemory' makes integer from pointer without a cast [-Wint-conversion
  7. 157 | if (R_FAILED(res = svcMapProcessCodeMemory(ownHandle, seg->dst, seg->src,
  8. ize))) {
  9. | ~~~^~~~~
  10. | |
  11. | void *
  12. In file included from C:/devkitPro/libnx/include/switch.h:22:
  13. C:/devkitPro/libnx/include/switch/kernel/svc.h:1493:49: note: expected 'u64' {aka 'long unsign
  14. '} but argument is of type 'void *'
  15. 1493 | Result svcMapProcessCodeMemory(Handle proc, u64 dst, u64 src, u64 size);
  16. | ~~~~^~~
  17. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:157:80: error: passing
  18. ent 3 of 'svcMapProcessCodeMemory' makes integer from pointer without a cast [-Wint-conversion
  19. 157 | if (R_FAILED(res = svcMapProcessCodeMemory(ownHandle, seg->dst, seg->src,
  20. ize))) {
  21. | ~~~^~~~~
  22. | |
  23. | void *
  24. C:/devkitPro/libnx/include/switch/kernel/svc.h:1493:58: note: expected 'u64' {aka 'long unsign
  25. '} but argument is of type 'void *'
  26. 1493 | Result svcMapProcessCodeMemory(Handle proc, u64 dst, u64 src, u64 size);
  27. | ~~~~^~~
  28. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c: In function '_dynLoad
  29. c':
  30. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:252:29: error: assignm
  31. 'void *' from 'u64' {aka 'long unsigned int'} makes pointer from integer without a cast [-Win
  32. ersion]
  33. 252 | mod->input.base = nro_addr;
  34. | ^
  35. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c: In function '_dynScan
  36. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:279:51: error: passing
  37. ent 3 of 'dynElfFindOffset' from incompatible pointer type [-Wincompatible-pointer-types]
  38. 279 | Result r = dynElfFindOffset(dynamic, DT_HASH, &mod->hash, module_base);
  39. | ^~~~~~~~~~
  40. | |
  41. | u32 ** {aka unsigned int **}
  42. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:34:61: note: expected
  43. **' but argument is of type 'u32 **' {aka 'unsigned int **'}
  44. 34 | Result dynElfFindOffset(Elf64_Dyn *dynamic, s64 tag, void **value, void *aslr_base)
  45. | ~~~~~~~^~~~~
  46. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:283:46: error: passing
  47. ent 3 of 'dynElfFindOffset' from incompatible pointer type [-Wincompatible-pointer-types]
  48. 283 | r = dynElfFindOffset(dynamic, DT_STRTAB, &mod->strtab, module_base);
  49. | ^~~~~~~~~~~~
  50. | |
  51. | const char **
  52. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:34:61: note: expected
  53. **' but argument is of type 'const char **'
  54. 34 | Result dynElfFindOffset(Elf64_Dyn *dynamic, s64 tag, void **value, void *aslr_base)
  55. | ~~~~~~~^~~~~
  56. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:287:51: error: passing
  57. ent 3 of 'dynElfFindOffset' from incompatible pointer type [-Wincompatible-pointer-types]
  58. 287 | r = dynElfFindOffset(mod->dynamic, DT_SYMTAB, &mod->symtab, module_base);
  59. | ^~~~~~~~~~~~
  60. | |
  61. | Elf64_Sym **
  62. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:34:61: note: expected
  63. **' but argument is of type 'Elf64_Sym **'
  64. 34 | Result dynElfFindOffset(Elf64_Dyn *dynamic, s64 tag, void **value, void *aslr_base)
  65. | ~~~~~~~^~~~~
  66. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c: In function '_dynUnlo
  67. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:655:57: error: passing
  68. ent 2 of 'svcUnmapProcessCodeMemory' makes integer from pointer without a cast [-Wint-conversi
  69. 655 | svcUnmapProcessCodeMemory(ownHandle, seg->dst, seg->src, seg->size);
  70. | ~~~^~~~~
  71. | |
  72. | void *
  73. C:/devkitPro/libnx/include/switch/kernel/svc.h:1505:51: note: expected 'u64' {aka 'long unsign
  74. '} but argument is of type 'void *'
  75. 1505 | Result svcUnmapProcessCodeMemory(Handle proc, u64 dst, u64 src, u64 size);
  76. | ~~~~^~~
  77. C:/mania-decomp/dependencies/RSDKv5/dependencies/switch/libnx-dyn/dyn.c:655:67: error: passing
  78. ent 3 of 'svcUnmapProcessCodeMemory' makes integer from pointer without a cast [-Wint-conversi
  79. 655 | svcUnmapProcessCodeMemory(ownHandle, seg->dst, seg->src, seg->size);
  80. | ~~~^~~~~
  81. | |
  82. | void *
  83. C:/devkitPro/libnx/include/switch/kernel/svc.h:1505:60: note: expected 'u64' {aka 'long unsign
  84. '} but argument is of type 'void *'
  85. 1505 | Result svcUnmapProcessCodeMemory(Handle proc, u64 dst, u64 src, u64 size);
  86. | ~~~~^~~
  87. make[2]: *** [dependencies/RSDKv5/CMakeFiles/RetroEngine.dir/build.make:527: dependencies/RSDKkeFiles/RetroEngine.dir/dependencies/switch/libnx-dyn/dyn.o] Error 1
  88. make[1]: *** [CMakeFiles/Makefile2:141: dependencies/RSDKv5/CMakeFiles/RetroEngine.dir/all] Er
  89. make: *** [Makefile:91: all] Error 2
  90.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement