Red Hat Bugzilla – Bug 26713
Cannot recompile kernel from kernel-2.2.16-3.src.rpm
Last modified: 2007-04-18 12:31:21 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
Running Redhat 6.2 with all updates on a PIII 1GHz (single processor).
This is related to bug # 21798 & # 18240. I looked for the linux-2.2.16-
rhconfig.patch, but it does not exist in the -3 src. I also removed
the /boot/kernel.h and linux/configs directory, to no avail.
Any attempt to recompile the kernel from the SRPM or the kernel-source RPM
fails as follows:
make: Entering directory `/usr/src/redhat/BUILD/linux/ibcs/iBCSemul'
kgcc -D__KERNEL__=1 -DMODULE -D__NO_VERSION__ -I../include
-I/usr/src/redhat/BUILD/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -m486 -DSOCKSYS_MAJOR=30 -DEMU_SCO -DEMU_ISC
-DEMU_SVR4 -DEMU_BSD -DEMU_WYSE -DEMU_WYSEMP -DEMU_SPX -DEMU_XTI
-DEMU_TLI_OPTMGMT -DEMU_BINFMT_AOUT -DEMU_BINFMT_COFF -DEMU_BINFMT_XOUT
-DEMU_BINFMT_OLDSCRIPT -DIBCS_TRACE -DVERBOSE_ERRORS -DCOFF_TRACE
-DELF_TRACE -DXOUT_DEBUG -DMODVERSIONS -include
/usr/src/redhat/BUILD/linux/include/linux/modversions.h -D__SMP__=1 -c
/usr/src/redhat/BUILD/linux/include/asm/smp.h: In function
In file included from /usr/src/redhat/BUILD/linux/include/linux/smp.h:11,
/usr/src/redhat/BUILD/linux/include/asm/smp.h:209: warning: implicit
declaration of function `GET_APIC_ID'
/usr/src/redhat/BUILD/linux/include/asm/smp.h:209: `APIC_BASE' undeclared
(first use in this function)
/usr/src/redhat/BUILD/linux/include/asm/smp.h:209: (Each undeclared
identifier is reported only once
/usr/src/redhat/BUILD/linux/include/asm/smp.h:209: for each function it
/usr/src/redhat/BUILD/linux/include/asm/smp.h:209: `APIC_ID' undeclared
(first use in this function)
../include/ibcs/ibcs.h: At top level:
In file included from emulate.c:61:
../include/ibcs/ibcs.h:47: warning: function declaration isn't a prototype
make: *** [emulate.o] Error 1
make: Leaving directory `/usr/src/redhat/BUILD/linux/ibcs/iBCSemul'
Bad exit status from /var/tmp/rpm-tmp.943 (%build)
Steps to Reproduce:
1.rpm -ba kernel-2.2.16.spec or any variation of this (e.g. rpm -bb --
Actual Results: Error in ibcs.h
Expected Results: It should have built the kernel/src rpm packages
Oops, I was copying from another source;
kgcc -D__KERNEL__=1 -DMODULE -D__NO_VERSION__ -I../include should be:
cc -D__KERNEL__=1 -DMODULE -D__NO_VERSION__ -I../include
I tried installing the smp kernel (with my uniprocessor), and booting to it to
I looked at the command that was giving this error:
make -j 1 -C ibcs/iBCSemul KERNEL=/usr/src/redhat/BUILD/linux SMP=yes all
I took the SMP=yes out, and reran the command from BUILD/linux, and it worked.
I then took out the SMP=$1 under the IBCS header in kernel-2.2.16-3.spec, and
it seems to be working. Does anyone know what this does???
I haven't reproduced this with our errata kernel.