public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/48009] New: Bootstrap failure: c++locale.cc: invalid conversion from 'const char*' to 'char*'
@ 2011-03-06 19:47 skunk at iskunk dot org
  2011-03-06 22:33 ` [Bug bootstrap/48009] " skunk at iskunk dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: skunk at iskunk dot org @ 2011-03-06 19:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48009

           Summary: Bootstrap failure: c++locale.cc: invalid conversion
                    from 'const char*' to 'char*'
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: skunk@iskunk.org
              Host: powerpc-ibm-aix4.3.2.0
            Target: powerpc-ibm-aix4.3.2.0
             Build: powerpc-ibm-aix4.3.2.0


After working around bug #47907, bootstrapping GCC 4.5.2 on this AIX 4.3 system
fails with

ln -s /home/src/gcc-4.5.2/libstdc++-v3/config/locale/generic/c_locale.cc
./c++locale.cc || true
[...]
libtool: compile:  /tmp/gcc-4.5.2-build/./gcc/xgcc -shared-libgcc
-B/tmp/gcc-4.5.2-build/./gcc -nostdinc++
-L/tmp/gcc-4.5.2-build/powerpc-ibm-aix4.3.2.0/libstdc++-v3/src
-L/tmp/gcc-4.5.2-build/powerpc-ibm-aix4.3.2.0/libstdc++-v3/src/.libs
-B/opt/tg/powerpc-ibm-aix4.3.2.0/bin/ -B/opt/tg/powerpc-ibm-aix4.3.2.0/lib/
-isystem /opt/tg/powerpc-ibm-aix4.3.2.0/include -isystem
/opt/tg/powerpc-ibm-aix4.3.2.0/sys-include
-I/tmp/gcc-4.5.2-build/powerpc-ibm-aix4.3.2.0/libstdc++-v3/include/powerpc-ibm-aix4.3.2.0
-I/tmp/gcc-4.5.2-build/powerpc-ibm-aix4.3.2.0/libstdc++-v3/include
-I/home/src/gcc-4.5.2/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall
-Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -c c++locale.cc  -DPIC -o c++locale.o
c++locale.cc: In function 'void std::__convert_to_v(const char*, _Tp&,
std::ios_base::iostate&, int* const&) [with _Tp = float, std::ios_base::iostate
= std::_Ios_Iostate, int* = int*]':
c++locale.cc:66:34: error: invalid conversion from 'const char*' to 'char*'
c++locale.cc:66:34: error:   initializing argument 1 of 'float strtof(char*,
char**)'
make[4]: *** [c++locale.lo] Error 1
make[4]: Leaving directory
`/tmp/gcc-4.5.2-build/powerpc-ibm-aix4.3.2.0/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/tmp/gcc-4.5.2-build/powerpc-ibm-aix4.3.2.0/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/tmp/gcc-4.5.2-build/powerpc-ibm-aix4.3.2.0/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/tmp/gcc-4.5.2-build'
make: *** [bootstrap-lean] Error 2

Sure enough,

% grep strtof /usr/include/*.h
/usr/include/stdlib.h:  extern float    strtof();
/usr/include/stdlib.h:  extern float    strtof(char *, char **);

This is the same as bug #26297, except with newer versions of AIX and GCC. I
will attempt adding the const keyword to the strtof() prototype in GCC's copy
of the system stdlib.h.


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

end of thread, other threads:[~2015-02-17 14:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-06 19:47 [Bug bootstrap/48009] New: Bootstrap failure: c++locale.cc: invalid conversion from 'const char*' to 'char*' skunk at iskunk dot org
2011-03-06 22:33 ` [Bug bootstrap/48009] " skunk at iskunk dot org
2012-05-12  4:34 ` [Bug target/48009] " skunk at iskunk dot org
2012-05-12  5:09 ` skunk at iskunk dot org
2012-05-12  8:35 ` paolo.carlini at oracle dot com
2012-05-12 14:47 ` dje at gcc dot gnu.org
2012-05-13  7:10 ` skunk at iskunk dot org
2012-05-13  9:06 ` glisse at gcc dot gnu.org
2012-05-14  3:43 ` skunk at iskunk dot org
2012-07-17 23:32 ` [Bug spam/48009] " skunk at iskunk dot org
2015-02-06 17:26 ` [Bug bootstrap/48009] " dje at gcc dot gnu.org
2015-02-06 19:00 ` skunk at iskunk dot org
2015-02-16 15:19 ` dje at gcc dot gnu.org
2015-02-17  3:42 ` howarth at bromo dot med.uc.edu
2015-02-17  3:48 ` howarth at bromo dot med.uc.edu
2015-02-17  4:10 ` howarth at bromo dot med.uc.edu
2015-02-17 14:47 ` dje 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).