Skip to contentSkip to conversation

Compile Error on 2.6.17-mm6

DISCUSSION Matt Reuther 4 participants 8 messages Jul 8, 2006 – Jul 9, 2006

lore
Share & tools
lore
#0 lore raw

I tried compiling the 2.6.17-mm6 kernel twice, and got the same error both times.

Here is the error:

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

arch/i386/kernel/built-in.o(.text+0xe282): In function `cpu_request_microcode':
arch/i386/kernel/microcode.c:544: undefined reference to `request_firmware' arch/i386/kernel/built-in.o(.text+0xe304):arch/i386/kernel/microcode.c:573:
undefined reference to `release_firmware'
make: *** [.tmp_vmlinux1] Error 1

I can send the entire compile log if you need it.

I attached the config. I am compiling this on a Slackware 10.2 system, with gcc-3.3.6 and make 3.80

Signature · 1 line
Matt Reuther
#1 lore raw
Quoted 11 lines · On Fri, 7 Jul 2006 22:22:16 -0400 Matt Reuther <[email protected]> wrote:

Here is the error:

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

arch/i386/kernel/built-in.o(.text+0xe282): In function `cpu_request_microcode':
arch/i386/kernel/microcode.c:544: undefined reference to `request_firmware' arch/i386/kernel/built-in.o(.text+0xe304):arch/i386/kernel/microcode.c:573:
undefined reference to `release_firmware'

CONFIG_FW_LOADER=m
CONFIG_MICROCODE=y

So

config MICROCODE
tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support" depends on FW_LOADER

is not sufficient. There's a fix for this, but I cannot remember what it is. Help.

#2 lore raw
Quoted 18 lines · On Sat, 8 Jul 2006 17:43:47 -0700 Andrew Morton wrote:
Quoted 11 lines · On Fri, 7 Jul 2006 22:22:16 -0400 Matt Reuther <[email protected]> wrote:

Here is the error:

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

arch/i386/kernel/built-in.o(.text+0xe282): In function `cpu_request_microcode':
arch/i386/kernel/microcode.c:544: undefined reference to `request_firmware' arch/i386/kernel/built-in.o(.text+0xe304):arch/i386/kernel/microcode.c:573:
undefined reference to `release_firmware'

CONFIG_FW_LOADER=m
CONFIG_MICROCODE=y

Quoted 8 lines

So

config MICROCODE
tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support" depends on FW_LOADER

is not sufficient. There's a fix for this, but I cannot remember what it is. Help.

That 1-line depends patch fixes the problem for me (on x86-64, but they are the same in this area).

---
~Randy

#3 lore raw
Quoted 26 lines · On Sat, 8 Jul 2006 20:34:24 -0700 "Randy.Dunlap" <[email protected]> wrote:
Quoted 24 lines · On Sat, 8 Jul 2006 17:43:47 -0700 Andrew Morton wrote:
Quoted 11 lines · On Fri, 7 Jul 2006 22:22:16 -0400 Matt Reuther <[email protected]> wrote:

Here is the error:

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

arch/i386/kernel/built-in.o(.text+0xe282): In function `cpu_request_microcode':
arch/i386/kernel/microcode.c:544: undefined reference to `request_firmware' arch/i386/kernel/built-in.o(.text+0xe304):arch/i386/kernel/microcode.c:573:
undefined reference to `release_firmware'

CONFIG_FW_LOADER=m
CONFIG_MICROCODE=y

So

config MICROCODE
tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support" depends on FW_LOADER

Quoted 6 lines
Quoted 2 lines

is not sufficient. There's a fix for this, but I cannot remember what it is. Help.

That 1-line depends patch fixes the problem for me (on x86-64, but they are the same in this area).

What patch is that?

#4 lore raw
Quoted 29 lines · On Sat, 8 Jul 2006 20:44:48 -0700 Andrew Morton wrote:
Quoted 26 lines · On Sat, 8 Jul 2006 20:34:24 -0700 "Randy.Dunlap" <[email protected]> wrote:
Quoted 24 lines · On Sat, 8 Jul 2006 17:43:47 -0700 Andrew Morton wrote:
Quoted 11 lines · On Fri, 7 Jul 2006 22:22:16 -0400 Matt Reuther <[email protected]> wrote:

Here is the error:

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

