devel/acpi-cpufreq.v3: arch/x86/built-in.o:(.data+0x5f88): undefined reference to `x86_acpi_suspend_lowlevel'
Hi Konrad,
I tried to compile a kernel based on your latest "linux-next" tree (which seems to work fine), and the "devel/acpi-cpufreq.v3" branch pulled in. This fails with a compile error:
CC drivers/usb/storage/sierra_ms.o CC drivers/xen/pci.o CC drivers/video/efifb.o CC drivers/usb/storage/option_ms.o CC drivers/video/output.o CC drivers/xen/acpi.o CC drivers/xen/acpi_processor.o LD drivers/xen/xen-evtchn.o LD drivers/xen/xen-gntdev.o LD drivers/xen/xen-gntalloc.o LD drivers/video/fb.o LD drivers/usb/storage/usb-storage.o LD drivers/usb/storage/usb-libusual.o LD drivers/video/built-in.o LD drivers/usb/storage/built-in.o LD drivers/usb/built-in.o LD drivers/xen/built-in.o LD drivers/built-in.o LD vmlinux.o MODPOST vmlinux.o GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1
arch/x86/built-in.o:(.data+0x5f88): undefined reference to `x86_acpi_suspend_lowlevel'
make: *** [.tmp_vmlinux1] Error 1
--
Sander
Quoted 4 lines · Sander Eikelenboom
Hi Konrad,
I tried to compile a kernel based on your latest "linux-next" tree (which seems to work fine), and the "devel/acpi-cpufreq.v3" branch pulled in. This fails with a compile error:
Hmm, OK, Liang, any ideas?
Quoted 33 lines
CC drivers/usb/storage/sierra_ms.o CC drivers/xen/pci.o CC drivers/video/efifb.o CC drivers/usb/storage/option_ms.o CC drivers/video/output.o CC drivers/xen/acpi.o CC drivers/xen/acpi_processor.o LD drivers/xen/xen-evtchn.o LD drivers/xen/xen-gntdev.o LD drivers/xen/xen-gntalloc.o LD drivers/video/fb.o LD drivers/usb/storage/usb-storage.o LD drivers/usb/storage/usb-libusual.o LD drivers/video/built-in.o LD drivers/usb/storage/built-in.o LD drivers/usb/built-in.o LD drivers/xen/built-in.o LD drivers/built-in.o LD vmlinux.o MODPOST vmlinux.o GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1arch/x86/built-in.o:(.data+0x5f88): undefined reference to `x86_acpi_suspend_lowlevel'
make: *** [.tmp_vmlinux1] Error 1--
Sander
Hi,Sander
would you mind to try this patch(in the attach file ). thank you very much!
Quoted 35 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Sander Eikelenboom
Hi Konrad,
I tried to compile a kernel based on your latest "linux-next" tree (which seems to work fine), and the "devel/acpi-cpufreq.v3" branch pulled in. This fails with a compile error:
Hmm, OK, Liang, any ideas?
Quoted 29 lines
CC drivers/usb/storage/sierra_ms.o CC drivers/xen/pci.o CC drivers/video/efifb.o CC drivers/usb/storage/option_ms.o CC drivers/video/output.o CC drivers/xen/acpi.o CC drivers/xen/acpi_processor.o LD drivers/xen/xen-evtchn.o LD drivers/xen/xen-gntdev.o LD drivers/xen/xen-gntalloc.o LD drivers/video/fb.o LD drivers/usb/storage/usb-storage.o LD drivers/usb/storage/usb-libusual.o LD drivers/video/built-in.o LD drivers/usb/storage/built-in.o LD drivers/usb/built-in.o LD drivers/xen/built-in.o LD drivers/built-in.o LD vmlinux.o MODPOST vmlinux.o GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1arch/x86/built-in.o:(.data+0x5f88): undefined reference to `x86_acpi_suspend_lowlevel'
make: *** [.tmp_vmlinux1] Error 1
Quoted 4 lines
Quoted 3 lines
--
Sander
From
a7d4508949cc19fd6ade9ab5efbe05ae8e842bafMon Sep 17 00:00:00 2001
From: Tang Liang <[email protected]>
Date: Tue, 25 Oct 2011 11:51:49 +0800
Subject: [PATCH] fixed the acpi sleep disable complied bug
this is a template patch for complied bug
--- arch/x86/kernel/acpi/boot.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
arch/x86/kernel/acpi/boot.c +5 -0
@@ -557,7 +557,12 @@ int (*__acpi_override_sleep)(u8 sleep_state, u32 pm1a_ctrl, u32 pm1b_ctrl, bool *skip_rest) \ __attribute__ ((unused)) = NULL; +#ifdef CONFIG_ACPI_SLEEP int (*acpi_suspend_lowlevel)(void ) = x86_acpi_suspend_lowlevel; +#else +int (*acpi_suspend_lowlevel)(void ); +#endif +/* * success: return IRQ number (>=0) * failure: return < 0
Signature · 1 line
1.7.6
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 2 lines · you
Hi,Sander
would you mind to try this patch(in the attach file ). thank you very much!
Hi Liang,
Applied and it fixes the compile error, booted and seems to work ok.
Thx!
--
Sander
Quoted 39 lines · Konrad Rzeszutek Wilk
Quoted 38 lines · Sander Eikelenboom
Quoted 4 lines
Hi Konrad,
I tried to compile a kernel based on your latest "linux-next" tree (which seems to work fine), and the "devel/acpi-cpufreq.v3" branch pulled in. This fails with a compile error:
Hmm, OK, Liang, any ideas?
Quoted 32 lines
CC drivers/usb/storage/sierra_ms.o CC drivers/xen/pci.o CC drivers/video/efifb.o CC drivers/usb/storage/option_ms.o CC drivers/video/output.o CC drivers/xen/acpi.o CC drivers/xen/acpi_processor.o LD drivers/xen/xen-evtchn.o LD drivers/xen/xen-gntdev.o LD drivers/xen/xen-gntalloc.o LD drivers/video/fb.o LD drivers/usb/storage/usb-storage.o LD drivers/usb/storage/usb-libusual.o LD drivers/video/built-in.o LD drivers/usb/storage/built-in.o LD drivers/usb/built-in.o LD drivers/xen/built-in.o LD drivers/built-in.o LD vmlinux.o MODPOST vmlinux.o GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1arch/x86/built-in.o:(.data+0x5f88): undefined reference to `x86_acpi_suspend_lowlevel'
make: *** [.tmp_vmlinux1] Error 1--
Sander
Quoted 4 lines · Sander Eikelenboom
Hi Konrad,
I tried to compile a kernel based on your latest "linux-next" tree (which seems to work fine), and the "devel/acpi-cpufreq.v3" branch pulled in. This fails with a compile error:
Thanks for taking a spin of it. Could you attach your .config file please?
Quoted 39 lines
CC drivers/usb/storage/sierra_ms.o CC drivers/xen/pci.o CC drivers/video/efifb.o CC drivers/usb/storage/option_ms.o CC drivers/video/output.o CC drivers/xen/acpi.o CC drivers/xen/acpi_processor.o LD drivers/xen/xen-evtchn.o LD drivers/xen/xen-gntdev.o LD drivers/xen/xen-gntalloc.o LD drivers/video/fb.o LD drivers/usb/storage/usb-storage.o LD drivers/usb/storage/usb-libusual.o LD drivers/video/built-in.o LD drivers/usb/storage/built-in.o LD drivers/usb/built-in.o LD drivers/xen/built-in.o LD drivers/built-in.o LD vmlinux.o MODPOST vmlinux.o GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1arch/x86/built-in.o:(.data+0x5f88): undefined reference to `x86_acpi_suspend_lowlevel'
make: *** [.tmp_vmlinux1] Error 1--
Sander
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel