This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
- From: "rearnsha at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2004 19:03:36 -0000
- Subject: [Bug libstdc++/17850] New: [4.0 regression] bootstrap failure - libstdc++ uses strtold when undeclared
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Bootstrapping is failing on an arm-unknown-elf cross because of the following error:
/work/rearnsha/gnu/egcs-cross/gcc/xgcc -shared-libgcc -B/work/rearnsha/gnu/egcs-
cross/gcc/ -nostdinc++ -L/work/rearnsha/gnu/egcs-cross/arm-elf/libstdc++-v3/src
-L/work/rearnsha/gnu/egcs-cross/arm-elf/libstdc++-v3/src/.libs -nostdinc -B/work
/rearnsha/gnu/egcs-cross/arm-elf/newlib/ -isystem /work/rearnsha/gnu/egcs-cross/
arm-elf/newlib/targ-include -isystem /home/rearnsha/gnusrc/egcs-cross/newlib/lib
c/include -B/work/rearnsha/gnu/testinstall/arm-elf/bin/ -B/work/rearnsha/gnu/tes
tinstall/arm-elf/lib/ -isystem /work/rearnsha/gnu/testinstall/arm-elf/include -i
system /work/rearnsha/gnu/testinstall/arm-elf/sys-include -L/work/rearnsha/gnu/e
gcs-cross/ld -I/work/rearnsha/gnu/egcs-cross/arm-elf/libstdc++-v3/include/arm-el
f -I/work/rearnsha/gnu/egcs-cross/arm-elf/libstdc++-v3/include -I/home/rearnsha/
gnusrc/egcs-cross/libstdc++-v3/libsupc++ -O2 -O2 -g -g -O2 -fno-implicit-templat
es -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -c
c++locale.cc -o c++locale.o
c++locale.cc: In function `void std::__convert_to_v(const char*, _Tv&, std::_Ios
_Iostate&, int* const&) [with _Tv = long double]':
c++locale.cc:123: error: 'strtold' was not declared in this scope
gnumake[3]: *** [c++locale.lo] Error 1
This was probably introduced by the following patch
2004-10-03 Roger Sayle <roger@eyesopen.com>
* config/locale/generic/c_locale.cc (__convert_to_v): Use
_GLIBCXX_HAVE_STRTOF instead _GLIBCXX_USE_C99 to check for strtof.
Likewise, use _GLIBCXX_HAVE_STRTOLD instead of _GLIBCXX_USE_C99
to check for presence of strtold.
--
Summary: [4.0 regression] bootstrap failure - libstdc++ uses
strtold when undeclared
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: build
Severity: critical
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rearnsha at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,roger at eyesopen dot
com
GCC target triplet: arm-unknown-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17850