RE: 2.3.47 build barfing on mtrr.c

From: Joseph Cheek (jcheek@linuxcare.com)
Date: Thu Feb 24 2000 - 17:46:16 EST


i've seen this also. it appears to be a mistyped "#ifdef" at the end of the
file.

diff:

1841c1841
< #ifdev CONFIG_DEVFS_FS

---
> #ifdef CONFIG_DEVFS_FS

context diff: [same patch]

*** arch/i386/kernel/mtrr.c.orig Thu Feb 24 14:34:25 2000 --- arch/i386/kernel/mtrr.c Thu Feb 24 14:35:04 2000 *************** *** 1838,1844 **** proc_root_mtrr = create_proc_entry ("mtrr", S_IWUSR | S_IRUGO, &proc_root); proc_root_mtrr->ops = &proc_mtrr_inode_operations; #endif ! #ifdev CONFIG_DEVFS_FS devfs_handle = devfs_register (NULL, "cpu/mtrr", 0, DEVFS_FL_DEFAULT, 0, 0, S_IFREG | S_IRUGO | S_IWUSR, 0, 0, &mtrr_fops, NULL); --- 1838,1844 ---- proc_root_mtrr = create_proc_entry ("mtrr", S_IWUSR | S_IRUGO, &proc_root); proc_root_mtrr->ops = &proc_mtrr_inode_operations; #endif ! #ifdef CONFIG_DEVFS_FS devfs_handle = devfs_register (NULL, "cpu/mtrr", 0, DEVFS_FL_DEFAULT, 0, 0, S_IFREG | S_IRUGO | S_IWUSR, 0, 0, &mtrr_fops, NULL);

thanks!

joe

-- Joseph Cheek, Senior Linux Consultant, LinuxCare NW office 425 990-1072 voice, 425 990-1074 fax, 206 679-6838 cell jcheek@linuxcare.com, http://www.linuxcare.com/ LinuxCare. Support for the Revolution.

-----Original Message----- From: owner-linux-kernel@vger.rutgers.edu [mailto:owner-linux-kernel@vger.rutgers.edu]On Behalf Of Jeff Layton Sent: Thursday, February 24, 2000 10:25 AM To: linux-kernel@vger.rutgers.edu Subject: 2.3.47 build barfing on mtrr.c

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:11 EST