2009-11-20 05:41:06

by Reg Clemens

[permalink] [raw]
Subject: Problems building 2.6.31.6 with 64bit Fedora-11

OK, Im new to Fedora-11, and this will be my first 64bit
kernel build, so this is probably going to be something
stupid, but I dont see it.

The top of my .config file reads:

---

#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.31.6-PPS
# Thu Nov 19 20:08:27 2009
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
CONFIG_GENERIC_TIME=y
CONFIG_GENERIC_CMOS_UPDATE=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_GENERIC_CLOCKEVENTS=y

---

So it seems that I am really doing a 64bit build, but the problems
start with the first cc/ld, viz

---

[root@deneb linux-2.6.31.6-PPS]# make -j3 mod
ules ; make -j3 bzImage
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
HOSTCC scripts/selinux/mdp/mdp
nm: scripts/mod/empty.o: File format not recognized
objdump: scripts/mod/empty.o: File format not recognized
HOSTCC scripts/mod/mk_elfconfig
HOSTCC scripts/pnmtologo
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/conmakehash
HOSTLD scripts/mod/modpost
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/x86/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL scripts/checksyscalls.sh
CC [M] arch/x86/crypto/crc32c-intel.o
CC [M] arch/x86/kernel/test_nx.o
CC [M] arch/x86/kernel/microcode_core.o
nm: arch/x86/crypto/crc32c-intel.o: File format not recognized
nm: arch/x86/kernel/test_nx.o: File format not recognized
objdump: arch/x86/kernel/test_nx.o: File format not recognized
objdump: arch/x86/crypto/crc32c-intel.o: File format not recognized
CC [M] arch/x86/kvm/svm.o
CC [M] arch/x86/kvm/vmx.o
nm: arch/x86/kernel/microcode_core.o: File format not recognized

---

So whats going on here?
Why the file-format-not-recognized ???

--
Reg.Clemens
[email protected]


2009-11-20 06:13:16

by Andrew Hendry

[permalink] [raw]
Subject: Re: Problems building 2.6.31.6 with 64bit Fedora-11

What arch are you building on?

What does 'file' say about the bad object files?
eg file vmlinux.o
vmlinux.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV),
not stripped


On Fri, Nov 20, 2009 at 4:01 PM, Reg Clemens <[email protected]> wrote:
> OK, Im new to Fedora-11, and this will be my first 64bit
> kernel build, so this is probably going to be something
> stupid, but I dont see it.
>
> The top of my .config file reads:
>
> ---
>
> #
> # Automatically generated make config: don't edit
> # Linux kernel version: 2.6.31.6-PPS
> # Thu Nov 19 20:08:27 2009
> #
> CONFIG_64BIT=y
> # CONFIG_X86_32 is not set
> CONFIG_X86_64=y
> CONFIG_X86=y
> CONFIG_OUTPUT_FORMAT="elf64-x86-64"
> CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
> CONFIG_GENERIC_TIME=y
> CONFIG_GENERIC_CMOS_UPDATE=y
> CONFIG_CLOCKSOURCE_WATCHDOG=y
> CONFIG_GENERIC_CLOCKEVENTS=y
>
> ---
>
> So it seems that I am really doing a 64bit build, but the problems
> start with the first cc/ld, viz
>
> ---
>
> [root@deneb linux-2.6.31.6-PPS]# make -j3 mod
> ules ; make -j3 bzImage
> ?HOSTLD ?scripts/kconfig/conf
> scripts/kconfig/conf -s arch/x86/Kconfig
> ?CHK ? ? include/linux/version.h
> ?UPD ? ? include/linux/version.h
> ?CHK ? ? include/linux/utsrelease.h
> ?UPD ? ? include/linux/utsrelease.h
> ?SYMLINK include/asm -> include/asm-x86
> ?HOSTCC ?scripts/kallsyms
> ?CC ? ? ?scripts/mod/empty.o
> ?HOSTCC ?scripts/selinux/mdp/mdp
> nm: scripts/mod/empty.o: File format not recognized
> objdump: scripts/mod/empty.o: File format not recognized
> ?HOSTCC ?scripts/mod/mk_elfconfig
> ?HOSTCC ?scripts/pnmtologo
> ?MKELF ? scripts/mod/elfconfig.h
> ?HOSTCC ?scripts/mod/file2alias.o
> ?HOSTCC ?scripts/mod/modpost.o
> ?HOSTCC ?scripts/mod/sumversion.o
> ?HOSTCC ?scripts/conmakehash
> ?HOSTLD ?scripts/mod/modpost
> ?CC ? ? ?kernel/bounds.s
> ?GEN ? ? include/linux/bounds.h
> ?CC ? ? ?arch/x86/kernel/asm-offsets.s
> ?GEN ? ? include/asm/asm-offsets.h
> ?CALL ? ?scripts/checksyscalls.sh
> ?CC [M] ?arch/x86/crypto/crc32c-intel.o
> ?CC [M] ?arch/x86/kernel/test_nx.o
> ?CC [M] ?arch/x86/kernel/microcode_core.o
> nm: arch/x86/crypto/crc32c-intel.o: File format not recognized
> nm: arch/x86/kernel/test_nx.o: File format not recognized
> objdump: arch/x86/kernel/test_nx.o: File format not recognized
> objdump: arch/x86/crypto/crc32c-intel.o: File format not recognized
> ?CC [M] ?arch/x86/kvm/svm.o
> ?CC [M] ?arch/x86/kvm/vmx.o
> nm: arch/x86/kernel/microcode_core.o: File format not recognized
>
> ---
>
> So whats going on here?
> Why the file-format-not-recognized ???
>
> --
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Reg.Clemens
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [email protected]
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at ?http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at ?http://www.tux.org/lkml/
>

2009-11-20 17:51:19

by Reg Clemens

[permalink] [raw]
Subject: Re: Problems building 2.6.31.6 with 64bit Fedora-11

I sent this message to the list yesterday, but it never appeared,
Probably a side effect of my new Fedora-11 install. In any case
here is another try. The question is about a failue of a build
of linux 2.6.31.6 on a 64bit Pentium 4.

---

> What arch are you building on?

a 64bit Pentium 4.
>
> What does 'file' say about the bad object files?
>

A File shows:

reg@deneb kernel]$ file *.o
microcode.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not
stripped
microcode_amd.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not
stripped
microcode_core.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not
stripped
microcode_intel.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not
stripped
test_nx.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not
stripped

while nm shows

[reg@deneb kernel]$ nm *.o
nm: microcode.o: File format not recognized
nm: microcode_amd.o: File format not recognized
nm: microcode_core.o: File format not recognized
nm: microcode_intel.o: File format not recognized
nm: test_nx.o: File format not recognized

Almost looks like the wrong version of nm, but Im sure someone
out there will have a better idea.


--
Reg.Clemens
[email protected]