PDA

View Full Version : 2.6.15-1.1977_FC5-x86_64 bad source ???


kirov
1st March 2006, 01:31 AM
hello,

a recompile of 2.6.15-1.1977_FC5-x86_64 fails with the 2 errors pasted below.
i need to recomile without SMP because the damn rt2500 driver doesn't support SMP and fedora has decided to make all kernels SMP. it looks like it will be a while before the rt2500 group gets this resolved, so.....

Any help would be greatly appreciated. thanks in advance

kirov


first, i ran into an issue with infiniband with stock .config. NO changes aside from removing SMP

[root@localhost 2.6.15-1.1977_FC5-x86_64]# make all
CHK include/linux/version.h
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86_64/Kconfig
#
# using defaults found in .config
#
SPLIT include/linux/autoconf.h -> include/config/*
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/genksyms/lex.o
scripts/genksyms/lex.c:546:5: warning: "YY_STACK_USED" is not defined
scripts/genksyms/lex.c:1424:5: warning: "YY_ALWAYS_INTERACTIVE" is not defined
scripts/genksyms/lex.c:1427:5: warning: "YY_NEVER_INTERACTIVE" is not defined
scripts/genksyms/lex.c:1718:5: warning: "YY_MAIN" is not defined
HOSTCC scripts/genksyms/parse.o
scripts/genksyms/parse.c:819:6: warning: "YYLTYPE_IS_TRIVIAL" is not defined
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
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[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2
[root@localhost 2.6.15-1.1977_FC5-x86_64]# make clean
scripts/Makefile.clean:17: /usr/src/kernels/2.6.15-1.1977_FC5-x86_64/drivers/infiniband/ulp/srp/Makefile: No such file or directory
make[3]: *** No rule to make target `/usr/src/kernels/2.6.15-1.1977_FC5-x86_64/drivers/infiniband/ulp/srp/Makefile'. Stop.
make[2]: *** [drivers/infiniband/ulp/srp] Error 2
make[1]: *** [drivers/infiniband] Error 2
make: *** [_clean_drivers] Error 2
[root@localhost 2.6.15-1.1977_FC5-x86_64]# make clean
scripts/Makefile.clean:17: /usr/src/kernels/2.6.15-1.1977_FC5-x86_64/drivers/infiniband/ulp/srp/Makefile: No such file or directory
make[3]: *** No rule to make target `/usr/src/kernels/2.6.15-1.1977_FC5-x86_64/drivers/infiniband/ulp/srp/Makefile'. Stop.
make[2]: *** [drivers/infiniband/ulp/srp] Error 2
make[1]: *** [drivers/infiniband] Error 2
make: *** [_clean_drivers] Error 2

After removing the infiniband crap i get the follwoing error.
[root@localhost 2.6.15-1.1977_FC5-x86_64]# make
CHK include/linux/version.h
SPLIT include/linux/autoconf.h -> include/config/*
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2
[root@localhost 2.6.15-1.1977_FC5-x86_64]# make
CHK include/linux/version.h
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2

davidbackeberg
17th March 2007, 04:11 AM
a recompile of 2.6.15-1.1977_FC5-x86_64 fails with the 2 errors pasted below.
Any help would be greatly appreciated. thanks in advance
first, i ran into an issue with infiniband with stock .config. NO changes aside from removing SMP

[root@localhost 2.6.15-1.1977_FC5-x86_64]# make all
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2

After removing the infiniband crap i get the follwoing error.
[root@localhost 2.6.15-1.1977_FC5-x86_64]# make
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2

The problem is that Red Hat Enterprise Linux 4 (RHEL 4), and therefore, Fedora, ships with a fake kernel source that's more than kernel header files, and less than a full kernel.
You CAN make menuconfig
You CAN make modules
You CANNOT make
You CANNOT make all
You CANNOT make bzImage

If you want to build a real kernel, you have to download the src.rpm for the kernel version you wish to rebuild, then install the src.rpm, then copy the kernel source from /usr/src/redhat/... to a sensible location like
/usr/src/

See documents like
http://kbase.redhat.com/faq/FAQ_85_5109.shtm

What Red Hat should do is CHANGE THEIR MAKEFILE
to give a meaningful error when somebody types make
or make bzImage
or make all

Right now, it instead looks like a legitimate kernel misconfiguration problem. Are you listening Red Hat?