Re: Fix in ACPICA tools broke cross compilation of tools/power/acpi
From: Andy Shevchenko <hidden>
Date: 2016-11-15 14:23:51
On Tue, Nov 15, 2016 at 12:27 PM, Andy Shevchenko [off-list ref] wrote:
On Thu, Nov 3, 2016 at 5:04 PM, Zheng, Lv [off-list ref] wrote:quoted
quoted
On Sun, Oct 30, 2016 at 9:04 AM, Zheng, Lv [off-list ref] wrote:quoted
quoted
quoted
quoted
quoted
quoted
Please try this patch: https://patchwork.kernel.org/patch/9392155/ Which makes tools/power/acpi build more robust to survive toolchains that are not generatedfromquoted
quoted
thequoted
current kernel header.
Okay, I did a totally clean build (latest linux-next kernel and buildroot) without mention patch and still see the issue described below:
But reveals another, the output path is broken: output/host/usr/bin/i586-buildroot-linux-uclibc-gcc -c -D_LINUX -I $OUT/include -I $SRC/tools/power/acpi/../../../drivers/acpi/acpica -Wall -Wst rict-prototypes -Wdeclaration-after-statement -O1 -g -DDEBUG -DACPI_APPLICATION -DACPI_SINGLE_THREAD -DACPI_DEBUGG ER -I. -o $OUT/tools/acpidbg/acpidbg.o acpidbg.c Assembler messages: Fatal error: can't create $OUT/tools/acpidbg/acpidbg.o: No such file or directory ../../Makefile.rules:26: recipe for target '$OUT/tools/acpidbg/acpidbg.o' failed $OUT — path to O= $SRC — path to kernel sources
From latest run
output/host/usr/bin/i586-buildroot-linux-uclibc-gcc -c -D_LINUX -I $OUT/include -I $SRC/tools/power/acpi/../../../drivers/acpi/acpica -Wall -Wst rict-prototypes -Wdeclaration-after-statement -O1 -g -DDEBUG -DACPI_APPLICATION -DACPI_SINGLE_THREAD -DACPI_DEBUGG ER -I. -o $OUT/tools/acpidbg/acpidbg.o acpidbg.c Of course it fails since proper folder name should be 'tools/power/acpi/tools' instead of 'tools'. -- With Best Regards, Andy Shevchenko