Good day, anyone managed to compile an SMP kernel on an IBM RS6000 machine? Distribution lists 'default' kernel only. Tried to compile a kernel myself by installing kernel source and 'kernel-smp-nonsrc' package (found at rpm.pbone.net) but got an error: [quote] f50:/usr/src/packages/SPECS # rpmbuild -bb ./kernel-smp.spec error: Architecture is not included: ppc [unquote] Guess I overlooked something pretty simple; this is my first experience with SuSE, used only Red Hat/Fedora Core before (had no issues with SMP on this 7025-F50 machine - worked out of the box). Regards AlexB
On Mon, Jun 05, AlexB wrote:
[quote] f50:/usr/src/packages/SPECS # rpmbuild -bb ./kernel-smp.spec error: Architecture is not included: ppc [unquote]
There is no specific smp .config file. Just use the defconfig.default, enable smp, add ppc to the Exclusivearch line in the specfile.
OH> On Mon, Jun 05, AlexB wrote:
[quote] f50:/usr/src/packages/SPECS # rpmbuild -bb ./kernel-smp.spec error: Architecture is not included: ppc [unquote]
OH> There is no specific smp .config file. Just use the defconfig.default, OH> enable smp, add ppc to the Exclusivearch line in the specfile. Seems that rpmbuild cannot do a proper build specifically for kernel package on SuSE system (I tried to build iperf from source RPM and everything went fine). It did not find 'stock' kernel archive, so I made one from /usr/src/linux and copied it to /usr/src/packages/SOURCES. Then there was config archive missing mentioned in spec file (I created one manually and copied to SOURCES too), patches and so on: [quote] f50:/usr/src/packages/SPECS # rpmbuild -bb ./kernel-smp.spec error: File /usr/src/packages/SOURCES/patches.arch.tar.bz2: No such file or directory [unquote] To me it seems that kernel build on SuSE system is quite different from, say, Fedora Core; kernel source tree is being unTAR-ed during RPM install of source package, then all patches applied, and rpmbuild expects something else. Any other advice? Possibly there is a procedure to build/install kernel manually, at the same time having system consistent (I mean - kernel installed properly through RPM and dependencies/provisions met) Regards Alex
On Tue, Jun 06, AlexB wrote:
OH> On Mon, Jun 05, AlexB wrote:
[quote] f50:/usr/src/packages/SPECS # rpmbuild -bb ./kernel-smp.spec error: Architecture is not included: ppc [unquote]
OH> There is no specific smp .config file. Just use the defconfig.default, OH> enable smp, add ppc to the Exclusivearch line in the specfile.
Seems that rpmbuild cannot do a proper build specifically for kernel package on SuSE system (I tried to build iperf from source RPM and everything went fine). It did not find 'stock' kernel archive, so I made one from /usr/src/linux and copied it to /usr/src/packages/SOURCES. Then there was config archive missing mentioned in spec file (I created one manually and copied to SOURCES too), patches and so on:
[quote] f50:/usr/src/packages/SPECS # rpmbuild -bb ./kernel-smp.spec error: File /usr/src/packages/SOURCES/patches.arch.tar.bz2: No such file or directory [unquote]
If you build the rpm in the running system, install kernel-source.src.rpm as well, it contains the patches.
participants (2)
-
AlexB
-
Olaf Hering