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

--- Comment #8 from cqwrteur <unlvsur at live dot com> ---
(In reply to Jonathan Wakely from comment #7)
> Right, you need to use --with-avr

--with-avrlibc
Yeah.

But it is not documented.

in the /src/c++11/system_error.cc

#ifdef __AVR__
      return std::error_condition(ev, std::system_category());
#else
      switch (ev)
      {

#endif

i feel this switch is pointless.

https://github.com/vancegroup-mirrors/avr-libc/blob/master/avr-libc/include/errno.h

If you look at the errno.h here, it is pretty bad.

I think this switch should just be removed.
../../../../../../../gcc/libstdc++-v3/src/c++11/random.cc:399:7: error:
'::close' has not been declared; did you mean 'fclose'?
  399 |     ::close(_M_fd);
      |       ^~~~~
      |       fclose
Also this close stuff.

Reply via email to