* [Bug libstdc++/17850] [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
@ 2004-10-05 19:05 ` rearnsha at gcc dot gnu dot org
2004-10-05 19:16 ` [Bug libstdc++/17850] [3.4/4.0 " pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2004-10-05 19:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rearnsha at gcc dot gnu dot org 2004-10-05 19:05 -------
Created an attachment (id=7288)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7288&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4/4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
2004-10-05 19:05 ` [Bug libstdc++/17850] " rearnsha at gcc dot gnu dot org
@ 2004-10-05 19:16 ` pinskia at gcc dot gnu dot org
2004-10-05 19:21 ` rearnsha at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-05 19:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-05 19:16 -------
A 3.4 regression also if it was caused by that patch.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0 regression] bootstrap |[3.4/4.0 regression]
|failure - libstdc++ uses |bootstrap failure -
|strtold when undeclared |libstdc++ uses strtold when
| |undeclared
Target Milestone|--- |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4/4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
2004-10-05 19:05 ` [Bug libstdc++/17850] " rearnsha at gcc dot gnu dot org
2004-10-05 19:16 ` [Bug libstdc++/17850] [3.4/4.0 " pinskia at gcc dot gnu dot org
@ 2004-10-05 19:21 ` rearnsha at gcc dot gnu dot org
2004-10-05 20:58 ` roger at eyesopen dot com
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2004-10-05 19:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rearnsha at gcc dot gnu dot org 2004-10-05 19:21 -------
As far as I can see, I think the problem is in configure.ac, where we
automatically assume that newlib has strtold(). This is false AFAICT, newlib
has _strtold, but it doesn't have strtold.
R.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.3 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4/4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-10-05 19:21 ` rearnsha at gcc dot gnu dot org
@ 2004-10-05 20:58 ` roger at eyesopen dot com
2004-10-06 0:05 ` rearnsha at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: roger at eyesopen dot com @ 2004-10-05 20:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From roger at eyesopen dot com 2004-10-05 20:58 -------
Richard does the "obvious" one line fix to configure.ac restore bootstrap for
you? It looks like my cygwin (a newlib target) doesn't even have _strtold.
Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/configure.ac,v
retrieving revision 1.27
diff -c -3 -p -r1.27 configure.ac
*** configure.ac 5 Oct 2004 05:02:58 -0000 1.27
--- configure.ac 5 Oct 2004 20:55:02 -0000
*************** else
*** 194,200 ****
# GLIBCXX_CHECK_STDLIB_SUPPORT
AC_DEFINE(HAVE_STRTOF)
- AC_DEFINE(HAVE_STRTOLD)
# AC_FUNC_MMAP
AC_DEFINE(HAVE_MMAP)
--- 194,199 ----
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4/4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-10-05 20:58 ` roger at eyesopen dot com
@ 2004-10-06 0:05 ` rearnsha at gcc dot gnu dot org
2004-10-07 3:37 ` bkoz at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2004-10-06 0:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rearnsha at gcc dot gnu dot org 2004-10-06 00:04 -------
Yes, I think that probably is the best solution. I looked at changing the entry
to HAVE__STRTOLD and adding the other related glue to handle that, but that
doesn't work (or I've missed something else) because there's no declartion of
_strtold in any of the header files.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4/4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-10-06 0:05 ` rearnsha at gcc dot gnu dot org
@ 2004-10-07 3:37 ` bkoz at gcc dot gnu dot org
2004-10-07 3:40 ` bkoz at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-10-07 3:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bkoz at gcc dot gnu dot org 2004-10-07 03:37 -------
Richard note the remappings in c++config.h:
#if defined (_GLIBCXX_HAVE__STRTOLD) && ! defined (_GLIBCXX_HAVE_STRTOLD)
# define _GLIBCXX_HAVE_STRTOLD 1
# define strtold _strtold
#endif
I thought _strtold was defined in the newlib binary.
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4/4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-10-07 3:37 ` bkoz at gcc dot gnu dot org
@ 2004-10-07 3:40 ` bkoz at gcc dot gnu dot org
2004-10-07 8:32 ` rearnsha at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-10-07 3:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bkoz at gcc dot gnu dot org 2004-10-07 03:40 -------
... of course, if newlib doesn't have strtold or any of the _strtold or
__strtold or whatever, then the cross config bits for newlib shouldn't say that
it does.
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4/4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-10-07 3:40 ` bkoz at gcc dot gnu dot org
@ 2004-10-07 8:32 ` rearnsha at gcc dot gnu dot org
2004-10-07 15:39 ` bkoz at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2004-10-07 8:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rearnsha at gcc dot gnu dot org 2004-10-07 08:32 -------
Subject: Re: [3.4/4.0 regression] bootstrap failure -
libstdc++ uses strtold when undeclared
On Thu, 2004-10-07 at 04:37, bkoz at gcc dot gnu dot org wrote:
> ------- Additional Comments From bkoz at gcc dot gnu dot org 2004-10-07 03:37 -------
>
> Richard note the remappings in c++config.h:
>
> #if defined (_GLIBCXX_HAVE__STRTOLD) && ! defined (_GLIBCXX_HAVE_STRTOLD)
> # define _GLIBCXX_HAVE_STRTOLD 1
> # define strtold _strtold
> #endif
>
> I thought _strtold was defined in the newlib binary.
But no declaration in the headers (at least, not in my copy), so we
can't use it in C++ unless there's some mechanism for making libstdc++
configury generate a declaration for us... :-(
Further, Roger says that even that isn't in his copy of Cygwin...
R.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4/4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-10-07 8:32 ` rearnsha at gcc dot gnu dot org
@ 2004-10-07 15:39 ` bkoz at gcc dot gnu dot org
2004-10-07 15:52 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-10-07 15:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bkoz at gcc dot gnu dot org 2004-10-07 15:39 -------
There is no newlib definition for strtold. Thus, this patch should be applied:
http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00603.html
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4/4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-10-07 15:39 ` bkoz at gcc dot gnu dot org
@ 2004-10-07 15:52 ` cvs-commit at gcc dot gnu dot org
2004-10-07 16:06 ` [Bug libstdc++/17850] [3.4 " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-07 15:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-07 15:52 -------
Subject: Bug 17850
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: sayle@gcc.gnu.org 2004-10-07 15:52:43
Modified files:
libstdc++-v3 : ChangeLog configure.ac configure
Log message:
PR libstdc++/17850
* configure.ac: Newlib does not provide strtold.
* configure: Regenerate.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2688&r2=1.2689
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/configure.ac.diff?cvsroot=gcc&r1=1.27&r2=1.28
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/configure.diff?cvsroot=gcc&r1=1.409&r2=1.410
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-10-07 15:52 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-07 16:06 ` pinskia at gcc dot gnu dot org
2004-10-07 21:04 ` cvs-commit at gcc dot gnu dot org
2004-10-07 21:24 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-07 16:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-07 16:06 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-07 16:06:11
date| |
Summary|[3.4/4.0 regression] |[3.4 regression] bootstrap
|bootstrap failure - |failure - libstdc++ uses
|libstdc++ uses strtold when |strtold when undeclared
|undeclared |
Target Milestone|--- |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-10-07 16:06 ` [Bug libstdc++/17850] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-10-07 21:04 ` cvs-commit at gcc dot gnu dot org
2004-10-07 21:24 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-07 21:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-07 21:04 -------
Subject: Bug 17850
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: sayle@gcc.gnu.org 2004-10-07 21:04:14
Modified files:
libstdc++-v3 : ChangeLog configure.ac configure
Log message:
PR libstdc++/17850
* configure.ac: Newlib does not provide strtold.
* configure: Regenerate.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.2224.2.186&r2=1.2224.2.187
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/configure.ac.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.14.4.4&r2=1.14.4.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/configure.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.373.4.19&r2=1.373.4.20
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug libstdc++/17850] [3.4 regression] bootstrap failure - libstdc++ uses strtold when undeclared
2004-10-05 19:03 [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared rearnsha at gcc dot gnu dot org
` (11 preceding siblings ...)
2004-10-07 21:04 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-07 21:24 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-07 21:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-07 21:24 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850
^ permalink raw reply [flat|nested] 14+ messages in thread