2003-08-22 15:53:13

by Martin J. Bligh

[permalink] [raw]
Subject: [Bug 1131] New: Unable to compile without "Software Suspend" (AMD 64)

http://bugme.osdl.org/show_bug.cgi?id=1131

Summary: Unable to compile without "Software Suspend"
Kernel Version: 2.6.0-test3-bk9
Status: NEW
Severity: high
Owner: [email protected]
Submitter: [email protected]


Hardware Environment: AMD64
Software Environment: gcc-3.3
Problem Description:

It's impossible to compile kernel without "Software Suspend" on AMD64. At the
linking time it complains:
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/x86_64/kernel/built-in.o(.text+0xc6bf): In function `do_suspend_lowlevel':
: undefined reference to `save_processor_state'
arch/x86_64/kernel/built-in.o(.text+0xc6c6): In function `do_suspend_lowlevel':
: undefined reference to `saved_context_esp'
arch/x86_64/kernel/built-in.o(.text+0xc6cd): In function `do_suspend_lowlevel':
: undefined reference to `saved_context_eax'

Steps to reproduce:
On AMD64 deselect "Power management options" -> "Software Suspend" and compile.



2003-08-22 19:27:08

by Chris Meadors

[permalink] [raw]
Subject: Re: [Bug 1131] New: Unable to compile without "Software Suspend" (AMD 64)

On Fri, 2003-08-22 at 11:52, Martin J. Bligh wrote:
> http://bugme.osdl.org/show_bug.cgi?id=1131
>
> Summary: Unable to compile without "Software Suspend"
> Kernel Version: 2.6.0-test3-bk9
> Status: NEW
> Severity: high
> Owner: [email protected]
> Submitter: [email protected]
>
>
> Hardware Environment: AMD64
> Software Environment: gcc-3.3
> Problem Description:
>
> It's impossible to compile kernel without "Software Suspend" on AMD64. At the
> linking time it complains:
> 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/x86_64/kernel/built-in.o(.text+0xc6bf): In function `do_suspend_lowlevel':
> : undefined reference to `save_processor_state'
> arch/x86_64/kernel/built-in.o(.text+0xc6c6): In function `do_suspend_lowlevel':
> : undefined reference to `saved_context_esp'
> arch/x86_64/kernel/built-in.o(.text+0xc6cd): In function `do_suspend_lowlevel':
> : undefined reference to `saved_context_eax'
>
> Steps to reproduce:
> On AMD64 deselect "Power management options" -> "Software Suspend" and compile.

It isn't just that. It is if the ACPI Support -> Sleep States is
enabled (which it is by default), you then have to enable the Software
Suspend for the link to work. So they are dependent on each other. If
you disable both it will compile, or enable both.

--
Chris