LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2012|回复: 2

编译内核遇到的问题~

[复制链接]
发表于 2007-12-10 14:50:32 | 显示全部楼层 |阅读模式
In file included from /usr/src/linux-2.6.23/include/asm/atomic.h:5,
                 from /usr/src/linux-2.6.23/include/linux/crypto.h:20,
                 from arch/i386/kernel/asm-offsets.c:7:
/usr/src/linux-2.6.23/include/asm/processor.h:83: error: 'CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux-2.6.23/include/asm/processor.h:83: error: requested alignment is not a constant
In file included from /usr/src/linux-2.6.23/include/linux/slab_def.h:44,
                 from /usr/src/linux-2.6.23/include/linux/slab.h:120,
                 from /usr/src/linux-2.6.23/include/linux/percpu.h:5,
                 from /usr/src/linux-2.6.23/include/asm/desc.h:11,
                 from /usr/src/linux-2.6.23/include/asm/elf.h:50,
                 from /usr/src/linux-2.6.23/include/linux/elf.h:7,
                 from /usr/src/linux-2.6.23/include/linux/module.h:14,
                 from /usr/src/linux-2.6.23/include/linux/crypto.h:21,
                 from arch/i386/kernel/asm-offsets.c:7:
/usr/src/linux-2.6.23/include/linux/kmalloc_sizes.h:5:5: warning: "CONFIG_X86_L1_CACHE_SHIFT" is not defined
/usr/src/linux-2.6.23/include/linux/kmalloc_sizes.h:9:5: warning: "CONFIG_X86_L1_CACHE_SHIFT" is not defined
In file included from /usr/src/linux-2.6.23/include/linux/module.h:20,
                 from /usr/src/linux-2.6.23/include/linux/crypto.h:21,
                 from arch/i386/kernel/asm-offsets.c:7:
/usr/src/linux-2.6.23/include/asm/module.h:64:2: error: #error unknown processor family
In file included from /usr/src/linux-2.6.23/include/linux/sched.h:54,
                 from arch/i386/kernel/asm-offsets.c:8:
/usr/src/linux-2.6.23/include/linux/jiffies.h:18:5: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:20:7: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:22:7: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:24:7: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:26:7: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:28:7: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:30:7: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:33:3: error: #error You lose.
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: warning: "CONFIG_HZ" is not defined
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:31: error: division by zero in #if
/usr/src/linux-2.6.23/include/linux/jiffies.h:225:46: warning: "SHIFT_HZ" is not defined
In file included from arch/i386/kernel/asm-offsets.c:8:
/usr/src/linux-2.6.23/include/linux/sched.h:310:16: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined
In file included from arch/i386/kernel/asm-offsets.c:8:
/usr/src/linux-2.6.23/include/linux/sched.h: In function 'dequeue_signal_lock':
/usr/src/linux-2.6.23/include/linux/sched.h:1508: error: implicit declaration of function 'local_irq_save'
/usr/src/linux-2.6.23/include/linux/sched.h:1510: error: implicit declaration of function 'local_irq_restore'
In file included from /usr/src/linux-2.6.23/include/linux/mm.h:16,
                 from /usr/src/linux-2.6.23/include/linux/suspend.h:11,
                 from arch/i386/kernel/asm-offsets.c:11:
/usr/src/linux-2.6.23/include/linux/mm_types.h:49:16: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined
In file included from /usr/src/linux-2.6.23/include/linux/suspend.h:11,
                 from arch/i386/kernel/asm-offsets.c:11:
/usr/src/linux-2.6.23/include/linux/mm.h: In function 'virt_to_head_page':
/usr/src/linux-2.6.23/include/linux/mm.h:318: error: implicit declaration of function '__pfn_to_page'
/usr/src/linux-2.6.23/include/linux/mm.h:318: error: 'CONFIG_PAGE_OFFSET' undeclared (first use in this function)
/usr/src/linux-2.6.23/include/linux/mm.h:318: error: (Each undeclared identifier is reported only once
/usr/src/linux-2.6.23/include/linux/mm.h:318: error: for each function it appears in.)
/usr/src/linux-2.6.23/include/linux/mm.h:318: warning: initialization makes pointer from integer without a cast
In file included from /usr/src/linux-2.6.23/include/linux/suspend.h:11,
                 from arch/i386/kernel/asm-offsets.c:11:
/usr/src/linux-2.6.23/include/linux/mm.h: In function 'lowmem_page_address':
/usr/src/linux-2.6.23/include/linux/mm.h:587: error: implicit declaration of function '__page_to_pfn'
/usr/src/linux-2.6.23/include/linux/mm.h:587: error: 'CONFIG_PAGE_OFFSET' undeclared (first use in this function)
In file included from /usr/src/linux-2.6.23/include/linux/suspend.h:11,
                 from arch/i386/kernel/asm-offsets.c:11:
/usr/src/linux-2.6.23/include/linux/mm.h:910:16: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined
make[1]: *** [arch/i386/kernel/asm-offsets.s] 错误 1
make: *** [prepare0] 错误 2
 楼主| 发表于 2007-12-10 14:52:54 | 显示全部楼层
make menuconfig
默认选项
make
就是这些错误了!~~我看应该是少了某些库文件~~~
但是 不知道如何解决!~~~请教
回复 支持 反对

使用道具 举报

发表于 2007-12-11 03:08:30 | 显示全部楼层
Post by linux_belial;1793849
make menuconfig
默认选项
make
就是这些错误了!~~我看应该是少了某些库文件~~~
但是 不知道如何解决!~~~请教


是在龙芯下编译的吗?
编译内核,最好用发行版提供的源码包,然后在发行版的配置文件的基础上修改一下,进行编译
配置文件 一般可以在/proc/config.gz或者 /boot/config*找到。

龙芯的2.6.23.8的源码包和2进制包在 龙芯用户俱乐部的源上都能找到。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表