View previous topic :: View next topic |
Author |
Message |
benzin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Feb 2007 Posts: 18
|
Posted: Wed Feb 14, 2007 1:40 pm Post subject: Recompiling kernel |
|
|
Hello. I download new kernel and I want compile it. But when I run make. I get this message below. But this problem is not in source, becouse same mistake I give when rebuilding my old kernel. I have new gcc, and I thig all updated. Where will be problem?
Code: | # make && make modules_install
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/i386/Kconfig
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CC arch/i386/kernel/asm-offsets.s
GEN include/asm-i386/asm-offsets.h
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
CC scripts/mod/empty.o
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
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c
CC init/main.o
ls: option requires on argument -- T
Try 'ls --help' for more information.
make[1]: *** [init/main.o] Error 2
make: *** [init] Error 2 |
When I recall make with paramter V=1 I get this:
Code: | rm -f include/config/kernel.release
echo 2.6.19-gentoo-r5 > include/config/kernel.release
set -e; echo ' CHK include/linux/version.h'; mkdir -p include/linux/; (echo \#define LINUX_VERSION_CODE 132627; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) < /usr/src/linux-2.6.19-gentoo-r5/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else echo ' UPD include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi
CHK include/linux/version.h
set -e; echo ' CHK include/linux/utsrelease.h'; mkdir -p include/linux/; if [ `echo -n "2.6.19-gentoo-r5" | wc -c ` -gt 64 ]; then echo '"2.6.19-gentoo-r5" exceeds 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.19-gentoo-r5\";) < include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r include/linux/utsrelease.h ] && cmp -s include/linux/utsrelease.h include/linux/utsrelease.h.tmp; then rm -f include/linux/utsrelease.h.tmp; else echo ' UPD include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp include/linux/utsrelease.h; fi
CHK include/linux/utsrelease.h
mkdir -p .tmp_versions
rm -f .tmp_versions/*
make -f scripts/Makefile.build obj=scripts/basic
make -f scripts/Makefile.build obj=.
mkdir -p arch/i386/kernel/
make -f scripts/Makefile.build obj=scripts
make -f scripts/Makefile.build obj=scripts/genksyms
make -f scripts/Makefile.build obj=scripts/mod
make -f scripts/Makefile.build obj=init
gcc -m32 -Wp,-MD,init/.main.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -ffreestanding -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -Iinclude/asm-i386/mach-default -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(main)" -D"KBUILD_MODNAME=KBUILD_STR(main)" -c -o init/.tmp_main.o init/main.c
ls: option requires on argument -- T
Try 'ls --help' for more information.
make[1]: *** [init/main.o] Error 2
make: *** [init] Error 2 |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ce110ut Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/88599572642f1108511ca1.jpg)
Joined: 27 Sep 2002 Posts: 200
|
Posted: Wed Feb 14, 2007 1:54 pm Post subject: |
|
|
you mentioned that you ran make. you didn't mention running "make menuconfig" or "make oldconfig". Have you ran those commands before running make? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
benzin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 14 Feb 2007 Posts: 18
|
Posted: Wed Feb 14, 2007 2:03 pm Post subject: |
|
|
ce110ut wrote: | you mentioned that you ran make. you didn't mention running "make menuconfig" or "make oldconfig". Have you ran those commands before running make? |
Yes. My config file is allright. I test if is problem in kernel. I'm make new partitin, chrooting, install stage 3 and portage and then I can compile kernel without problem. But on my "old" system I cannot. Maby is problem in ls, maby in some othere thing. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|