Kernel compile errors.
I am having the hardest time compiling kernel 2.4.20 with the latest ia64 patches from kernel.org
I am using gcc-3.2.2 with binutils 2.13, I have set my path to point to both of these directories direct. I have also specified in the kernel Makefile to point to these paths directly.
When I do a compile of the kernel by doing make dep, make vmlinux
I get the following errors when it gets to the smp.c file
gcc3 -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -g -fomit-frame-pointer -pipe -ffixed-r13 -mfixed-rangeñ0-f15,f32-f127 -falign-functions2 -frename-registers --param max-inline-insnsP00 -mconstant-gp -nostdinc -iwithprefix include -DKBUILD_BASENAME=smp -c -o smp.o smp.c
{standard input}: Assembler messages:
{standard input}:864: Warning: Use of 'mov' may violate WAW dependency 'RR#' (impliedf)
{standard input}:864: Warning: Only the first path encountering the conflict is reported
{standard input}:863: Warning: This is the location of the conflicting usage
{standard input}:864: Warning: Use of 'mov' may violate WAW dependency 'RR#' (impliedf)
{standard input}:864: Warning: Only the first path encountering the conflict is reported
{standard input}:863: Warning: This is the location of the conflicting usage
{standard input}:864: Warning: Use of 'mov' may violate WAW dependency 'RR#' (impliedf)
{standard input}:864: Warning: Only the first path encountering the conflict is reported
{standard input}:863: Warning: This is the location of the conflicting usage
Then I get the following.
gcc3 -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -g -fomit-frame-pointer -pipe -ffixed-r13 -mfixed-rangeñ0-f15,f32-f127 -falign-functions2 -frename-registers --param max-inline-insnsP00 -mconstant-gp -nostdinc -iwithprefix include -DKBUILD_BASENAME=smpboot -c -o smpboot.o smpboot.c smpboot.c:92: conflicting types for smp_threads_ready' /usr/src/linux-2.4.20/include/linux/smp.h:51: previous declaration of smp_threads_ready'
make[1]: *** [smpboot.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20/arch/ia64/kernel'
make: *** [_dir_arch/ia64/kernel] Error 2
Any help would be appreciated.
I have noticed that when I compile using gcc-2.96 with binutil-2.13 it works great.
Thanks for any help.
-Brent
Quoted 3 lines · Brent Clements
smpboot.c:92: conflicting types for
smp_threads_ready' /usr/src/linux-2.4.20/include/linux/smp.h:51: previous declaration ofsmp_threads_ready'
This was discussed a while back.
IIRC, delete the "volatile" from the declaration in smpboot.c
grant