--- Comment #5 from zero at boolean-domain dot net 2010-06-07 14:35 ---
I obtain a similar error message when building a gcc-4.5.0 cross compiler:
/media/data/linux/sources/gcc-4.4.4-build/./gcc/xgcc
-B/media/data/linux/sources/gcc-4.4.4-build/./gcc/
-B/media/data/linux/tools/usr/x86_64-unknown-linux-gnu/bin/
-B/media/data/linux/tools/usr/x86_64-unknown-linux-gnu/lib/ -isystem
/media/data/linux/tools/usr/x86_64-unknown-linux-gnu/include -isystem
/media/data/linux/tools/usr/x86_64-unknown-linux-gnu/sys-include -c
-DHAVE_CONFIG_H -g -O2 -march=core2-I.
-I../../../gcc-4.4.4/libiberty/../include -W -Wall -Wwrite-strings
-Wc++-compat -Wstrict-prototypes -pedantic
../../../gcc-4.4.4/libiberty/regex.c -o regex.o
../../../gcc-4.4.4/libiberty/regex.c:51:25: error: sys/types.h: No such file or
directory
../../../gcc-4.4.4/libiberty/regex.c:130: warning: function declaration isnt a
prototype
../../../gcc-4.4.4/libiberty/regex.c:130: warning: conflicting types for
built-in function malloc
../../../gcc-4.4.4/libiberty/regex.c:131: warning: function declaration isnt a
prototype
../../../gcc-4.4.4/libiberty/regex.c:131: warning: conflicting types for
built-in function realloc
../../../gcc-4.4.4/libiberty/regex.c:158:25: error: strings.h: No such file or
directory
In file included from ../../../gcc-4.4.4/libiberty/../include/xregex.h:26,
from ../../../gcc-4.4.4/libiberty/regex.c:193:
../../../gcc-4.4.4/libiberty/../include/xregex2.h:360: error: expected
specifier-qualifier-list before size_t
../../../gcc-4.4.4/libiberty/../include/xregex2.h:447: error: expected
declaration specifiers or ... before size_t
../../../gcc-4.4.4/libiberty/../include/xregex2.h:543: error: expected
declaration specifiers or ... before size_t
../../../gcc-4.4.4/libiberty/../include/xregex2.h:547: error: expected =,
,, ;, asm or __attribute__ before xregerror
../../../gcc-4.4.4/libiberty/regex.c:196:20: error: ctype.h: No such file or
directory
../../../gcc-4.4.4/libiberty/regex.c: In function init_syntax_once:
../../../gcc-4.4.4/libiberty/regex.c:284: warning: implicit declaration of
function bzero
../../../gcc-4.4.4/libiberty/regex.c:284: warning: incompatible implicit
declaration of built-in function bzero
../../../gcc-4.4.4/libiberty/regex.c:287: warning: implicit declaration of
function isalnum
../../../gcc-4.4.4/libiberty/regex.c: At top level:
../../../gcc-4.4.4/libiberty/regex.c:408: error: expected declaration
specifiers or ... before size_t
In file included from ../../../gcc-4.4.4/libiberty/regex.c:638:
../../../gcc-4.4.4/libiberty/regex.c:2283: error: expected declaration
specifiers or ... before size_t
../../../gcc-4.4.4/libiberty/regex.c: In function byte_regex_compile:
../../../gcc-4.4.4/libiberty/regex.c:2318: error: size undeclared (first use
in this function)
../../../gcc-4.4.4/libiberty/regex.c:2318: error: (Each undeclared identifier
is reported only once
../../../gcc-4.4.4/libiberty/regex.c:2318: error: for each function it appears
in.)
../../../gcc-4.4.4/libiberty/regex.c:2401: error: struct re_pattern_buffer
has no member named fastmap_accurate
../../../gcc-4.4.4/libiberty/regex.c:2402: error: struct re_pattern_buffer
has no member named not_bol
../../../gcc-4.4.4/libiberty/regex.c:2402: error: struct re_pattern_buffer
has no member named not_eol
../../../gcc-4.4.4/libiberty/regex.c:2410: error: struct re_pattern_buffer
has no member named re_nsub
../../../gcc-4.4.4/libiberty/regex.c:2439: warning: implicit declaration of
function free
../../../gcc-4.4.4/libiberty/regex.c:2439: warning: incompatible implicit
declaration of built-in function free
../../../gcc-4.4.4/libiberty/regex.c:2500: warning: incompatible implicit
declaration of built-in function free
../../../gcc-4.4.4/libiberty/regex.c:2533: warning: incompatible implicit
declaration of built-in function free
../../../gcc-4.4.4/libiberty/regex.c:2640: warning: incompatible implicit
declaration of built-in function free
../../../gcc-4.4.4/libiberty/regex.c:3124: warning: incompatible implicit
declaration of built-in function bzero
../../../gcc-4.4.4/libiberty/regex.c:3253: warning: implicit declaration of
function strcmp
../../../gcc-4.4.4/libiberty/regex.c:3280: warning: implicit declaration of
function isalpha
../../../gcc-4.4.4/libiberty/regex.c:3282: warning: implicit declaration of
function iscntrl
../../../gcc-4.4.4/libiberty/regex.c:3284: warning: implicit declaration of
function isdigit
../../../gcc-4.4.4/libiberty/regex.c:3285: warning: implicit declaration of
function isprint
../../../gcc-4.4.4/libiberty/regex.c:3285: warning: implicit declaration of
function isspace
../../../gcc-4.4.4/libiberty/regex.c:3286: warning: implicit declaration of
function islower
../../../gcc-4.4.4/libiberty/regex.c:3289: warning: implicit declaration of
function ispunct
../../../gcc-4.4.4/libiberty/regex.c:3291: warning: implicit declaration of
function