[CentOS] recompiling kernel for centos 4.2 x86_64

Fri Jan 13 23:06:02 UTC 2006
Fong Vang <sudoyang at gmail.com>

Is it possible compile an a new x86_64 kernel on an i686 CentOS
system?  When I tried to do so with this command

rpmbuild -ba --target x86_64 kernel-2.6.spec

I got the following error:

make[1]: *** [nonint_oldconfig] Error 51
make: *** [nonint_oldconfig] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.40130 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.40130 (%build)



Isn't gcc able to do cross compile?