public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hp at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/104080] [12 Regression] newlib doesn't have endian.h causing build failure with 2800bc08e4ab r12-6646
Date: Tue, 18 Jan 2022 02:58:18 +0000	[thread overview]
Message-ID: <bug-104080-4-xvhizrQ6zW@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-104080-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
Created attachment 52215
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52215&action=edit
patch for endian.h issue

This patch is not sufficient: after this, I get:
libtool: compile:  /X-obj/./gcc/xgcc -shared-libgcc -B/X-obj/./gcc -nostdinc++
-L/X-obj/cris-elf/libstdc++-v3/src -L/X-obj/cris-elf/libstdc++-v3/src/.libs
-L/X-obj/cris-elf/libstdc++-v3/libsupc++/.libs -nostdinc
-B/X-obj/cris-elf/newlib/ -isystem /X-obj/cris-elf/newlib/targ-include -isystem
/X-gccsrc/newlib/libc/include -B/X-obj/cris-elf/libgloss/cris
-L/X-obj/cris-elf/libgloss/libnosys -L/X-gccsrc/libgloss/cris
-B/mnt/storage0/hp/tmpdir/break22017-1/pre/cris-elf/bin/
-B/mnt/storage0/hp/tmpdir/break22017-1/pre/cris-elf/lib/ -isystem
/mnt/storage0/hp/tmpdir/break22017-1/pre/cris-elf/include -isystem
/mnt/storage0/hp/tmpdir/break22017-1/pre/cris-elf/sys-include
-I/X-gccsrc/libstdc++-v3/../libgcc
-I/X-obj/cris-elf/libstdc++-v3/include/cris-elf
-I/X-obj/cris-elf/libstdc++-v3/include -I/X-gccsrc/libstdc++-v3/libsupc++
-std=gnu++17 -nostdinc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections
-fdata-sections -frandom-seed=floating_from_chars.lo -fimplicit-templates -g
-O2 -c /X-gccsrc/libstdc++-v3/src/c++17/floating_from_chars.cc -o
floating_from_chars.o
In file included from
/X-gccsrc/libstdc++-v3/src/c++17/floating_from_chars.cc:65:
/X-gccsrc/libstdc++-v3/src/c++17/fast_float/fast_float.h: In function 'void
{anonymous}::fast_float::round(adjusted_mantissa&, callback)':
/X-gccsrc/libstdc++-v3/src/c++17/fast_float/fast_float.h:2469:20: error: no
matching function for call to 'min(int32_t&, int)'
 2469 |     cb(am, std::min(shift, 64));
      |            ~~~~~~~~^~~~~~~~~~~
In file included from /X-obj/cris-elf/libstdc++-v3/include/string:50,
                 from
/X-gccsrc/libstdc++-v3/src/c++17/floating_from_chars.cc:35:
/X-obj/cris-elf/libstdc++-v3/include/bits/stl_algobase.h:230:5: note:
candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const
_Tp&)'
  230 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/X-obj/cris-elf/libstdc++-v3/include/bits/stl_algobase.h:230:5: note:  
template argument deduction/substitution failed:
/X-gccsrc/libstdc++-v3/src/c++17/fast_float/fast_float.h:2469:20: note:  
deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
 2469 |     cb(am, std::min(shift, 64));
      |            ~~~~~~~~^~~~~~~~~~~
/X-obj/cris-elf/libstdc++-v3/include/bits/stl_algobase.h:278:5: note:
candidate: 'template<class _Tp, class _Compare> constexpr const _Tp&
std::min(const _Tp&, const _Tp&, _Compare)'
  278 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/X-obj/cris-elf/libstdc++-v3/include/bits/stl_algobase.h:278:5: note:  
template argument deduction/substitution failed:
/X-gccsrc/libstdc++-v3/src/c++17/fast_float/fast_float.h:2469:20: note:  
deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
 2469 |     cb(am, std::min(shift, 64));
      |            ~~~~~~~~^~~~~~~~~~~
make[5]: *** [Makefile:585: floating_from_chars.lo] Error 1
make[5]: Leaving directory '/X-obj/cris-elf/libstdc++-v3/src/c++17'

This is likely the usual size_t mismatch.  Unassigning myself.

  parent reply	other threads:[~2022-01-18  2:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-18  2:10 [Bug libstdc++/104080] New: " hp at gcc dot gnu.org
2022-01-18  2:12 ` [Bug libstdc++/104080] " hp at gcc dot gnu.org
2022-01-18  2:13 ` hp at gcc dot gnu.org
2022-01-18  2:58 ` hp at gcc dot gnu.org [this message]
2022-01-18  2:58 ` hp at gcc dot gnu.org
2022-01-18  7:30 ` rguenth at gcc dot gnu.org
2022-01-18  9:27 ` pexu@gcc-bugzilla.mail.kapsi.fi
2022-01-18  9:31 ` redi at gcc dot gnu.org
2022-01-18  9:39 ` redi at gcc dot gnu.org
2022-01-18  9:55 ` cvs-commit at gcc dot gnu.org
2022-01-18 10:04 ` cvs-commit at gcc dot gnu.org
2022-01-18 10:09 ` redi at gcc dot gnu.org
2022-01-18 11:58 ` hp at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-104080-4-xvhizrQ6zW@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).