2.3.47 build barfing on mtrr.c

From: Jeff Layton (jtlayton@hacknslash.net)
Date: Thu Feb 24 2000 - 13:24:32 EST


I saw this come across yesterday, but no resolution. I've been having
problems building the latest dev kernel. I'm running the frozen debian
potato release, and the build seems to have a problem with mtrr.c. Looks
like it may be a problem with improperly nested #if tags:

make -C arch/i386/kernel
make[1]: Entering directory `/usr/src/linux/arch/i386/kernel'
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -DCPU=686 -march=pentiumpro -mpentiumpro
-malign-functions=4 -fschedule-insns2 -mwide-multiply
-fexpensive-optimizations -march=i686 -DEXPORT_SYMTAB -c i386_ksyms.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -DCPU=686 -march=pentiumpro -mpentiumpro
-malign-functions=4 -fschedule-insns2 -mwide-multiply
-fexpensive-optimizations -march=i686 -DEXPORT_SYMTAB -c mtrr.c
mtrr.c:1845: unbalanced `#endif'
mtrr.c: In function `mtrr_init':
mtrr.c:1841: undefined or invalid # directive
make[1]: *** [mtrr.o] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2

I've also included my kernel config. Please let me know if you have
solutions -- I'll be happy to help test them. Also, please let me know if
you need other info about my config. The kernel builds fine if I turn off
MTRR support.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:10 EST