All of lore.kernel.org
 help / color / mirror / Atom feed
* Weird problem when compiling kernel
@ 2004-09-01 12:50 Martín Chikilian
  2004-09-02 20:19 ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Martín Chikilian @ 2004-09-01 12:50 UTC (permalink / raw)
  To: linux-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 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
*

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Weird problem when compiling kernel
  2004-09-01 12:50 Weird problem when compiling kernel Martín Chikilian
@ 2004-09-02 20:19 ` Sam Ravnborg
  2004-09-03 13:32   ` Martín Chikilian
  0 siblings, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2004-09-02 20:19 UTC (permalink / raw)
  To: Mart?n Chikilian; +Cc: linux-kernel

On Wed, Sep 01, 2004 at 09:50:04AM -0300, Mart?n Chikilian wrote:
> 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.


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Weird problem when compiling kernel
  2004-09-02 20:19 ` Sam Ravnborg
@ 2004-09-03 13:32   ` Martín Chikilian
  2004-09-03 19:28     ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Martín Chikilian @ 2004-09-03 13:32 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel

On Wed, Sep 01, 2004 at 09:50:04AM -0300, Mart?n Chikilian wrote:

>>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.
>>    
>>
>
>
>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

>Also please check that you have gzip in your path.
>
>
>  
>
which gzip:
/usr/bin/gzip

>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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Weird problem when compiling kernel
  2004-09-03 13:32   ` Martín Chikilian
@ 2004-09-03 19:28     ` Sam Ravnborg
  0 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2004-09-03 19:28 UTC (permalink / raw)
  To: Mart?n Chikilian; +Cc: Sam Ravnborg, linux-kernel

On Fri, Sep 03, 2004 at 10:32:45AM -0300, Mart?n Chikilian wrote:
 > 
> >
> 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???

>  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

And this looks pretty veird to me also. I should have one inputfile listed.

> 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 =====
--- 1.10/usr/Makefile	2004-08-10 21:42:40 +02:00
+++ edited/usr/Makefile	2004-09-03 21:22:16 +02:00
@@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-03 19:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-01 12:50 Weird problem when compiling kernel Martín Chikilian
2004-09-02 20:19 ` Sam Ravnborg
2004-09-03 13:32   ` Martín Chikilian
2004-09-03 19:28     ` Sam Ravnborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.