LinuxSir.cn,穿越时空的Linuxsir!

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

编译内核出错,求助!!!!!!!!!

[复制链接]
发表于 2007-4-2 14:46:37 | 显示全部楼层 |阅读模式
在make menuconfig之后
用make -kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
之后,本以为会有一个漫长的编译过程,可是一会儿就结束了,具体错误信息如下,这是怎么回事啊???
make:无效选项 -- g
make:无法识别的选项“--initrd”
make:无法识别的选项“--append-to-version=-custom”
用法:make [选项] [目标] ...
选项:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

This program built for i686-redhat-linux-gnu
Report bugs to <bug-make@gnu.org>

# Make data base, printed on Mon Apr  2 14:43:18 2007

# 变量

# 环境
DESKTOP_SESSION = default
# 环境
GTK_RC_FILES = /etc/gtk/gtkrc:/root/.gtkrc-1.2-gnome2
# 环境
DESKTOP_STARTUP_ID =
# 环境
XAUTHORITY = /tmp/.gdmWI9AQT
# 环境
GDMSESSION = default
# 环境
XMODIFIERS = @im=SCIM
# 环境
SHELL = /bin/bash
# 环境
_ = /usr/bin/make
# 环境
DBUS_SESSION_BUS_ADDRESS = unix:abstract=/tmp/dbus-04co9OqXNM,guid=c9901046d61682728553a63bc22aab00
# 环境
GNOME_KEYRING_SOCKET = /tmp/keyring-8aO0JA/socket
# 环境
LESSOPEN = |/usr/bin/lesspipe.sh %s
# 环境
PATH = /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
# 环境
SESSION_MANAGER = local/localhost.localdomain:/tmp/.ICE-unix/2423
# 环境
WINDOWID = 56623185
# 环境
GDM_XSERVER_LOCATION = local
# 默认
.FEATURES := target-specific order-only second-expansion else-if archives jobserver check-symlink
# 环境
LS_COLORS = no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
# 环境
SSH_AUTH_SOCK = /tmp/ssh-DPbgqX2423/agent.2423
# 环境
DISPLAY = :0.0
# 环境
GTK_IM_MODULE = scim-bridge
# 环境
PWD = /usr/src/linux-2.6.18.2
# 环境
SSH_AGENT_PID = 2474
# 环境
G_BROKEN_FILENAMES = 1
# 环境
HOME = /root
# 环境
LOGNAME = root
# 环境
GNOME_DESKTOP_SESSION_ID = Default
# 环境
HOSTNAME = localhost.localdomain
# 环境
SSH_ASKPASS = /usr/libexec/openssh/gnome-ssh-askpass
# 环境
COLORTERM = gnome-terminal
# 默认
MAKECMDGOALS := kernel_image kernel_headers
# 环境
QT_IM_MODULE = scim
# 环境
SHLVL = 2
# 环境
JAVA_HOME = /usr/lib/jre154
# 环境
USER = root
# 环境
OLDPWD = /usr/src
# 默认
.VARIABLES :=
# 环境
MAIL = /var/spool/mail/root
# 环境
JAVA_BIN = /usr/lib/jre154/bin
# 环境
HISTSIZE = 1000
# 环境
INPUTRC = /etc/inputrc
# 环境
LANG = zh_CN.UTF-8
# 环境
TERM = xterm
# variable set hash-table stats:
# Load=42/1024=4%, Rehash=0, Collisions=1/52=2%

# Pattern-specific Variable Values

# 没有 pattern-specific 变量的值。

# 目录


# 无 文件, 无 impossibilities in 0 directories.

# Implicit Rules

# 没有隐含规则。

# 文件

# 不是一个目标:
kernel_image:
#  命令行目标。
#  对隐含规则的搜索尚未完成。
#  从不检查修改时间。
#  文件尚未被更新。

# 不是一个目标:
kernel_headers:
#  命令行目标。
#  对隐含规则的搜索尚未完成。
#  从不检查修改时间。
#  文件尚未被更新。

# files hash-table stats:
# Load=2/1024=0%, Rehash=0, Collisions=0/2=0%
# VPATH 搜索路径

# 没有“vpath”搜索路径。

# 没有通用搜索路径(“VPATH”变量)。

# # of strings in strcache: 0
# # of strcache buffers: 0
# strcache size: total = 0 / max = 0 / min = 4096 / avg = 0
# strcache free: total = 0 / max = 0 / min = 4096 / avg = 0

# Finished Make data base on Mon Apr  2 14:43:18 2007
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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