[Bug libstdc++/83662] std::aligned_alloc() not available
vital.had at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Aug 18 04:25:57 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83662
Sergey Fedorov <vital.had at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vital.had at gmail dot com
--- Comment #10 from Sergey Fedorov <vital.had at gmail dot com> ---
I just got the same error with gcc 12.3.0:
https://github.com/kokkos/kokkos/issues/6367
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_kokkos/kokkos-devel/work/kokkos-ca3687e637c12225e824ee626e69fc9fea8cebd2/core/src/impl/Kokkos_HostSpace.cpp:
In member function 'void* Kokkos::HostSpace::impl_allocate(const char*, size_t,
size_t, Kokkos::Tools::SpaceHandle) const':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_kokkos/kokkos-devel/work/kokkos-ca3687e637c12225e824ee626e69fc9fea8cebd2/core/src/impl/Kokkos_HostSpace.cpp:95:16:
error: 'aligned_alloc' is not a member of 'std'; did you mean 'aligned_union'?
95 | ptr = std::aligned_alloc(alignment, size);
| ^~~~~~~~~~~~~
| aligned_union
make[2]: *** [core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_HostSpace.cpp.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
Passing -std=c++17 does not help.
More information about the Gcc-bugs
mailing list