https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115482
Bug ID: 115482 Summary: print.cc fails with avrlibc Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: dv at vollmann dot ch Target Milestone: --- Created attachment 58421 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58421&action=edit A workaround that worked for me avrlibc has an incomplete unistd.h that doesn't have isatty. So building libstdc++ fails when compiling c++23/print.cc. As a workaround I added a check for AVR. With this workaround (and the patch from 115481) libstdc++ build for me with AVR-LIBC 2.2.0: ../../src/gcc/configure \ --prefix=/opt/avr \ --target=avr \ --enable-languages=c,c++ \ --with-dwarf2 \ --enable-multilib \ --enable-libstdcxx \ --disable-decimal-float \ --disable-libffi \ --disable-libgomp \ --disable-libmudflap \ --disable-libquadmath \ --disable-libssp \ --disable-libstdcxx-pch \ --disable-nls \ --without-included-gettext \ --disable-libstdcxx-verbose \ --disable-shared \ --disable-threads \ --disable-tls \ --disable-plugin \ --with-system-zlib \ --with-headers=yes \ --with-gnu-as \ --with-gnu-ld \ --with-avrlibc