checking for sys/sysinfo.h... no
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... no
checking for sys/systemcfg.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking for ANSI C header files... (cached) yes
checking for uintptr_t... yes
checking for pid_t... yes
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking for asprintf... yes
checking for atexit... yes
checking for basename... yes
checking for bcmp... yes
checking for bcopy... yes
checking for bsearch... yes
checking for bzero... yes
checking for calloc... yes
checking for clock... yes
checking for ffs... yes
checking for getcwd... (cached) yes
checking for getpagesize... (cached) yes
checking for index... yes
checking for insque... no
checking for memchr... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmove... yes
checking for mempcpy... yes
checking for memset... yes
checking for mkstemps... no
checking for putenv... (cached) yes
checking for random... yes
checking for rename... yes
checking for rindex... yes
checking for setenv... (cached) yes
checking for snprintf... yes
checking for sigsetmask... no
checking for stpcpy... (cached) no
checking for stpncpy... no
checking for strcasecmp... (cached) yes
checking for strchr... (cached) yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for tmpnam... yes
checking for vasprintf... yes
checking for vfprintf... yes
checking for vprintf... yes
checking for vsnprintf... yes
checking for vsprintf... yes
checking for waitpid... yes
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... -1
checking for vfork.h... no
checking for working vfork... yes
checking for _doprnt... no
checking for sys_errlist... yes
checking for sys_nerr... yes
checking for sys_siglist... no
checking for _system_configuration... no
checking for getrusage... yes
checking for on_exit... yes
checking for psignal... no
checking for strerror... yes
checking for strsignal... yes
checking for sysconf... yes
checking for times... yes
checking for sbrk... yes
checking for gettimeofday... yes
checking for realpath... yes
checking for canonicalize_file_name... no
checking for pstat_getstatic... no
checking for pstat_getdynamic... no
checking for sysmp... no
checking for getsysinfo... no
checking for table... no
checking for sysctl... no
checking whether canonicalize_file_name must be declared... yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) no
checking for working strncmp... yes
updating cache .././config.cache
creating ./config.status
creating Makefile
creating testsuite/Makefile
creating config.h
make[1]: Entering directory `/tmp/ps2dev/binutils-2.14/build-ee/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/regex.c -o regex.o
../../libiberty/regex.c:132: warning: conflicting types for built-in function 'm
alloc'
In file included from ../../libiberty/../include/xregex.h:26,
from ../../libiberty/regex.c:195:
../../libiberty/../include/xregex2.h:548: warning: ISO C90 does not support `sta
tic' or type qualifiers in parameter array declarators
In file included from ../../libiberty/regex.c:649:
../../libiberty/regex.c: In function `byte_regex_compile':
../../libiberty/regex.c:2473: warning: implicit declaration of function `free'
../../libiberty/regex.c: In function `byte_compile_range':
../../libiberty/regex.c:4548: warning: signed and unsigned type in conditional e
xpression
../../libiberty/regex.c:4558: warning: signed and unsigned type in conditional e
xpression
../../libiberty/regex.c:4558: warning: signed and unsigned type in conditional e
xpression
../../libiberty/regex.c: In function `byte_re_compile_fastmap':
../../libiberty/regex.c:4898: warning: implicit declaration of function `abort'
../../libiberty/regex.c: In function `xregcomp':
../../libiberty/regex.c:8043: warning: signed and unsigned type in conditional e
xpression
../../libiberty/regex.c: At top level:
../../libiberty/regex.c:8178: warning: unused parameter 'preg'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/cplus-dem.c -o cplus-dem.o
../../libiberty/cplus-dem.c:55: warning: conflicting types for built-in function
'malloc'
../../libiberty/cplus-dem.c: In function `code_for_qualifier':
../../libiberty/cplus-dem.c:630: warning: implicit declaration of function `abor
t'
../../libiberty/cplus-dem.c: In function `squangle_mop_up':
../../libiberty/cplus-dem.c:1154: warning: implicit declaration of function `fre
e'
../../libiberty/cplus-dem.c: In function `demangle_qualified':
../../libiberty/cplus-dem.c:3291: warning: implicit declaration of function `ato
i'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/cp-demangle.c -o pic/cp-demangle.o;
\
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/cp-demangle.c -o cp-demangle.o
../../libiberty/cp-demangle.c: In function `string_list_new':
../../libiberty/cp-demangle.c:420: warning: implicit declaration of function `ma
lloc'
../../libiberty/cp-demangle.c: In function `substitution_add':
../../libiberty/cp-demangle.c:591: warning: implicit declaration of function `re
alloc'
../../libiberty/cp-demangle.c: In function `template_arg_list_delete':
../../libiberty/cp-demangle.c:690: warning: implicit declaration of function `fr
ee'
../../libiberty/cp-demangle.c: In function `demangle_char':
../../libiberty/cp-demangle.c:977: warning: implicit declaration of function `st
rdup'
../../libiberty/cp-demangle.c: In function `demangle_number':
../../libiberty/cp-demangle.c:1399: warning: implicit declaration of function `s
trtol'
../../libiberty/cp-demangle.c: In function `demangle_identifier':
../../libiberty/cp-demangle.c:1519: warning: implicit declaration of function `s
trlen'
../../libiberty/cp-demangle.c:1522: warning: implicit declaration of function `s
trncmp'
../../libiberty/cp-demangle.c: In function `cplus_demangle_v3':
../../libiberty/cp-demangle.c:3800: warning: implicit declaration of function `a
bort'
../../libiberty/cp-demangle.c: In function `java_demangle_v3':
../../libiberty/cp-demangle.c:3862: warning: implicit declaration of function `s
trstr'
../../libiberty/cp-demangle.c:3865: warning: implicit declaration of function `s
trchr'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/md5.c -o pic/md5.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/md5.c -o md5.o
../../libiberty/md5.c: In function `md5_finish_ctx':
../../libiberty/md5.c:115: warning: implicit declaration of function `bcopy'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/alloca.c -o pic/alloca.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/alloca.c -o alloca.o
../../libiberty/alloca.c: In function `C_alloca':
../../libiberty/alloca.c:179: warning: implicit declaration of function `free'
../../libiberty/alloca.c:199: warning: implicit declaration of function `abort'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/argv.c -o pic/argv.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/argv.c -o argv.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/choose-temp.c -o pic/choose-temp.o;
\
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/choose-temp.c -o choose-temp.o
../../libiberty/choose-temp.c: In function `choose_temp_base':
../../libiberty/choose-temp.c:63: warning: implicit declaration of function `str
len'
../../libiberty/choose-temp.c:65: warning: implicit declaration of function `str
cpy'
../../libiberty/choose-temp.c:68: warning: implicit declaration of function `mkt
emp'
../../libiberty/choose-temp.c:70: warning: implicit declaration of function `abo
rt'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/concat.c -o pic/concat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/concat.c -o concat.o
../../libiberty/concat.c: In function `vconcat_length':
../../libiberty/concat.c:82: warning: implicit declaration of function `strlen'
../../libiberty/concat.c: In function `vconcat_copy':
../../libiberty/concat.c:100: warning: implicit declaration of function `memcpy'
../../libiberty/concat.c: In function `concat_length':
../../libiberty/concat.c:112: warning: traditional C rejects ISO C style functio
n definitions
../../libiberty/concat.c: In function `concat_copy':
../../libiberty/concat.c:127: warning: traditional C rejects ISO C style functio
n definitions
../../libiberty/concat.c: In function `concat_copy2':
../../libiberty/concat.c:146: warning: traditional C rejects ISO C style functio
n definitions
../../libiberty/concat.c: In function `concat':
../../libiberty/concat.c:157: warning: traditional C rejects ISO C style functio
n definitions
../../libiberty/concat.c: In function `reconcat':
../../libiberty/concat.c:194: warning: traditional C rejects ISO C style functio
n definitions
../../libiberty/concat.c:210: warning: implicit declaration of function `free'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/dyn-string.c -o pic/dyn-string.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/dyn-string.c -o dyn-string.o
../../libiberty/dyn-string.c: In function `dyn_string_delete':
../../libiberty/dyn-string.c:123: warning: implicit declaration of function `fre
e'
../../libiberty/dyn-string.c: In function `dyn_string_copy':
../../libiberty/dyn-string.c:206: warning: implicit declaration of function `abo
rt'
../../libiberty/dyn-string.c:212: warning: implicit declaration of function `str
cpy'
../../libiberty/dyn-string.c: In function `dyn_string_copy_cstr':
../../libiberty/dyn-string.c:227: warning: implicit declaration of function `str
len'
../../libiberty/dyn-string.c: In function `dyn_string_insert':
../../libiberty/dyn-string.c:285: warning: implicit declaration of function `str
ncpy'
../../libiberty/dyn-string.c: In function `dyn_string_eq':
../../libiberty/dyn-string.c:441: warning: implicit declaration of function `str
cmp'
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/fdmatch.c -o pic/fdmatch.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/fdmatch.c -o fdmatch.o
if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wa
ll -Wtraditional -pedantic ../../libiberty/fibheap.c -o pic/fibheap.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtradi
tional -pedantic ../../libiberty/fibheap.c -o fibheap.o
../../libiberty/fibheap.c: In function `fibheap_union':
../../libiberty/fibheap.c:166: warning: implicit declaration of function `free'
../../libiberty/fibheap.c: In function `fibheap_delete_node':
../../libiberty/fibheap.c:285: error: `LONG_MIN' undeclared (first use in this f
unction)
../../libiberty/fibheap.c:285: error: (Each undeclared identifier is reported on
ly once
../../libiberty/fibheap.c:285: error: for each function it appears in.)
../../libiberty/fibheap.c: In function `fibheap_consolidate':
../../libiberty/fibheap.c:395: warning: implicit declaration of function `memset
'
make[1]: *** [fibheap.o] Error 1
make[1]: Leaving directory `/tmp/ps2dev/binutils-2.14/build-ee/libiberty'
make: *** [all-libiberty] Error 2
ERROR BUILDING BINUTILS (binutils-2.14 ee)
i always stop there :( what should i do?!
HELP
Happens because configure doesn't find sys/types.h
I had a similar error running the toolchain build, though for me it is in the build step for gcc-4.0.2/build-psp-c++/psp/libiberty/regex.c
Sleuthing into it, I found that config.log showed that configure doesn't find sys/types.h, and later (consequently) configure doesn't find the typedef int pid_t; line in sys/types.h
So it generates in config.h a
#define pid_t int
When the preprocessor encounters the typedef int pid_t; line in /usr/local/pspdev/psp/include/sys/types.h
the two effects combine, producing a line
typedef int int;
in the preprocessor output.
I'm working now on sleuthing why configure doesn't find sys/types.h
Sleuthing into it, I found that config.log showed that configure doesn't find sys/types.h, and later (consequently) configure doesn't find the typedef int pid_t; line in sys/types.h
So it generates in config.h a
#define pid_t int
When the preprocessor encounters the typedef int pid_t; line in /usr/local/pspdev/psp/include/sys/types.h
the two effects combine, producing a line
typedef int int;
in the preprocessor output.
I'm working now on sleuthing why configure doesn't find sys/types.h
A reason why configure might not find sys/types.h
The Post at
http://forums.ps2dev.org/viewtopic.php?p=48856#48856
explains why configure couldn't find sys/types.h
Pathological versions of these files are configured:
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.cache
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.status
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.h
and
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.log
if the GCC (C++) make is run before the INSTALL PSPSDK HEADERS section executes.
Repeatedly trying
../toolchain.sp -gcc
will regenerate pathological
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.cache
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.status
and
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.log
files with updated timestamps, but
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.h
is unchanged.
Once the pathological
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.cache
and/or
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.h
exists, then even after the INSTALL PSPSDK HEADERS section executes,
there aren't sufficient dependencies to convince configure to revisit its
assumptions.
../toolchain.sp -gcc
will continue to fail, in output ending with these errors:
if [ x"" != x ]; then \
/tmp/pspdev/gcc-4.0.2/build-psp-c++/gcc/xgcc -B/tmp/pspdev/gcc-4.0.2/build-psp-c++/gcc/ -B/usr/local/pspdev/psp/bin/ -B/usr/local/pspdev/psp/lib/ -isystem /usr/local/pspdev/psp/include -isystem /usr/local/pspdev/psp/sys-include -c -DHAVE_CONFIG_H -G0 -I. -I../../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../../libiberty/regex.c -o pic/regex.o; \
else true; fi
/tmp/pspdev/gcc-4.0.2/build-psp-c++/gcc/xgcc -B/tmp/pspdev/gcc-4.0.2/build-psp-c
++/gcc/ -B/usr/local/pspdev/psp/bin/ -B/usr/local/pspdev/psp/lib/ -isystem /usr/local/pspdev/psp/include -isystem /usr/local/pspdev/psp/sys-include -c -DHAVE_CONFIG_H -G0 -I. -I../../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../../libiberty/regex.c -o regex.o
In file included from ../../../libiberty/regex.c:57:
/usr/local/pspdev/psp/include/sys/types.h:166: error: two or more data types in declaration specifiers
../../../libiberty/regex.c:136: warning: conflicting types for built-in function 'malloc'
../../../libiberty/regex.c:164:25: error: strings.h: No such file or directory
In file included from ../../../libiberty/../include/xregex.h:26,
from ../../../libiberty/regex.c:199:
../../../libiberty/../include/xregex2.h:548: warning: ISO C90 does not support 'static' or type qualifiers in parameter array declarators
../../../libiberty/regex.c: In function 'init_syntax_once':
../../../libiberty/regex.c:290: warning: implicit declaration of function 'bzero'
../../../libiberty/regex.c:290: warning: incompatible implicit declaration of built-in function 'bzero'
In file included from ../../../libiberty/regex.c:653:
../../../libiberty/regex.c: In function 'byte_regex_compile':
../../../libiberty/regex.c:2477: warning: implicit declaration of function 'free'
../../../libiberty/regex.c:3162: warning: incompatible implicit declaration of built-in function 'bzero'
../../../libiberty/regex.c:3291: warning: implicit declaration of function 'strcmp'
../../../libiberty/regex.c: In function 'byte_compile_range':
../../../libiberty/regex.c:4552: warning: signed and unsigned type in conditional expression
../../../libiberty/regex.c:4562: warning: signed and unsigned type in conditional expression
../../../libiberty/regex.c:4562: warning: signed and unsigned type in conditional expression
../../../libiberty/regex.c: In function 'byte_re_compile_fastmap':
../../../libiberty/regex.c:4649: warning: incompatible implicit declaration of built-in function 'bzero'
../../../libiberty/regex.c:4857: warning: implicit declaration of function 'bcopy'
../../../libiberty/regex.c:4857: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:4902: warning: implicit declaration of function 'abort'
../../../libiberty/regex.c:4902: warning: incompatible implicit declaration of built-in function 'abort'
../../../libiberty/regex.c: In function 'byte_re_match_2_internal':
../../../libiberty/regex.c:6846: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:6911: warning: implicit declaration of function 'bcmp'
../../../libiberty/regex.c:7000: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:7057: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:7286: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:7299: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:7520: warning: incompatible implicit declaration of built-in function 'abort'
../../../libiberty/regex.c: In function 'xre_comp':
../../../libiberty/regex.c:7953: warning: implicit declaration of function 'strlen'
../../../libiberty/regex.c:7953: warning: incompatible implicit declaration of built-in function 'strlen'
../../../libiberty/regex.c: In function 'xre_exec':
../../../libiberty/regex.c:7970: warning: incompatible implicit declaration of built-in function 'strlen'
../../../libiberty/regex.c: In function 'xregcomp':
../../../libiberty/regex.c:8072: warning: incompatible implicit declaration of built-in function 'strlen'
../../../libiberty/regex.c: In function 'xregexec':
../../../libiberty/regex.c:8123: warning: incompatible implicit declaration of built-in function 'strlen'
../../../libiberty/regex.c: In function 'xregerror':
../../../libiberty/regex.c:8196: warning: incompatible implicit declaration of built-in function 'abort'
../../../libiberty/regex.c:8200: warning: incompatible implicit declaration of built-in function 'strlen'
../../../libiberty/regex.c:8207: warning: implicit declaration of function 'mempcpy'
../../../libiberty/regex.c:8207: warning: incompatible implicit declaration of built-in function 'mempcpy'
../../../libiberty/regex.c:8214: warning: incompatible implicit declaration of built-in function 'bcopy'
make[1]: *** [regex.o] Error 1
make[1]: Leaving directory `/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty'
make: *** [all-target-libiberty] Error 2
ERROR BUILDING GCC (C++)
until the pathological build-psp-c++ is removed with
rm -r /tmp/pspdev/gcc-4.0.2/build-psp-c++
http://forums.ps2dev.org/viewtopic.php?p=48856#48856
explains why configure couldn't find sys/types.h
Pathological versions of these files are configured:
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.cache
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.status
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.h
and
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.log
if the GCC (C++) make is run before the INSTALL PSPSDK HEADERS section executes.
Repeatedly trying
../toolchain.sp -gcc
will regenerate pathological
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.cache
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.status
and
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.log
files with updated timestamps, but
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.h
is unchanged.
Once the pathological
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.cache
and/or
/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty/config.h
exists, then even after the INSTALL PSPSDK HEADERS section executes,
there aren't sufficient dependencies to convince configure to revisit its
assumptions.
../toolchain.sp -gcc
will continue to fail, in output ending with these errors:
if [ x"" != x ]; then \
/tmp/pspdev/gcc-4.0.2/build-psp-c++/gcc/xgcc -B/tmp/pspdev/gcc-4.0.2/build-psp-c++/gcc/ -B/usr/local/pspdev/psp/bin/ -B/usr/local/pspdev/psp/lib/ -isystem /usr/local/pspdev/psp/include -isystem /usr/local/pspdev/psp/sys-include -c -DHAVE_CONFIG_H -G0 -I. -I../../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../../libiberty/regex.c -o pic/regex.o; \
else true; fi
/tmp/pspdev/gcc-4.0.2/build-psp-c++/gcc/xgcc -B/tmp/pspdev/gcc-4.0.2/build-psp-c
++/gcc/ -B/usr/local/pspdev/psp/bin/ -B/usr/local/pspdev/psp/lib/ -isystem /usr/local/pspdev/psp/include -isystem /usr/local/pspdev/psp/sys-include -c -DHAVE_CONFIG_H -G0 -I. -I../../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../../libiberty/regex.c -o regex.o
In file included from ../../../libiberty/regex.c:57:
/usr/local/pspdev/psp/include/sys/types.h:166: error: two or more data types in declaration specifiers
../../../libiberty/regex.c:136: warning: conflicting types for built-in function 'malloc'
../../../libiberty/regex.c:164:25: error: strings.h: No such file or directory
In file included from ../../../libiberty/../include/xregex.h:26,
from ../../../libiberty/regex.c:199:
../../../libiberty/../include/xregex2.h:548: warning: ISO C90 does not support 'static' or type qualifiers in parameter array declarators
../../../libiberty/regex.c: In function 'init_syntax_once':
../../../libiberty/regex.c:290: warning: implicit declaration of function 'bzero'
../../../libiberty/regex.c:290: warning: incompatible implicit declaration of built-in function 'bzero'
In file included from ../../../libiberty/regex.c:653:
../../../libiberty/regex.c: In function 'byte_regex_compile':
../../../libiberty/regex.c:2477: warning: implicit declaration of function 'free'
../../../libiberty/regex.c:3162: warning: incompatible implicit declaration of built-in function 'bzero'
../../../libiberty/regex.c:3291: warning: implicit declaration of function 'strcmp'
../../../libiberty/regex.c: In function 'byte_compile_range':
../../../libiberty/regex.c:4552: warning: signed and unsigned type in conditional expression
../../../libiberty/regex.c:4562: warning: signed and unsigned type in conditional expression
../../../libiberty/regex.c:4562: warning: signed and unsigned type in conditional expression
../../../libiberty/regex.c: In function 'byte_re_compile_fastmap':
../../../libiberty/regex.c:4649: warning: incompatible implicit declaration of built-in function 'bzero'
../../../libiberty/regex.c:4857: warning: implicit declaration of function 'bcopy'
../../../libiberty/regex.c:4857: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:4902: warning: implicit declaration of function 'abort'
../../../libiberty/regex.c:4902: warning: incompatible implicit declaration of built-in function 'abort'
../../../libiberty/regex.c: In function 'byte_re_match_2_internal':
../../../libiberty/regex.c:6846: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:6911: warning: implicit declaration of function 'bcmp'
../../../libiberty/regex.c:7000: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:7057: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:7286: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:7299: warning: incompatible implicit declaration of built-in function 'bcopy'
../../../libiberty/regex.c:7520: warning: incompatible implicit declaration of built-in function 'abort'
../../../libiberty/regex.c: In function 'xre_comp':
../../../libiberty/regex.c:7953: warning: implicit declaration of function 'strlen'
../../../libiberty/regex.c:7953: warning: incompatible implicit declaration of built-in function 'strlen'
../../../libiberty/regex.c: In function 'xre_exec':
../../../libiberty/regex.c:7970: warning: incompatible implicit declaration of built-in function 'strlen'
../../../libiberty/regex.c: In function 'xregcomp':
../../../libiberty/regex.c:8072: warning: incompatible implicit declaration of built-in function 'strlen'
../../../libiberty/regex.c: In function 'xregexec':
../../../libiberty/regex.c:8123: warning: incompatible implicit declaration of built-in function 'strlen'
../../../libiberty/regex.c: In function 'xregerror':
../../../libiberty/regex.c:8196: warning: incompatible implicit declaration of built-in function 'abort'
../../../libiberty/regex.c:8200: warning: incompatible implicit declaration of built-in function 'strlen'
../../../libiberty/regex.c:8207: warning: implicit declaration of function 'mempcpy'
../../../libiberty/regex.c:8207: warning: incompatible implicit declaration of built-in function 'mempcpy'
../../../libiberty/regex.c:8214: warning: incompatible implicit declaration of built-in function 'bcopy'
make[1]: *** [regex.o] Error 1
make[1]: Leaving directory `/tmp/pspdev/gcc-4.0.2/build-psp-c++/psp/libiberty'
make: *** [all-target-libiberty] Error 2
ERROR BUILDING GCC (C++)
until the pathological build-psp-c++ is removed with
rm -r /tmp/pspdev/gcc-4.0.2/build-psp-c++