Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > gentoo下linux-2.6.14-rc2-mm2编译不通过。。。
【标  题】:gentoo下linux-2.6.14-rc2-mm2编译不通过。。。
【关键字】:gentoo,linux-2.6.14-rc2-mm2
【来  源】:http://blog.chinaunix.net/article.php?articleId=51891&blogId=712

gentoo下linux-2.6.14-rc2-mm2编译不通过。。。

Your Ad Here http://lkml.org/lkml/2005/9/29/295

http://www.usenetlinux.com/showthread.php?t=488214&page=1

# make
CHK include/linux/version.h
CHK include/linux/compile.h
CHK usr/initramfs_list
CC fs/reiser4/debug.o
In file included from fs/reiser4/lock.h:15,
from fs/reiser4/context.h:14,
from fs/reiser4/debug.c:25:
fs/reiser4/txnmgr.h: In function `spin_atom_init':
fs/reiser4/txnmgr.h:512: error: duplicate case value
fs/reiser4/txnmgr.h:512: error: previously used here
fs/reiser4/txnmgr.h: In function `spin_txnh_init':
fs/reiser4/txnmgr.h:513: error: duplicate case value
fs/reiser4/txnmgr.h:513: error: previously used here
fs/reiser4/txnmgr.h: In function `spin_txnmgr_init':
fs/reiser4/txnmgr.h:514: error: duplicate case value
fs/reiser4/txnmgr.h:514: error: previously used here
In file included from fs/reiser4/context.h:14,
from fs/reiser4/debug.c:25:
fs/reiser4/lock.h: In function `spin_stack_init':
fs/reiser4/lock.h:198: error: duplicate case value
fs/reiser4/lock.h:198: error: previously used here
In file included from fs/reiser4/znode.h:16,
from fs/reiser4/tree.h:15,
from fs/reiser4/super.h:9,
from fs/reiser4/debug.c:26:
fs/reiser4/jnode.h: In function `spin_jnode_init':
fs/reiser4/jnode.h:344: error: duplicate case value
fs/reiser4/jnode.h:344: error: previously used here
fs/reiser4/jnode.h: In function `spin_jload_init':
fs/reiser4/jnode.h:348: error: duplicate case value
fs/reiser4/jnode.h:348: error: previously used here
In file included from fs/reiser4/super.h:9,
from fs/reiser4/debug.c:26:
fs/reiser4/tree.h: In function `spin_epoch_init':
fs/reiser4/tree.h:169: error: duplicate case value
fs/reiser4/tree.h:169: error: previously used here
In file included from fs/reiser4/debug.c:26:
fs/reiser4/super.h: In function `spin_super_init':
fs/reiser4/super.h:379: error: duplicate case value
fs/reiser4/super.h:379: error: previously used here
make[2]: *** [fs/reiser4/debug.o] Error 1
make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2


解决方法。。

http://www.linuxsir.org/bbs/showthread.php?t=224491


It seems to appear when CONFIG_SMP=N and CONFIG_DEBUG_SPINLOCK=N and
CONFIG_REISER4_DEBUG=N.

In this case, spinlock_t is an empty struct (see
include/linux/spinlock_types.h and
include/linux/spinlock_types_up.h). Then sizeof(spinlock_t) _is_ 0,
and this breaks some code like cassert calls from
fs/reiser4/spin_macros.h line 85 (FIELD is a spinlock_t) :
82 static inline void spin_ ## NAME ## _init(TYPE *x) \
83 { \
84 __ODCA("nikita-2987", x != NULL); \
85 cassert(sizeof(x->FIELD) != 0); \

86 memset(& x->FIELD, 0, sizeof x->FIELD); \

87 spin_lock_init(& x->FIELD.lock); \

88 } \
89

linux下看碟真是享受:【上一篇】
完全用Linux工作,遗弃Windows:【下一篇】
【相关文章】
  • Gentoo 2005.1 完整的USE参数清单中文详解
  • 安了一个Gentoo
  • GENTOO 安装手记(转)
  • Inst gentoo based on alpha platform
  • Gentoo Linux CD 方式全程图解安装
  • 【随机文章】
  • Director 制作可交互电影《生存空间》(1)
  • 著名的斐波拉契数列的非递归源程序
  • MTV的时候,里面的?景做成一个一个的MC,然后在拖到一个
  • cbs
  • 邮件系统 zimbra初探
  • 加解密(四)
  • 端口扫描技术详解
  • 蜀国军委构成及授衔表
  • Windows系统切换工具
  • vim手册
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.