[SeaBIOS] Compiling SeaBIOS for coreboot has problems with its ACPI code
Idwer Vollering
vidwer at gmail.com
Wed Jul 25 14:45:31 CEST 2012
2012/7/25 Kevin O'Connor <kevin at koconnor.net>:
> On Wed, Jul 25, 2012 at 01:44:20PM +0200, Idwer Vollering wrote:
>> Unmodified tree, at 9d6bac1d32b72cdf7c0ad009c1371a2e69084de3
>
> At a guess, the iasl warnings are confusing the
> acpi_extract_preprocess.py script. What version of iasl do you have?
The distribution version is iasl 20120620-1: ASL Optimizing Compiler
version 20120620-64 [Jun 24 2012]
coreboot build: ASL Optimizing Compiler version 20120420-64 [Jul 13 2012]
---
Details:
$ which iasl
/usr/bin/iasl
$ IASL=/usr/bin/iasl ./tools/test-build.sh
The version of LD on this system does not properly handle
alignments. As a result, this project can not be built.
The problem may be the result of this LD bug report:
http://sourceware.org/bugzilla/show_bug.cgi?id=12726
Please update to a working version of binutils and retry.
-1
~/coreboot/git/seabios] $
IASL=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/iasl
tools/test-build.sh
The version of LD on this system does not properly handle
alignments. As a result, this project can not be built.
The problem may be the result of this LD bug report:
http://sourceware.org/bugzilla/show_bug.cgi?id=12726
Please update to a working version of binutils and retry.
-1
~/coreboot/git/seabios] $
LD=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-ld
CC=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-gcc
IASL=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/iasl
tools/test-build.sh
Working around non-functional -combine
1
Now, let's override CC, IASL and LD:
$ LD=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-ld
CC=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-gcc
IASL=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/iasl
make clean ; LD=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-ld
CC=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-gcc
IASL=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/iasl
COMMONFLAGS=-I/usr/include/ make V=1
Working around non-functional -combine
Working around non-functional -combine
mkdir -p out//tools/kconfig/lxdialog
mkdir -p out//include/config
make -C out/ -f
/home/idwer/coreboot/git/seabios/tools/kconfig/Makefile
srctree=/home/idwer/coreboot/git/seabios src=tools/kconfig
obj=tools/kconfig Q=
Kconfig=/home/idwer/coreboot/git/seabios/src/Kconfig silentoldconfig
make[1]: Entering directory `/home/idwer/coreboot/git/seabios/out'
/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-gcc
-Itools/kconfig -I/home/idwer/coreboot/git/seabios/tools/kconfig
-DCURSES_LOC="<ncurses.h>" -DLOCALE -DKBUILD_NO_NLS -c -o
tools/kconfig/conf.o
/home/idwer/coreboot/git/seabios/tools/kconfig/conf.c
/home/idwer/coreboot/git/seabios/tools/kconfig/conf.c:6:20: fatal
error: locale.h: No such file or directory
compilation terminated.
make[1]: *** [tools/kconfig/conf.o] Error 1
make[1]: Leaving directory `/home/idwer/coreboot/git/seabios/out'
make: *** [out/autoconf.h] Error 2
$ LD=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-ld
CC=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-gcc
IASL=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/iasl
make clean ; LD=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-ld
CC=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-gcc
IASL=/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/iasl
COMMONFLAGS+=-I/usr/include/ make V=1
Working around non-functional -combine
Working around non-functional -combine
mkdir -p out//tools/kconfig/lxdialog
mkdir -p out//include/config
make -C out/ -f
/home/idwer/coreboot/git/seabios/tools/kconfig/Makefile
srctree=/home/idwer/coreboot/git/seabios src=tools/kconfig
obj=tools/kconfig Q=
Kconfig=/home/idwer/coreboot/git/seabios/src/Kconfig silentoldconfig
make[1]: Entering directory `/home/idwer/coreboot/git/seabios/out'
/home/idwer/coreboot/git/coreboot/util/crossgcc/xgcc/bin/i386-elf-gcc
-Itools/kconfig -I/home/idwer/coreboot/git/seabios/tools/kconfig
-DCURSES_LOC="<ncurses.h>" -DLOCALE -DKBUILD_NO_NLS -c -o
tools/kconfig/conf.o
/home/idwer/coreboot/git/seabios/tools/kconfig/conf.c
/home/idwer/coreboot/git/seabios/tools/kconfig/conf.c:6:20: fatal
error: locale.h: No such file or directory
compilation terminated.
make[1]: *** [tools/kconfig/conf.o] Error 1
make[1]: Leaving directory `/home/idwer/coreboot/git/seabios/out'
make: *** [out/autoconf.h] Error 2
$ stat /usr/include/locale.h
File: '/usr/include/locale.h'
Size: 7969 Blocks: 16 IO Block: 4096 regular file
Device: 803h/2051d Inode: 2603 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-07-25 11:59:42.729836571 +0200
Modify: 2012-07-07 12:11:50.000000000 +0200
Change: 2012-07-15 14:51:12.509791612 +0200
Birth: -
>
> -Kevin
More information about the SeaBIOS
mailing list