lkml.org 
[lkml]   [2009]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: cannot compile linux-2.6-tip tree
On Tue, Nov 24, 2009 at 04:45:11PM +0100, Ingo Molnar wrote:
>
> * Jiri Olsa <jolsa@redhat.com> wrote:
>
> > drivers/pnp/card.o: file not recognized: File format not recognized
> > make[1]: *** [drivers/pnp/built-in.o] Error 1
>
> that typically happens if you Ctrl-C a parallel kernel build, and GCC
> leaves around an empty .o file.
>
> It's rare but happens. 'make clean' will cure that.
>
> Ingo

I tried make clean and it did not help..

I'm not sure if I'm not overlooking something obvious or am getting
crazy, but this is what I've done so far:

I took gcc command line for drivers/pnp/card.o and drivers/pnp/core.o
from make V=1 and run it manually ending up with this:


compile:
[jolsa@jolsa linux-2.6-tip]$ gcc -Wp,-MD,drivers/pnp/.card.o.d
-nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.2/include
-Iinclude -I/mnt/sda5/data/upstream/linux-2.6-tip/arch/x86/include
-include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security
-fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone
-mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args
-DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer
-fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement
-Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm
-fconserve-stack -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(card)"
-D"KBUILD_MODNAME=KBUILD_STR(card)" -c -o drivers/pnp/.tmp_card.o
drivers/pnp/card.c
[jolsa@jolsa linux-2.6-tip]$ gcc -Wp,-MD,drivers/pnp/.core.o.d
-nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.2/include
-Iinclude -I/mnt/sda5/data/upstream/linux-2.6-tip/arch/x86/include
-include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security
-fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone
-mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args
-DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer
-fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement
-Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm
-fconserve-stack -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(core)"
-D"KBUILD_MODNAME=KBUILD_STR(core)" -c -o drivers/pnp/.tmp_core.o
drivers/pnp/core.c


run objdump:
[jolsa@jolsa linux-2.6-tip]$ objdump -R drivers/pnp/.tmp_core.o

drivers/pnp/.tmp_core.o: file format elf64-x86-64

objdump: drivers/pnp/.tmp_core.o: not a dynamic object
objdump: drivers/pnp/.tmp_core.o: Invalid operation
[jolsa@jolsa linux-2.6-tip]$ objdump -R drivers/pnp/.tmp_card.o
objdump: drivers/pnp/.tmp_card.o: File truncated


run file:
[jolsa@jolsa linux-2.6-tip]$ file drivers/pnp/.tmp_card.o
drivers/pnp/.tmp_card.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), stripped
[jolsa@jolsa linux-2.6-tip]$ file drivers/pnp/.tmp_core.o
drivers/pnp/.tmp_core.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped


I checked other objects in drivers/pnp/ and for some reason the file command shows
card.o (the object which is failing) as "stripped" and others as "not stripped" ... no idea why :)


I'm probably going to clone new tree... :)

jirka


\
 
 \ /
  Last update: 2009-11-24 18:25    [W:0.092 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site