[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compile kernel error on debian-slink



On Tue, Jul 04, 2000 at 09:20:07AM +0800, Carlos wrote:
> 
>  Hello! I am Carlos,I want to compile 2.2.16 on my
> debian-slink(2.0.x),I use the make-kpkg tool,it can

Debian Slink 是 2.1 版。2.0.x 是很旧很旧的 hamm 版。

> produce .deb package for kernel source,I have type 
> the command "make-kpkg clean",it is equal the command
> "make dep;make clean" ,I think so. Then I type 
> 
> "make-kpkg --revision=custom.1.0 kernel_image" But 
> 
> error message appear,my kernel source put in /usr/src/
> linux/,I am login as "root" to compile it,I also have

If you are indeed using Slink, and everything is set up correctly,
you _don't_ need to log in as root.  :-)  Use:

	cd /usr/src/linux
再
	fakeroot /usr/sbin/make-kpkg --revision=custom.1.0 kernel_image
或
	fakeroot /usr/bin/make-kpkg --revision=custom.1.0 kernel_image

instead.

> check all my dependency package have "least" version 
> be able to compile 2.2.16,the error mesg below:
> #################################################
>  dpkg (subprocess): failed to exec C compiler `': No such file or directory
> dpkg: subprocess gcc --print-libgcc-file-name returned error exit status 2
> find: /usr/src/modules: No such file or directory
> test -f stamp-debian || make -f /usr/share/kernel-package/rules debian
> test -f .config      || make -f /usr/share/kernel-package/rules .config
> test ! -f stamp-configure \
>   && make  CROSS_COMPILE= \
>                                  ARCH= oldconfig \
>           && make  CROSS_COMPILE= \
>                                  ARCH= dep \
>           && make  CROSS_COMPILE= \
>                                  ARCH= clean && \
>               touch stamp-configure
> make[1]: Entering directory `/usr/src/linux'
> Makefile:213: arch//Makefile: No such file or directory
> make[1]: *** No rule to make target `arch//Makefile'.  Stop.
> make[1]: Leaving directory `/usr/src/linux'
> make: [stamp-configure] Error 2 (ignored)
> test -f stamp-configure || make -f /usr/share/kernel-package/rules configure
> dpkg (subprocess): failed to exec C compiler `': No such file or directory
> dpkg: subprocess gcc --print-libgcc-file-name returned error exit status 2
> find: /usr/src/modules: No such file or directory
> make[1]: Entering directory `/usr/src/linux'
> test -f stamp-debian || make -f /usr/share/kernel-package/rules debian
> test -f .config      || make -f /usr/share/kernel-package/rules .config
> test ! -f stamp-configure \
>   && make  CROSS_COMPILE= \
>                                  ARCH= oldconfig \
>           && make  CROSS_COMPILE= \
>                                  ARCH= dep \
>           && make  CROSS_COMPILE= \
>                                  ARCH= clean && \
>               touch stamp-configure
> make[2]: Entering directory `/usr/src/linux'
> Makefile:213: arch//Makefile: No such file or directory
> make[2]: *** No rule to make target `arch//Makefile'.  Stop.
> make[2]: Leaving directory `/usr/src/linux'
> make[1]: [stamp-configure] Error 2 (ignored)
> make[1]: Leaving directory `/usr/src/linux'
> make   ARCH=	\
>                     CROSS_COMPILE= 
> make[1]: Entering directory `/usr/src/linux'
> Makefile:213: arch//Makefile: No such file or directory
> make[1]: *** No rule to make target `arch//Makefile'.  Stop.
> make[1]: Leaving directory `/usr/src/linux'
> make: *** [stamp-build] Error 2
> ############################################

  似乎是找不到 gcc。
  你确定有安装  libc-dev, gcc, debianutils, make 等套件吗?

> it say "arch//Makefile"can't find,I think correct ans 
> may be "arch/i386/Makefile",but if I type command on 
> my debian ,"uname -m",will appear "i686",is this a
> problem?

  应该没有问题。我的是 "i586"。

> and "/usr/src/modules: No such file or directory",why
> it can't find the "/usr/src/linux/modules",do I need
> to modify the top-level makefile in my kernel source 
> tree?

  不用,因为看来那个 script 完全找不到 gcc,
之后那些错误讯息可能是因为找不到 gcc,那个 Makefile 太早
失败了,未设置好 config 等 pathname?

  对了,你执行了 make menuconfig 没有?执行 make-kpkg clean
前要先用 make menuconfig 或 make xconfig 去设定 kernel 嘛!

> "dpkg: subprocess gcc --print-libgcc-file-name returned error exit status 2",and I also can't find
> 
> any error clues about my gcc 2.95-X, could anyone help 
> me?

	没有安装?

东东

-- 
Anthony Fok Tung-Ling                Civil and Environmental Engineering
foka@ualberta.ca, foka@debian.org    University of Alberta, Canada
Debian Chinese Project -- http://www.debian.org/international/chinese/
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/

-- 
| This message was re-posted from debian-chinese@lists.debian.org
| and converted from big5 to gb2312 by an automatic gateway.



Reply to: