Chinaunix

标题: gentoo编译时出错? [打印本页]

作者: phpasp    时间: 2006-11-23 13:03
标题: gentoo编译时出错?
livecd linux # make dep && make vmlinux image modules modules_install
*** Warning: make dep is unnecessary now.
  CHK     include/linux/version.h
make[1]: Warning: File `/usr/include/sys/types.h' has modification time 3.5e+07 s in the future
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      arch/sparc64/kernel/asm-offsets.s
  GEN     include/asm-sparc64/asm-offsets.h
make[2]: Warning: File `/usr/include/stdio.h' has modification time 3.5e+07 s in the future
  HOSTCC  scripts/genksyms/genksyms.o
  SHIPPED scripts/genksyms/lex.c
  SHIPPED scripts/genksyms/parse.h
  SHIPPED scripts/genksyms/keywords.c
  HOSTCC  scripts/genksyms/lex.o
  SHIPPED scripts/genksyms/parse.c
  HOSTCC  scripts/genksyms/parse.o
  HOSTLD  scripts/genksyms/genksyms
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
  CC      scripts/mod/empty.o
make[2]: Warning: File `/usr/include/stdio.h' has modification time 3.5e+07 s in the future
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Warning: File `/usr/include/stdio.h' has modification time 3.5e+07 s in the future
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
  CC      init/main.o
In file included from include/linux/gfp.h:4,
                 from include/linux/slab.h:15,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/pid.h:4,
                 from include/linux/sched.h:33,
                 from include/linux/module.h:10,
                 from init/main.c:16:
include/linux/mmzone.h:500:2: #error Allocator MAX_ORDER exceeds SECTION_SIZE
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
在编译gentoo2.6.17出现以上错误?
请帮忙看看,如何解决?
作者: egret    时间: 2006-11-23 15:41
原帖由 phpasp 于 2006-11-23 13:03 发表
livecd linux # make dep && make vmlinux image modules modules_install
...
在编译gentoo2.6.17出现以上错误?...

用的命令都不对,请仔细看文档:
http://www.gentoo.org/doc/zh_tw/handbook/handbook-x86.xml?part=1&chap=7#compiling
作者: phpasp    时间: 2006-11-23 16:15
用make && make modules_install ?
但结果还是一样的错误呀

我的设备是sparc 64的SUN  UltraSPARC 5的机器,内存为256M 硬盘为HDD 9G
作者: egret    时间: 2006-11-23 17:14
。。。
我的设备是sparc 64的SUN  UltraSPARC 5的机器,内存为256M 硬盘为HDD 9G

你装的什么source?看看这个:
http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml?part=1&chap=7#doc_chap2
作者: phpasp    时间: 2006-11-24 08:41
我这样下载: USE="-doc symlink" emerge sparc-sources
版本为2.4.32
USE="-doc symlink" emerge gentoo-sources   版本为2.6.17

但是这两个我都试过了,在
make 时,都是出同样的错误呀?
作者: phpasp    时间: 2006-11-26 12:51
自己来看看,
大伙儿来想想啊
作者: egret    时间: 2006-11-26 20:51
试试vanilla-sources。手册里提到的内核选项都选了吗?
作者: hxliang    时间: 2006-11-27 09:42
看你的时钟怎么回事?
作者: egret    时间: 2006-11-27 14:21
原帖由 hxliang 于 2006-11-27 09:42 发表
看你的时钟怎么回事?

对,调整一下系统时间看看。
作者: phpasp    时间: 2006-12-23 10:51
时钟是正确的呀
作者: alvis    时间: 2006-12-23 13:42
编译的提示是你编译的文件日期“未来”于你的本地时间,这是小问题,不过,最好要注意。

错误的提示是

include/linux/mmzone.h:500:2: #error Allocator MAX_ORDER exceeds SECTION_SIZE

你看看这两个定义的值,自己调调吧




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2