[SeaBIOS] Unable to compile under NetBSD with gcc 4.1.3

Roger Pau Monne roger.pau at citrix.com
Fri Sep 14 11:02:03 CEST 2012


Hello,

I'm trying to compile SeaBIOS under NetBSD 5.1.2, that comes with gcc
4.1.3, and I'm getting the following error (I'm pasting the whole build
log, since it's not really long, and may help in debugging):

  Working around non-functional -fwhole-program
  Build Kconfig config file
  Compiling IASL out/acpi-dsdt.hex
ASL Input:  out/acpi-dsdt.dsl.i - 621 lines, 22543 bytes, 334 keywords
AML Output: out/acpi-dsdt.aml - 4585 bytes, 156 named objects, 178
executable opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 257 Optimizations
  Compiling IASL out/ssdt-proc.hex
ASL Input:  out/ssdt-proc.dsl.i - 36 lines, 765 bytes, 8 keywords
AML Output: out/ssdt-proc.aml - 120 bytes, 6 named objects, 2 executable
opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
  Compiling IASL out/ssdt-pcihp.hex
ASL Input:  out/ssdt-pcihp.dsl.i - 52 lines, 755 bytes, 6 keywords
AML Output: out/ssdt-pcihp.aml - 88 bytes, 5 named objects, 1 executable
opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
  Compiling IASL out/ssdt-susp.hex
ASL Input:  out/ssdt-susp.dsl.i - 53 lines, 690 bytes, 4 keywords
AML Output: out/ssdt-susp.aml - 78 bytes, 4 named objects, 0 executable
opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations
  Compiling whole program out/ccode32flat.o
  Compiling whole program out/code32seg.o
  Compiling whole program out/ccode16.o
  Compiling to assembler out/asm-offsets.s
  Generating offset file out/asm-offsets.h
  Compiling (16bit) out/romlayout.o
  Building ld scripts
Version: rel-1.7.1-25-g455a7c8-20120914_095529-.uk.xensource.com
Fixed space: 0xe05b-0x10000  total: 8101  slack: 5  Percent slack: 0.1%
16bit size:           55072
32bit segmented size: 2118
32bit flat size:      19418
32bit flat init size: 61824
Lowmem size:          2176
  Linking out/rom16.o
  Stripping out/rom16.strip.o
  Linking out/rom32seg.o
  Stripping out/rom32seg.strip.o
  Linking out/rom.o
out/romlayout32flat.lds:2042: undefined symbol `code32flat_start'
referenced in expression
gmake: *** [out/rom.o] Error 1

This error only happens when compiling with gcc 4.1.3, with gcc 4.5.3
(under NetBSD also) the build process is successful. Since I guess it's
a compiler problem, is there anyway I can workaround this issue?

Thanks, Roger.



More information about the SeaBIOS mailing list