[opensuse-kernel] openSUSE 12.2 kernel build failure.

Hi All, This is a re-post from a post I did on opensuse@opensuse.org, as it may be more appropriate here. New to opensuse, I try to build the newly installed machine with its current kernel version. I'd like to build the kernel from the source we got with the regular distro, I will do git extraction and build later. For now I need to build the kernel rpms (i.e kernel + debuginfo for kernel/modules). So far I can't build the standard kernel. Again I am new to this and my build process may be flawed, then any help would be appreciated. Here is the trail of events. 1) fresh 12.2 install CY44$ /usr/bin/lsb-release -a LSB Version: n/a Distributor ID: SUSE LINUX Description: openSUSE 12.2 (x86_64) Release: 12.2 Codename: Mantis 2) Download 2 metapackages patterns-openSUSE-dev-basis patterns-openSUSE-devel-kernel 3) Downloaded kernel source thought may be they was there after the initial install. 4) make source suitable for non root compile. CY44$ cd /usr/src/linux CY44$ sudo chown -R phi . 5) Clone initial config and patch CONFIG_LOCAL_VERSION CY44$ make cloneconfig CY44$ vi .config # set CONFIG_LOCALVERSION="-2.16-phi" 6) Kernel build CY44$ make 7) Build RPM CY44$ make rpm-pkg make clean set -e; cd -P ..; ln -sf /usr/src/linux-3.4.11-2.16 kernel-3.4.11_2.16_phi /bin/sh /usr/src/linux-3.4.11-2.16/scripts/setlocalversion --save-scmversion set -e; cd -P ..; tar -cz --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS --exclude .pc --exclude .hg --exclude .git -f kernel-3.4.11_2.16_phi.tar.gz kernel-3.4.11_2.16_phi/. set -e; cd -P ..; rm kernel-3.4.11_2.16_phi rm -f /usr/src/linux-3.4.11-2.16/.scmversion set -e; \ /bin/sh /usr/src/linux-3.4.11-2.16/scripts/mkversion > /usr/src/linux-3.4.11-2.16/.tmp_version set -e; \ mv -f /usr/src/linux-3.4.11-2.16/.tmp_version /usr/src/linux-3.4.11-2.16/.version rpm --target x86_64 -ta ../kernel-3.4.11_2.16_phi.tar.gz rpm: --target: unknown option make[1]: *** [rpm-pkg] Error 1 make: *** [rpm-pkg] Error 2 make rpm give the same results as make rpm-pkg Any ideas? Cheers, Phi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

On Sun, Dec 30, 2012 at 08:58:57PM +0100, phi gcc wrote:
Hi All,
This is a re-post from a post I did on opensuse@opensuse.org, as it may be more appropriate here.
New to opensuse, I try to build the newly installed machine with its current kernel version. I'd like to build the kernel from the source we got with the regular distro, I will do git extraction and build later. For now I need to build the kernel rpms (i.e kernel + debuginfo for kernel/modules). So far I can't build the standard kernel. Again I am new to this and my build process may be flawed, then any help would be appreciated.
Here is the trail of events.
1) fresh 12.2 install CY44$ /usr/bin/lsb-release -a LSB Version: n/a Distributor ID: SUSE LINUX Description: openSUSE 12.2 (x86_64) Release: 12.2 Codename: Mantis
2) Download 2 metapackages patterns-openSUSE-dev-basis patterns-openSUSE-devel-kernel
3) Downloaded kernel source thought may be they was there after the initial install.
4) make source suitable for non root compile. CY44$ cd /usr/src/linux CY44$ sudo chown -R phi .
5) Clone initial config and patch CONFIG_LOCAL_VERSION CY44$ make cloneconfig CY44$ vi .config # set CONFIG_LOCALVERSION="-2.16-phi"
6) Kernel build CY44$ make
7) Build RPM CY44$ make rpm-pkg
I don't think this command, or 'make rpm' really works properly. Just do a 'make install' at this point and then you will be able to run the kernel you just built. If you want to build a kernel package, then you need to rebuild the kernel-source package in the way that the build service does, which is by running rpm, not by building by hand like you are doing here. Hope this helps, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

Hi Greg's Thank you for your replies... On Mon, Dec 31, 2012 at 7:37 AM, Greg KH <gregkh@linux.com>
I don't think this command, or 'make rpm' really works properly. Just do a 'make install' at this point and then you will be able to run the kernel you just built.
If you want to build a kernel package, then you need to rebuild the kernel-source package in the way that the build service does, which is by running rpm, not by building by hand like you are doing here.
Hope this helps,
greg k-h
I will use both technics, make and osc.. Great seasons to you all. Cheers, Phi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (2)
-
Greg KH
-
phi gcc