On Wed, 9 Jul 2025 at 09:51, Andreas Schwab <sch...@suse.de> wrote: > > This breaks several cross compilers: > > ../../../../../libstdc++-v3/src/c++17/memory_resource.cc: In member function > 'virtual void* > std::pmr::unsynchronized_pool_resource::do_allocate(std::size_t, > std::size_t)': > ../../../../../libstdc++-v3/src/c++17/memory_resource.cc:1474:29: error: > 'choose_block_size' was not declared in this scope > 1474 | const auto block_size = choose_block_size(bytes, alignment); > | ^~~~~~~~~~~~~~~~~ > ../../../../../libstdc++-v3/src/c++17/memory_resource.cc: In member function > 'virtual void std::pmr::unsynchronized_pool_resource::do_deallocate(void*, > std::size_t, std::size_t)': > ../../../../../libstdc++-v3/src/c++17/memory_resource.cc:1491:25: error: > 'choose_block_size' was not declared in this scope > 1491 | size_t block_size = choose_block_size(bytes, alignment); > | ^~~~~~~~~~~~~~~~~ > make[5]: *** [Makefile:587: memory_resource.lo] Error 1 > make[5]: Leaving directory > '/home/abuild/rpmbuild/BUILD/cross-arm-none-gcc16-16.0.0+git2118-build/gcc-16.0.0+git2118/obj-x86_64-suse-linux/arm-none-eabi/libstdc++-v3/src/c++17'
Yeah I got a CI email from Linaro, the choose_block_size function needs to be moved outside the #ifdef _GLIBCXX_HAS_GTHREADS group so that's it's usable for --disable-threads targets.