Skip to contentSkip to conversation

2.6.32-rc5 build failure on Alpha

BUG Bob Tracy 2 participants 2 messages Oct 29, 2009

lore
Share & tools
lore

Bob Tracy

author
#0 lore raw
Quoted 12 lines · Bob Tracy

Mainline 2.6.32-rc5 kernel build failure. The last few lines of the kernel build output are:

LD vmlinux.o
MODPOST vmlinux.o
WARNING: "saved_config" [vmlinux] is COMMON symbol

  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
Quoted 5 lines

arch/alpha/kernel/vmlinux.lds:241: undefined symbol `THREAD_SIZE' referenced in expression
make: *** [.tmp_vmlinux1] Error 1

In arch/alpha/include/asm/thread_info.h, THREAD_SIZE is defined as (2*PAGE_SIZE).

Ok. Found it. The THREAD_SIZE definition is inside a "#ifndef __ASSEMBLY__" block, so it never gets referenced (because "__ASSEMBLY__" is defined for the "vmlinux.lds" build). The obvious suggested fix is to move the definition outside the block.

--Bob

#1 lore raw
Quoted 16 lines · Bob Tracy
Quoted 14 lines · Bob Tracy

Mainline 2.6.32-rc5 kernel build failure. The last few lines of the kernel build output are:

LD vmlinux.o
MODPOST vmlinux.o
WARNING: "saved_config" [vmlinux] is COMMON symbol

  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1

arch/alpha/kernel/vmlinux.lds:241: undefined symbol `THREAD_SIZE' referenced in expression
make: *** [.tmp_vmlinux1] Error 1

Quoted 7 lines
Quoted 2 lines

In arch/alpha/include/asm/thread_info.h, THREAD_SIZE is defined as (2*PAGE_SIZE).

Ok. Found it. The THREAD_SIZE definition is inside a "#ifndef __ASSEMBLY__" block, so it never gets referenced (because "__ASSEMBLY__" is defined for the "vmlinux.lds" build). The obvious suggested fix is to move the definition outside the block.

A patch doing this has been posted some time ago. I think/hope it is in -mm if it is not yet in -linus.

Sam