Skip to contentSkip to conversation

Problems building 2.6.31.6 with 64bit Fedora-11

DISCUSSION Reg Clemens 2 participants 2 messages Nov 20, 2009

lore
Share & tools
lore
#0 lore raw

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

Signature · 2 lines
                                        Reg.Clemens
                                        [email protected]
#1 lore raw

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

Quoted 85 lines · Reg Clemens

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/