2782|1

65

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

编译内核遇到的问题100分全部家当了 [复制链接]

linux-2.6.23的核
make menuconfig  设置全为默认设置没有修改、
make 屏幕输出如下
##################################################################
/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 ################################################################## 当用系统环境编译时能通过!在MAKEFILE里修改为自定义的环境时却不行!环境设置没有问题!可能是缺少某些东西!但是到底缺少啥我也不知道,GOOGLE查到的全是国外的回答而且很不准确!所以请教国内高手!!  详情 回复 发表于 2007-12-6 15:36
点赞 关注

回复
举报

75

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
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

##################################################################
当用系统环境编译时能通过!在MAKEFILE里修改为自定义的环境时却不行!环境设置没有问题!可能是缺少某些东西!但是到底缺少啥我也不知道,GOOGLE查到的全是国外的回答而且很不准确!所以请教国内高手!!
 
 

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

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/10 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表