On 5 Feb 2005, at 19:23, ShashankBhide wrote:
Paul Howarth wrote:+ for i in '*.config'
1. The build process failed at prep when I tried to build the binaries. rpmbuild -bb --target=i686 ~/rpmbuild/SPECS/kernel-2.*.spec .
\+ cat .config
+ mv kernel-2.6.10-i686.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=
+ make ARCH= nonint_oldconfig
Makefile:448: /home/shashank/rpmbuild/BUILD/kernel-2.6.10/linux-2.6.10/arch// Makefile: No such file or directory
make: *** No rule to make target `/home/shashank/rpmbuild/BUILD/kernel-2.6.10/linux-2.6.10/arch// Makefile'. Stop.
error: Bad exit status from /var/tmp/rpm-tmp.83269 (%prep)
Don't know why, but rpmbuild is leaving ARCH undefined. Thus, the build process doesn't know which architecture the kernel is being built for.
Try invoking rpmbuild without the --target=i686 parameter.