2004-09-02 19:39:17

by Oliver Antwerpen

[permalink] [raw]
Subject: Kernel Build error (objdump fails)

Hi folks,

when compiling the linux kernel (I tried 2.6.8, 2.6.8.1, 2.6.9-rc1) I get:

CC arch/i386/kernel/acpi/sleep.o
AS arch/i386/kernel/acpi/wakeup.o
LD arch/i386/kernel/acpi/built-in.o
arch/i386/kernel/acpi/boot.o: file not recognized: File truncated
make[2]: *** [arch/i386/kernel/acpi/built-in.o] Error 1
make[1]: *** [arch/i386/kernel/acpi] Error 2
make: *** [arch/i386/kernel] Error 2

c80:/tmp# gcc --version
gcc (GCC) 3.3.4 (Debian 1:3.3.4-6sarge1)
c80:/tmp# objdump -v
GNU objdump 2.14.90.0.7 20031029 Debian GNU/Linux
c80:/tmp# make -v
GNU Make 3.80

Which information do you need? Where shall I start?

Ollfried



2004-09-02 20:20:23

by Sam Ravnborg

[permalink] [raw]
Subject: Re: Kernel Build error (objdump fails)

On Thu, Sep 02, 2004 at 09:39:49PM +0200, Oliver Antwerpen wrote:
> Hi folks,
>
> when compiling the linux kernel (I tried 2.6.8, 2.6.8.1, 2.6.9-rc1) I get:
>
> CC arch/i386/kernel/acpi/sleep.o
> AS arch/i386/kernel/acpi/wakeup.o
> LD arch/i386/kernel/acpi/built-in.o
> arch/i386/kernel/acpi/boot.o: file not recognized: File truncated
> make[2]: *** [arch/i386/kernel/acpi/built-in.o] Error 1
> make[1]: *** [arch/i386/kernel/acpi] Error 2
> make: *** [arch/i386/kernel] Error 2

Strange...
Try the following:
rm arch/i386/kernel/acpi/boot.o
make V=1

Since you have tried several versions I assume this file has been rebuild,
so it will still fail.

Try:
nm -p arch/i386/kernel/acpi/boot.o
objdump -x arch/i386/kernel/acpi/boot.o

Try running the gcc command by hand and see if .o file is still bad.

Sam

2004-09-02 20:24:58

by Oliver Antwerpen

[permalink] [raw]
Subject: Re: Kernel Build error (objdump fails)

Sam Ravnborg wrote:
> On Thu, Sep 02, 2004 at 09:39:49PM +0200, Oliver Antwerpen wrote:
>
>>when compiling the linux kernel (I tried 2.6.8, 2.6.8.1, 2.6.9-rc1) I get:
>>arch/i386/kernel/acpi/boot.o: file not recognized: File truncated
>
> Strange...
> Try the following:
> rm arch/i386/kernel/acpi/boot.o
> make V=1
>
> Since you have tried several versions I assume this file has been rebuild,
> so it will still fail.

Right. I had tried this before. The gcc-call works just fine, anyway
boot.o is truncated.

> Try:
> nm -p arch/i386/kernel/acpi/boot.o
> objdump -x arch/i386/kernel/acpi/boot.o

Both say: File truncated

> Try running the gcc command by hand and see if .o file is still bad.

Yes, still bad.


I now tried compiling with gcc-3.4 (3.4.1 (Debian 3.4.1-4sarge1)), that
works fine.

I am just compiling 2.6.8 with gcc-3.4. This fails at:
mm/fremap.o: file not recognized: File truncated

Any ideas?

Ollfried


2004-09-02 21:01:59

by Sam Ravnborg

[permalink] [raw]
Subject: Re: Kernel Build error (objdump fails)

On Thu, Sep 02, 2004 at 10:23:59PM +0200, Oliver Antwerpen wrote:

>
> I now tried compiling with gcc-3.4 (3.4.1 (Debian 3.4.1-4sarge1)), that
> works fine.
>
> I am just compiling 2.6.8 with gcc-3.4. This fails at:
> mm/fremap.o: file not recognized: File truncated
>
> Any ideas?
Nope - need more info to get an idea.

What filesystem do you use?
NFS, ext2, ???

What kernel are you running when compiling?

Any other parts of the system that shows abnormal behaviour?

Sam

2004-09-03 23:48:46

by Andrew Morton

[permalink] [raw]
Subject: Re: Kernel Build error (objdump fails)

Oliver Antwerpen <[email protected]> wrote:
>
> when compiling the linux kernel (I tried 2.6.8, 2.6.8.1, 2.6.9-rc1) I get:
>
> CC arch/i386/kernel/acpi/sleep.o
> AS arch/i386/kernel/acpi/wakeup.o
> LD arch/i386/kernel/acpi/built-in.o
> arch/i386/kernel/acpi/boot.o: file not recognized: File truncated
> make[2]: *** [arch/i386/kernel/acpi/built-in.o] Error 1
> make[1]: *** [arch/i386/kernel/acpi] Error 2
> make: *** [arch/i386/kernel] Error 2

What kernel are you running when performing the build?

There's a bug in 2.6.9-rc1-mm1 which will cause the above.

2004-09-04 09:45:32

by Oliver Antwerpen

[permalink] [raw]
Subject: Re: Kernel Build error (objdump fails)

Andrew Morton wrote:
> Oliver Antwerpen <[email protected]> wrote:
>
>>when compiling the linux kernel (I tried 2.6.8, 2.6.8.1, 2.6.9-rc1) I get:
>>
>> CC arch/i386/kernel/acpi/sleep.o
>> AS arch/i386/kernel/acpi/wakeup.o
>> LD arch/i386/kernel/acpi/built-in.o
>>arch/i386/kernel/acpi/boot.o: file not recognized: File truncated
>>make[2]: *** [arch/i386/kernel/acpi/built-in.o] Error 1
>>make[1]: *** [arch/i386/kernel/acpi] Error 2
>>make: *** [arch/i386/kernel] Error 2
>
>
> What kernel are you running when performing the build?
>
> There's a bug in 2.6.9-rc1-mm1 which will cause the above.

Andrew,

You are right, I as running 2.6.9-rc1-mm1. As I found out this night,
the bug only occurs under this kernel and only on ext3-Filesystems.
Thank you!


Ollfried