Weird problem when compiling kernel
Hello linux-kernel:
I'm running Linux Slackware 10.0, kernel 2.6.7. I compiled such kernel when using Slackware 9.1, and after i *upgraded* to 10.0 and tried to compile 2.6.8.1, i noticed that i couldn't do that. When i wanted to modify my 2.6.7 configuration and tried to compile it again, i noticed that i couldn't do it either. I tried with all flavors off gcc, binutils, etc
So, there is my prob.
Error is:
*rm -rf .tmp_versions
mkdir -p .tmp_versions
make -f scripts/Makefile.build obj=scripts/basic
make -f scripts/Makefile.build obj=scripts
make -f scripts/Makefile.build obj=arch/i386/kernel arch/i386/kernel/asm-offsets.s
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
make -f scripts/Makefile.build obj=init
make -f scripts/Makefile.build obj=usr
ld -m elf_i386 -r -o usr/built-in.o
ld: no input filesscripts/Makefile.build:229: *** [usr/built-in.o] Error 1
Makefile:600: *** [usr] Error 2
--
When make V=1.
.config is in http://jumper.bounceme.net:81/slackatefn/.config
gcc version: 3.4.1, make: 3.80, binutils: 2.15.90.0.3 I would appreciate any help/suggestion/hint. Cya,
Martin
*
Quoted 26 lines · Mart?n Chikilian
Hello linux-kernel:
I'm running Linux Slackware 10.0, kernel 2.6.7. I compiled such kernel when using Slackware 9.1, and after i *upgraded* to 10.0 and tried to compile 2.6.8.1, i noticed that i couldn't do that. When i wanted to modify my 2.6.7 configuration and tried to compile it again, i noticed that i couldn't do it either.
I tried with all flavors off gcc, binutils, etc
So, there is my prob.
Error is:
*rm -rf .tmp_versions
mkdir -p .tmp_versions
make -fscripts/Makefile.buildobj=scripts/basic
make -fscripts/Makefile.buildobj=scripts
make -fscripts/Makefile.buildobj=arch/i386/kernelarch/i386/kernel/asm-offsets.s
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. make -fscripts/Makefile.buildobj=init
make -fscripts/Makefile.buildobj=usr
ld -melf_i386-r -ousr/built-in.o
ld: no input filesscripts/Makefile.build:229: *** [usr/built-in.o] Error 1 Makefile:600: *** [usr] Error 2
--
When make V=1.
.config is in http://jumper.bounceme.net:81/slackatefn/.config
Quoted 2 lines
gcc version: 3.4.1, make: 3.80, binutils: 2.15.90.0.3 I would appreciate any help/suggestion/hint.
Please try to do:
rm usr/*o
make V=1
and post output.
Also please check that you have gzip in your path.
Your .config was far away from a valid 2.6.8.1 .config??
Sam
Quoted 27 lines · Mart?n Chikilian
Quoted 21 lines
Hello linux-kernel:
I'm running Linux Slackware 10.0, kernel 2.6.7. I compiled such kernel when using Slackware 9.1, and after i *upgraded* to 10.0 and tried to compile 2.6.8.1, i noticed that i couldn't do that. When i wanted to modify my 2.6.7 configuration and tried to compile it again, i noticed that i couldn't do it either. I tried with all flavors off gcc, binutils, etc
So, there is my prob.
Error is:
*rm -rf .tmp_versions
mkdir -p .tmp_versions
make -fscripts/Makefile.buildobj=scripts/basic
make -fscripts/Makefile.buildobj=scripts
make -fscripts/Makefile.buildobj=arch/i386/kernelarch/i386/kernel/asm-offsets.s
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
make -fscripts/Makefile.buildobj=init
make -fscripts/Makefile.buildobj=usr
ld -melf_i386-r -ousr/built-in.o
ld: no input filesscripts/Makefile.build:229: *** [usr/built-in.o] Error 1
Makefile:600: *** [usr] Error 2
--
When make V=1.
.config is in http://jumper.bounceme.net:81/slackatefn/.configQuoted 4 lines
gcc version: 3.4.1, make: 3.80, binutils: 2.15.90.0.3 I would appreciate any help/suggestion/hint.
Quoted 8 lines
Please try to do:
rmusr/*o
make V=1and post output.
rm -rf .tmp_versions
mkdir -p .tmp_versions
make -f scripts/Makefile.build obj=scripts/basic
make -f scripts/Makefile.build obj=scripts
make -f scripts/Makefile.build obj=arch/i386/kernel arch/i386/kernel/asm-offsets.s make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
make -f scripts/Makefile.build obj=init
make -f scripts/Makefile.build obj=usr
gcc -Wp,-MD,usr/.gen_init_cpio.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -o usr/gen_init_cpio usr/gen_init_cpio.c
./usr/gen_init_cpio > usr/initramfs_data.cpio
gcc -Wp,-MD,usr/.initramfs_data.o.d -nostdinc -iwithprefix include
-D__KERNEL__ -Iinclude -D__ASSEMBLY__ -Iinclude/asm-i386/mach-default -c -o usr/initramfs_data.o usr/initramfs_data.S
ld -m elf_i386 -r -o usr/built-in.o
ld: no input filesscripts/Makefile.build:229: *** [usr/built-in.o] Error 1 Makefile:600: *** [usr] Error 2
Quoted 5 lines
Also please check that you have gzip in your path.
which gzip:/usr/bin/gzip
Quoted 4 lines
Your .config was far away from a valid 2.6.8.1 .config??
It's not a 2.6.8.1 config, its a 2.6.7 one
I hope all this information would be useful for you. Cya,
Martin
Quoted 14 lines · Mart?n Chikilian
Quoted 2 lines
rm -rf .tmp_versions
mkdir -p .tmp_versions
make -fscripts/Makefile.buildobj=scripts/basic
make -fscripts/Makefile.buildobj=scripts
make -fscripts/Makefile.buildobj=arch/i386/kernelarch/i386/kernel/asm-offsets.s
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. make -fscripts/Makefile.buildobj=init
make -fscripts/Makefile.buildobj=usr
gcc -Wp,-MD,usr/.gen_init_cpio.d -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -ousr/gen_init_cpiousr/gen_init_cpio.c
./usr/gen_init_cpio>usr/initramfs_data.cpio
Here I expected gzip to be called???
Quoted 5 lines
gcc -Wp,-MD,usr/.initramfs_data.o.d -nostdinc -iwithprefix include
(quoted diff) +0
-2-D__KERNEL__ -Iinclude -D__ASSEMBLY__ -Iinclude/asm-i386/mach-default -c -o usr/initramfs_data.o
usr/initramfs_data.S
ld -melf_i386-r -ousr/built-in.o
And this looks pretty veird to me also. I should have one inputfile listed.
Quoted 4 lines
ld: no input files
scripts/Makefile.build:229: *** [usr/built-in.o] Error 1 Makefile:600: *** [usr] Error 2
Plase apply following patch and post output of:
rm usr/*o
make V=1
Apply patch using:
$ patch -p1 < my_patch
when current directory is root of kernel tree.
Sam
===== usr/Makefile 1.10 vs edited =====
usr/Makefile +5 -0
@@ -18,15 +18,20 @@ # Commented out for now # initramfs-y := $(obj)/root/hello +$(warning obj-y=$(obj-y)) +$(warning obj=$(obj)) + quiet_cmd_cpio = CPIO $@ cmd_cpio = ./$< > $@ $(obj)/initramfs_data.cpio: $(obj)/gen_init_cpio $(initramfs-y) FORCE + @echo cpio: $@ - $^ - $? $(call if_changed,cpio) targets += initramfs_data.cpio $(obj)/initramfs_data.cpio.gz: $(obj)/initramfs_data.cpio FORCE + @echo gzip: $@ - $^ - $? $(call if_changed,gzip) targets += initramfs_data.cpio.gz