Atmosphere-NX / Atmosphere-libs

A collection of C++ libraries for development of system modules for the Nintendo Switch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build error error: '::svcQueryIoMapping' has not been declared; did you mean 'QueryIoMapping'?

impeeza opened this issue · comments

Hello there, I am trying to build libstratosphere on MSYS MINGW and the next errors arise:

Am I missing something?

C:/msys64/home/Impeeza/Atmosphere-libs/libstratosphere/include/stratosphere/svc/svc_stratosphere_shims.hpp:335:32: error: '::svcQueryIoMapping' has not been declared; did you mean 'QueryIoMapping'?
  335 |                     R_RETURN(::svcQueryIoMapping(reinterpret_cast<u64 *>(out_address), reinterpret_cast<u64 *>(out_size), physical_address, size));
      |                                ^~~~~~~~~~~~~~~~~
C:/msys64/home/Impeeza/Atmosphere-libs/libvapours/include/vapours/results/results_common.hpp:436:48
 note: in definition of macro 'R_RETURN'
  436 |         const ::ams::Result _tmp_r_throw_rc = (res_expr);
                                                   \
      |                                                ^~~~~~~~
C:/msys64/home/Impeeza/Atmosphere-libs/libstratosphere/include/stratosphere/svc/svc_stratosphere_shims.hpp: In function 'ams::Result ams::svc::aarch64::lp64::MapInsecureMemory(ams::svc::Address, ams::svc::Size)':
C:/msys64/home/Impeeza/Atmosphere-libs/libstratosphere/include/stratosphere/svc/svc_stratosphere_shims.hpp:507:32: error: '::svcMapInsecureMemory' has not been declared; did you mean 'MapInsecureMemory'?
  507 |                     R_RETURN(::svcMapInsecureMemory(reinterpret_cast<void *>(static_cast<uintptr_t>(address)), size));
      |                                ^~~~~~~~~~~~~~~~~~~~
C:/msys64/home/Impeeza/Atmosphere-libs/libvapours/include/vapours/results/results_common.hpp:436:48
 note: in definition of macro 'R_RETURN'
  436 |         const ::ams::Result _tmp_r_throw_rc = (res_expr);
                                                   \
      |                                                ^~~~~~~~
C:/msys64/home/Impeeza/Atmosphere-libs/libstratosphere/include/stratosphere/svc/svc_stratosphere_shims.hpp: In function 'ams::Result ams::svc::aarch64::lp64::UnmapInsecureMemory(ams::svc::Address, ams::svc::Size)':
C:/msys64/home/Impeeza/Atmosphere-libs/libstratosphere/include/stratosphere/svc/svc_stratosphere_shims.hpp:511:32: error: '::svcUnmapInsecureMemory' has not been declared; did you mean 'UnmapInsecureMemory'?
  511 |                     R_RETURN(::svcUnmapInsecureMemory(reinterpret_cast<void *>(static_cast<uintptr_t>(address)), size));
      |                                ^~~~~~~~~~~~~~~~~~~~~~
C:/msys64/home/Impeeza/Atmosphere-libs/libvapours/include/vapours/results/results_common.hpp:436:48
 note: in definition of macro 'R_RETURN'
  436 |         const ::ams::Result _tmp_r_throw_rc = (res_expr);
                                                   \
      |                                                ^~~~~~~~
make[2]: *** [/home/Impeeza/Atmosphere-libs/libstratosphere/../config/common.mk:305: /home/Impeeza/Atmosphere-libs/libstratosphere/include/stratosphere.hpp.gch/nintendo_nx_arm64_armv8a_release] Error 1
make[1]: *** [/home/Impeeza/Atmosphere-libs/libstratosphere/libstratosphere.mk:111: all] Error 2
make[1]: Leaving directory '/home/Impeeza/Atmosphere-libs/libstratosphere'
make: *** [Makefile:38: nx_release] Error 2```

![image](https://github.com/Atmosphere-NX/Atmosphere-libs/assets/41979604/503c07fd-f8bb-4455-bdf0-e5c2f0b31eab)

Requires libnx-master, as ams usually does. In particular this commit: switchbrew/libnx@933c5a1

ah, your libs are just out of date. Guess I never pushed that.

Pushed a fix.

Thanks a lot.