public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/83662] std::aligned_alloc() not available
       [not found] <bug-83662-4@http.gcc.gnu.org/bugzilla/>
@ 2023-08-18  4:25 ` vital.had at gmail dot com
  2023-08-18  4:37 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: vital.had at gmail dot com @ 2023-08-18  4:25 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/83662] std::aligned_alloc() not available
       [not found] <bug-83662-4@http.gcc.gnu.org/bugzilla/>
  2023-08-18  4:25 ` [Bug libstdc++/83662] std::aligned_alloc() not available vital.had at gmail dot com
@ 2023-08-18  4:37 ` pinskia at gcc dot gnu.org
  2023-08-18  7:01 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-08-18  4:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83662

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sergey Fedorov from comment #10)
> I just got the same error with gcc 12.3.0:
> https://github.com/kokkos/kokkos/issues/6367

This should be filed seperately as it is a darwin target specific issue; most
likely just powerpc darwin (Mac OS X) which is likely not as well supported as
x86_64 darwin ...

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/83662] std::aligned_alloc() not available
       [not found] <bug-83662-4@http.gcc.gnu.org/bugzilla/>
  2023-08-18  4:25 ` [Bug libstdc++/83662] std::aligned_alloc() not available vital.had at gmail dot com
  2023-08-18  4:37 ` pinskia at gcc dot gnu.org
@ 2023-08-18  7:01 ` redi at gcc dot gnu.org
  2023-08-18  7:07 ` redi at gcc dot gnu.org
  2023-08-18  7:30 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2023-08-18  7:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83662

--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
See Bug 69680

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/83662] std::aligned_alloc() not available
       [not found] <bug-83662-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2023-08-18  7:01 ` redi at gcc dot gnu.org
@ 2023-08-18  7:07 ` redi at gcc dot gnu.org
  2023-08-18  7:30 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2023-08-18  7:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83662

--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Snow Leopard is *ancient*, it didn't support aligned_alloc. According to Bug
92143 you need macOS 10.15 i.e. Catalina.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/83662] std::aligned_alloc() not available
       [not found] <bug-83662-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2023-08-18  7:07 ` redi at gcc dot gnu.org
@ 2023-08-18  7:30 ` redi at gcc dot gnu.org
  4 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2023-08-18  7:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83662

--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This bug report is only about declaring it in namespace std if it's already
available in the global namespace in stdlib.h

If your OS doesn't provide it in stdlib.h then that's not a gcc bug, and
libstdc++ can't add 'using ::aligned_alloc;' to cstdlib.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-18  7:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-83662-4@http.gcc.gnu.org/bugzilla/>
2023-08-18  4:25 ` [Bug libstdc++/83662] std::aligned_alloc() not available vital.had at gmail dot com
2023-08-18  4:37 ` pinskia at gcc dot gnu.org
2023-08-18  7:01 ` redi at gcc dot gnu.org
2023-08-18  7:07 ` redi at gcc dot gnu.org
2023-08-18  7:30 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).