Atmosphere-NX / Atmosphere-libs

A collection of C++ libraries for development of system modules for the Nintendo Switch.
GNU General Public License v2.0
156 stars 40 forks source link

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

Closed impeeza closed 1 year ago

impeeza commented 1 year ago

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)
SciresM commented 1 year ago

Requires libnx-master, as ams usually does. In particular this commit: https://github.com/switchbrew/libnx/commit/933c5a12f0f23a330c91a8483dd022038cf00af2

SciresM commented 1 year ago

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

SciresM commented 1 year ago

Pushed a fix.

impeeza commented 1 year ago

Thanks a lot.