On 01/03/2014 02:13 AM, Tetsuo Handa wrote:
Hello.
I tried to rebuild 3.7.10-1.24.1 but got an error. How did you build it?
# wget http://download.opensuse.org/update/12.3/src/kernel-source-3.7.10-1.24.1.src... http://download.opensuse.org/update/12.3/nosrc/kernel-default-3.7.10-1.24.1.... (...snipped...) # rpm --checksig kernel-source-3.7.10-1.24.1.src.rpm kernel-default-3.7.10-1.24.1.nosrc.rpm kernel-source-3.7.10-1.24.1.src.rpm: rsa sha1 (md5) pgp md5 OK kernel-default-3.7.10-1.24.1.nosrc.rpm: rsa sha1 (md5) pgp md5 OK # rpm -ivh kernel-source-3.7.10-1.24.1.src.rpm kernel-default-3.7.10-1.24.1.nosrc.rpm (...snipped...) # rpmbuild -bp --target i686 /usr/src/packages/SPECS/kernel-default.spec (...snipped...) scripts/kconfig/conf --silentoldconfig Kconfig * * Restart config... * * * RCU Subsystem * RCU Implementation
1. Tree-based hierarchical RCU (TREE_RCU) choice[1]: 1 Consider userspace as in RCU extended quiescent state (RCU_USER_QS) [N/y/?] (NEW) aborted!
Console input/output is redirected. Run 'make oldconfig' to update configuration.
make[2]: *** [silentoldconfig] Error 1 make[1]: *** [silentoldconfig] Error 2 make: *** [sub-make] Error 2 make: Leaving directory `/usr/src/packages/BUILD/kernel-default-3.7.10/linux-3.7' error: Bad exit status from /var/tmp/rpm-tmp.F7WUiP (%prep)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.F7WUiP (%prep)
When you build the kernel under a wrapper such as rpmbuild, you need to take special care that all configuration questions have been answered before you start. Using 'make oldconfig' will take care of that. In your case, you have not created a configuration. If you want to duplicate a running system, you can use 'zcat /proc/config.gz > .config' from the directory that contains the kernel source. At this point, then 'make oldconfig' just to be certain. One other point is that it is not good practice to build the kernel as root. You should either change the ownership if the files in the kernel source, or copy them to your file area. Larry -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org