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

error: no type named 'align_val_t' in namespace 'std' #587

Closed
glebm opened this issue Jul 1, 2022 · 7 comments · Fixed by XboxDev/nxdk-libcxx#8
Closed

error: no type named 'align_val_t' in namespace 'std' #587

glebm opened this issue Jul 1, 2022 · 7 comments · Fixed by XboxDev/nxdk-libcxx#8

Comments

@glebm
Copy link
Contributor

glebm commented Jul 1, 2022

/opt/nxdk/lib/libcxx/include/new:205:102: error: no type named 'align_val_t' in namespace 'std'
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_OVERRIDABLE_FUNC_VIS void* operator new(std::size_t __sz, std::align_val_t) _THROW_BAD_ALLOC;
@glebm
Copy link
Contributor Author

glebm commented Jul 1, 2022

This issue probably belongs in https://github.com/XboxDev/nxdk-libcxx

@kosmas12
Copy link
Contributor

kosmas12 commented Jul 1, 2022

Good day!

Are you sure that your CXXFLAGS are correct and that you are compiling using at least C++ 17? Thanks!

@glebm
Copy link
Contributor Author

glebm commented Jul 1, 2022

This is the generated build command:

/opt/nxdk/bin/nxdk-cxx -D_POSIX_C_SOURCE=200809L -I/home/gleb/devilutionX/build-xbox/_deps/libfmt-src/include -std=c++20 -o CMakeFiles/fmt.dir/src/format.cc.obj -c /home/gleb/devilutionX/build-xbox/_deps/libfmt-src/src/format.cc

$ /opt/nxdk/bin/nxdk-cxx  --version
Ubuntu clang version 14.0.0-1ubuntu1
Target: i386-pc-windows-msvc
Thread model: posix
InstalledDir: /usr/bin

@kosmas12
Copy link
Contributor

kosmas12 commented Jul 1, 2022

Huh, it seems like -std=c++20 should work, not sure what's up, I'm lead to believe we have a huge part of the STL, I'll try using that type on a minimal sample now too, just to make sure it's actually an issue on our end.

glebm added a commit to glebm/nxdk-libcxx that referenced this issue Jul 1, 2022
@kosmas12
Copy link
Contributor

kosmas12 commented Jul 1, 2022

Just tried it too, it seems that I can't get the compiler to recognize that type either.

@glebm
Copy link
Contributor Author

glebm commented Jul 1, 2022

I've managed to fix it in XboxDev/nxdk-libcxx#8 (I have no idea what I'm doing but this seems to work)

@kosmas12
Copy link
Contributor

kosmas12 commented Jul 1, 2022

Thanks for fixing it, a maintainer will most likely review it and merge soon

glebm added a commit to glebm/nxdk-libcxx that referenced this issue Jul 3, 2022
thrimbor pushed a commit to XboxDev/nxdk-libcxx that referenced this issue Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants