Skip to contentSkip to conversation

Kernel Build error (objdump fails)

DISCUSSION Oliver Antwerpen 3 participants 6 messages Sep 2, 2004 – Sep 4, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 11 lines · Oliver Antwerpen

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

#2 lore raw
Quoted 5 lines · Sam Ravnborg
Quoted 2 lines · Oliver Antwerpen

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

Quoted 7 lines

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.

Quoted 3 lines

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

Both say: File truncated

Quoted 1 line

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

#3 lore raw
Quoted 8 lines · Oliver Antwerpen

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

#4 lore raw
In reply to Oliver Antwerpen
Quoted 10 lines · Oliver Antwerpen

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.

#5 lore raw
Quoted 13 lines · Andrew Morton
Quoted 9 lines · Oliver Antwerpen

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

Quoted 3 lines

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