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/
Reply to: