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

             Bug #: 52922
           Summary: failed to build gcc 4.7 on SL6.1
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: sc...@smedleyfamily.net


I am trying to build gcc 4.7.0 on a Scientific Linux 6.1 system, but keep
getting the following compilation error:

gcc -c -DHAVE_CONFIG_H -g -O2  -I. -I../../../libiberty/../include  -W -Wall
-Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic 
../../../libiberty/fnmatch.c -o fnmatch.o
In file included from ../../../libiberty/floatformat.c:31:0:
/usr/include/string.h:548:5: error: unknown type name '__locale_t'
/usr/include/string.h:552:18: error: unknown type name '__locale_t'

No errors were detected during the configure phase, only during the build
phase.

../configure --prefix=/usr/local/gcc-4.7.0 --enable-cloog-backend --enable-lto
--enable-languages=c,c++ --enable-locale=generic

Also tried without --enable-locale & got same result.

Any help would be muchly appreciated.

Scott. :)

Reply via email to