arch/i386/kernel/built-in.o(.text+0xe282): In function `cpu_request_microcode':
arch/i386/kernel/microcode.c:544: undefined reference to `request_firmware' arch/i386/kernel/built-in.o(.text+0xe304):arch/i386/kernel/microcode.c:573:
undefined reference to `release_firmware'

CONFIG_FW_LOADER=m
CONFIG_MICROCODE=y

So

config MICROCODE
tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support" depends on FW_LOADER

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

is not sufficient. There's a fix for this, but I cannot remember what it is. Help.

That 1-line depends patch fixes the problem for me (on x86-64, but they are the same in this area).

What patch is that?

My -mm6 does not have "depends on FW_LOADER" like you wrote above, so I thought that you had added that 1-line as a patch.

From: Randy Dunlap <[email protected]>

MICROCODE needs FW_LOADER functions.

---
 arch/i386/Kconfig   |    1 +
 arch/x86_64/Kconfig |    1 +
 2 files changed, 2 insertions(+)
arch/x86_64/Kconfig +1 -0
@@ -159,6 +159,7 @@ config X86_GOOD_APIC
 
 config MICROCODE
 	tristate "/dev/cpu/microcode - Intel CPU microcode support"
+	depends on FW_LOADER
 	---help---
 	  If you say Y here the 'File systems' section, you will be
 	  able to update the microcode on Intel processors. You will
arch/i386/Kconfig +1 -0
@@ -399,6 +399,7 @@ config X86_REBOOTFIXUPS
 
 config MICROCODE
 	tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support"
+	depends on FW_LOADER
 	---help---
 	  If you say Y here and also to "/dev file system support" in the
 	  'File systems' section, you will be able to update the microcode on

---

#5 lore raw
Quoted 34 lines · On Sat, 8 Jul 2006 21:37:34 -0700 "Randy.Dunlap" <[email protected]> wrote:
Quoted 32 lines · On Sat, 8 Jul 2006 20:44:48 -0700 Andrew Morton wrote:
Quoted 29 lines · On Sat, 8 Jul 2006 20:34:24 -0700 "Randy.Dunlap" <[email protected]> wrote:
Quoted 26 lines · On Sat, 8 Jul 2006 17:43:47 -0700 Andrew Morton wrote:
Quoted 11 lines · On Fri, 7 Jul 2006 22:22:16 -0400 Matt Reuther <[email protected]> wrote:

Here is the error:

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

arch/i386/kernel/built-in.o(.text+0xe282): In function `cpu_request_microcode':
arch/i386/kernel/microcode.c:544: undefined reference to `request_firmware' arch/i386/kernel/built-in.o(.text+0xe304):arch/i386/kernel/microcode.c:573:
undefined reference to `release_firmware'

CONFIG_FW_LOADER=m
CONFIG_MICROCODE=y

So

config MICROCODE
tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support" depends on FW_LOADER

is not sufficient. There's a fix for this, but I cannot remember what it is. Help.

Quoted 9 lines
Quoted 5 lines
Quoted 3 lines

That 1-line depends patch fixes the problem for me (on x86-64, but they are the same in this area).

What patch is that?

My -mm6 does not have "depends on FW_LOADER" like you wrote above, so I thought that you had added that 1-line as a patch.

Oh, OK, yes, I fixed that post-2.6.17-mm6.

Quoted 1 line
 arch/x86_64/Kconfig |    1 +

Although I missed x86_64.

#6 lore raw
In reply to Randy.Dunlap
Quoted 23 lines · Randy.Dunlap

From: Randy Dunlap <[email protected]>

MICROCODE needs FW_LOADER functions.

---
 arch/i386/Kconfig   |    1 +
 arch/x86_64/Kconfig |    1 +
 2 files changed, 2 insertions(+)
arch/x86_64/Kconfig +1 -0
@@ -159,6 +159,7 @@ config X86_GOOD_APIC
 
 config MICROCODE
 	tristate "/dev/cpu/microcode - Intel CPU microcode support"
+	depends on FW_LOADER
 	---help---
 	  If you say Y here the 'File systems' section, you will be
 	  able to update the microcode on Intel processors. You will

arch/i386/Kconfig config X86_REBOOTFIXUPS · line 405

Quoted 7 lines
arch/i386/Kconfig +1 -0
@@ -399,6 +399,7 @@ config X86_REBOOTFIXUPS
 
 config MICROCODE
 	tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support"
+	depends on FW_LOADER
 	---help---
 	  If you say Y here and also to "/dev file system support" in the
 	  'File systems' section, you will be able to update the microcode on

This fixes the error. Thanks for your help!
Matt

#7 lore raw
In reply to Andrew Morton
Quoted 18 lines · Andrew Morton
Quoted 11 lines · On Fri, 7 Jul 2006 22:22:16 -0400 Matt Reuther <[email protected]> wrote:

Here is the error:

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

arch/i386/kernel/built-in.o(.text+0xe282): In function `cpu_request_microcode':
arch/i386/kernel/microcode.c:544: undefined reference to `request_firmware' arch/i386/kernel/built-in.o(.text+0xe304):arch/i386/kernel/microcode.c:573:
undefined reference to `release_firmware'

CONFIG_FW_LOADER=m
CONFIG_MICROCODE=y

Quoted 7 lines

So

config MICROCODE
tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support" depends on FW_LOADER

is not sufficient.

This should be sufficient and prevent the above problem (it was only a problem if MICROCODE was a bool).

Quoted 2 lines

There's a fix for this, but I cannot remember what it is. Help.

The above dependency is technically correct, but since FW_LOADER is only an internal helper variable the more user friendly solution is:

config MICROCODE
tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support" select FW_LOADER

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed