Не собирается bash

Делал emerge -uDN world весь процесс остановился на сборке basg.
Потом решил собрать систему с нуля из stage1 процесс встал на том же месте, не собирается ни одна версия bash. В чем может быть проблема, может кто сталкивался. Вот часть лога:
.....

x86_64-pc-linux-gnu-gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/sh -Wl,-rpath,/usr/lib64/bash -rdynamic -march=athlon64 -O2 -pipe -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o braces.o bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins -lsh -lreadline -lhistory -lcurses -lglob -ltilde -ldl
ls -l bash
-rwxr-xr-x 1 root root 906960 2008-02-12 17:14 bash
x86_64-pc-linux-gnu-size bash
text data bss dec hex filename
731257 37540 22120 790917 c1185 bash
make: Entering directory `/var/tmp/portage/app-shells/bash-3.2_p33/work/bash-3.2/examples/loadables'
x86_64-pc-linux-gnu-gcc -fPIC -DHAVE_CONFIG_H -DSHELL -march=athlon64 -O2 -pipe -I. -I.. -I../.. -I../../lib -I../../builtins -I../../include -I/var/tmp/portage/app-shells/bash-3.2_p33/work/bash-3.2 -I/var/tmp/portage/app-shells/bash-3.2_p33/work/bash-3.2/lib -I/var/tmp/portage/app-shells/bash-3.2_p33/work/bash-3.2/builtins -c -o print.o print.c
x86_64-pc-linux-gnu-gcc -fPIC -DHAVE_CONFIG_H -DSHELL -march=athlon64 -O2 -pipe -I. -I.. -I../.. -I../../lib -I../../builtins -I../../include -I/var/tmp/portage/app-shells/bash-3.2_p33/work/bash-3.2 -I/var/tmp/portage/app-shells/bash-3.2_p33/work/bash-3.2/lib -I/var/tmp/portage/app-shells/bash-3.2_p33/work/bash-3.2/builtins -c -o truefalse.o truefalse.c
In file included from ../../shell.h:29,
from truefalse.c:4:
../../general.h:284: error: expected declaration specifiers or ‘...’ before ‘intmax_t’
In file included from ../../variables.h:25,
from ../../shell.h:31,
from truefalse.c:4:
../../array.h:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘arrayind_t’
../../array.h:33: error: expected specifier-qualifier-list before ‘arrayind_t’
../../array.h:38: error: expected specifier-qualifier-list before ‘arrayind_t’
../../array.h:60: error: expected declaration specifiers or ‘...’ before ‘arrayind_t’
../../array.h:60: error: expected declaration specifiers or ‘...’ before ‘arrayind_t’
../../array.h:64: error: expected ‘)’ before ‘char’
../../array.h:68: error: expected declaration specifiers or ‘...’ before ‘arrayind_t’
../../array.h:69: error: expected declaration specifiers or ‘...’ before ‘arrayind_t’
../../array.h:70: error: expected declaration specifiers or ‘...’ before ‘arrayind_t’
In file included from ../../shell.h:31,
from truefalse.c:4:
../../variables.h:64: error: expected declaration specifiers or ‘...’ before ‘arrayind_t’
../../variables.h:69: error: expected specifier-qualifier-list before ‘intmax_t’
../../variables.h:257: error: expected declaration specifiers or ‘...’ before ‘intmax_t’
../../variables.h:305: error: expected ‘)’ before ‘char’
In file included from ../../shell.h:32,
from truefalse.c:4:
../../arrayfunc.h:30: error: expected declaration specifiers or ‘...’ before ‘arrayind_t’
../../arrayfunc.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘array_expand_index’
In file included from ../../shell.h:39,
from truefalse.c:4:
../../subst.h:115: error: expected ‘)’ before ‘char’
../../subst.h:175: warning: parameter names (without types) in function declaration
In file included from ../../shell.h:42,
from truefalse.c:4:
../../externs.h:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘evalexp’
../../externs.h:169: error: expected ‘)’ before ‘int’
../../externs.h:177: error: expected ‘)’ before ‘char’
../../externs.h:178: warning: parameter names (without types) in function declaration
../../externs.h:179: error: expected ‘)’ before ‘char’
../../externs.h:180: warning: parameter names (without types) in function declaration
make: *** [truefalse.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/var/tmp/portage/app-shells/bash-3.2_p33/work/bash-3.2/examples/loadables'
*
* ERROR: app-shells/bash-3.2_p33 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2411: Called die
* The specific snippet of code:
* emake -C examples/loadables all others || die;
* The die message:
* (no error message)
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-shells/bash-3.2_p33/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-shells/bash-3.2_p33/temp/environment'.
*

* Messages for package app-shells/bash-3.2_p33:

*
* ERROR: app-shells/bash-3.2_p33 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2411: Called die
* The specific snippet of code:
* emake -C examples/loadables all others || die;
* The die message:
* (no error message)
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-shells/bash-3.2_p33/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-shells/bash-3.2_p33/temp/environment'.