[SeaBIOS] Compiling SeaBIOS for coreboot has problems with its ACPI code

Idwer Vollering vidwer at gmail.com
Thu Jul 26 15:56:50 CEST 2012


2012/7/26 Kevin O'Connor <kevin at koconnor.net>:
> On Thu, Jul 26, 2012 at 11:25:51AM +0200, Idwer Vollering wrote:
>> 2012/7/26 Kevin O'Connor <kevin at koconnor.net>:
>> > On Wed, Jul 25, 2012 at 02:45:31PM +0200, Idwer Vollering wrote:
>> >> 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]
>> >
>> > Does the patch below fix this for you?
>>
>> Unfortunately it doesn't fix this, I just tested a 'regular' compile
>> (make menuconfig and exit without changing any option) which seems to
>> stop with the same errors.
>>
>> With this patch (and reverting the change to src/acpi-dsdt.dsl) I see
>> some progress (see below for the resulting output of make):
>>
>> diff --git a/Makefile b/Makefile
>> index dfdec5c..b55705b 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -97,7 +97,7 @@ ifeq "$(COMPSTRAT)" "1"
>>  # First method - use -fwhole-program without -combine.
>>  define whole-compile
>>  @echo "  Compiling whole program $3"
>> -$(Q)printf '$(foreach i,$2,#include "../$i"\n)' > $3.tmp.c
>> +$(Q)printf '$(foreach i,$2,#include "../$i")\n' >> $3.tmp.c
>>  $(Q)$(CC) $1 -fwhole-program -DWHOLE_PROGRAM -c $3.tmp.c -o $3
>>  endef
>
> I don't understand why you're changing the makefile.
>
> [...]
>>   Linking out/rom16.o
>> ld -T out/romlayout16.lds out/code16.o -o out/rom16.o
>> out/code16.o: In function `handle_12':
>> /home/idwer/coreboot/git/seabios/out/../src/misc.c:29: undefined
>> reference to `__debug_enter'
>
> This is typically due to oddities with the compiler.  What version of
> compiler and binutils do you have?  Can you tar up the "out/"
> directory and email it to me?

http://ra.openbios.org/~idwer/seabios_out.tar

>
> -Kevin



More information about the SeaBIOS mailing list