Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build errors on gcc-11.1.0 and clang++ 13.0.0 (fix included) #75

Closed
yoshi314 opened this issue Dec 14, 2021 · 1 comment
Closed

build errors on gcc-11.1.0 and clang++ 13.0.0 (fix included) #75

yoshi314 opened this issue Dec 14, 2021 · 1 comment

Comments

@yoshi314
Copy link

I am hitting plenty of errors about unknown numeric_limits

/data/sources/switch/nstool/deps/libtoolchain/include/tc/crypto/detail/XtsModeImpl.h: In member function ‘void tc::crypto::detail::XtsModeImpl<BlockCipher>::incr_tweak_be(byte_t*, uint64_t)’:
/data/sources/switch/nstool/deps/libtoolchain/include/tc/crypto/detailXtsModeImpl.h:275:51: error: ‘numeric_limits’ is not a member of ‘std’
  275 |                         uint64_t remaining = std::numeric_limits<uint64_t>::max() - word;
      |

the fix is to add

include <limits>

to deps/libtoolchain/include/tc/types.h

that seems to fix the build.

@jakcron
Copy link
Owner

jakcron commented Dec 15, 2021

Thanks for pointing this out. I'll get onto this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants