Skip to contentSkip to conversation

Weird problem when compiling kernel

DISCUSSION Martín Chikilian 2 participants 4 messages Sep 1, 2004 – Sep 3, 2004 Kbuild

lore
Share & tools
lore
#0 lore raw

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 files
scripts/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
*

#1 lore raw
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 -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 files
scripts/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

#2 lore raw
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 -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 files
scripts/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 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:
rm usr/*o
make V=1

and 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 files
scripts/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

#3 lore raw
Quoted 14 lines · Mart?n Chikilian
Quoted 2 lines

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

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 -m elf_i386 -r -o usr/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