public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/115482] New: print.cc fails with avrlibc
@ 2024-06-13 20:34 dv at vollmann dot ch
  2024-06-14  9:54 ` [Bug libstdc++/115482] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dv at vollmann dot ch @ 2024-06-13 20:34 UTC (permalink / raw)
  To: gcc-bugs

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

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

end of thread, other threads:[~2024-06-15 11:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-13 20:34 [Bug libstdc++/115482] New: print.cc fails with avrlibc dv at vollmann dot ch
2024-06-14  9:54 ` [Bug libstdc++/115482] " redi at gcc dot gnu.org
2024-06-14  9:54 ` [Bug libstdc++/115482] [14/15 Regression] " redi at gcc dot gnu.org
2024-06-14 11:21 ` dv at vollmann dot ch
2024-06-15 11:53 ` 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).