https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124933
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #5)
> We could go with a workaround like this:
>
> --- a/libstdc++-v3/src/c++23/print.cc
> +++ b/libstdc++-v3/src/c++23/print.cc
> @@ -22,8 +22,10 @@
> // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
> // <http://www.gnu.org/licenses/>.
>
> +#if __SIZEOF_POINTER__ >= 4
> // We want to emit symbols for the inline functions in bits/print.h here.
> #define _GLIBCXX_NO_INLINE_PRINT 1
> +#endif
> #include <ostream>
> #include <bits/ostream_print.h>
> #include <print>
I thought arm-none-eabi is 32-bit pointer target:
./cc1plus -quiet -nostdinc -mthumb -march=armv8.1-m.main+pacbti+fp
-mbranch-protection=standard -mfloat-abi=softfp -std=gnu++26 -E /dev/null -dD |
grep SIZEOF_POINTER
#define __SIZEOF_POINTER__ 4