I have now been able to build an image using Ubuntu Edgy, which implies
that the problem is specific to Fedora Core 9. I had problems building
smbus_initram.c but the following additions helped:
#include <arch/x86/cpu.h> to southbridge/amd/cs5536/smbus_initram.c
#include <globalvars.h> to include/arch/x86/cpu.h
I am now trying to build a SeaBIOS payload but I am getting very odd
errors. I have attached a log listing these. The later ones are
particularly alarming, as they seem to indicate that a header file is
conflicting with itself!
Compiling whole program out/blob.16.s
In file included from src/util.c:8:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/output.c:297: error: previous definition of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/output.c:305: error: previous definition of â__set_code_failâ was here
src/util.c:16: error: conflicting types for âcall16â
src/util.h:67: error: previous declaration of âcall16â was here
src/util.c:30: error: conflicting types for â__call16_intâ
src/util.h:68: error: previous declaration of â__call16_intâ was here
In file included from src/floppy.c:12:
src/util.h:67: error: conflicting types for âcall16â
src/util.h:67: error: previous declaration of âcall16â was here
src/util.h:68: error: conflicting types for â__call16_intâ
src/util.h:68: error: previous declaration of â__call16_intâ was here
src/util.h:87: error: conflicting types for â__debug_enterâ
src/output.c:283: error: previous definition of â__debug_enterâ was here
src/util.h:88: error: conflicting types for â__debug_stubâ
src/output.c:290: error: previous definition of â__debug_stubâ was here
src/util.h:103: error: conflicting types for âhandle_15c2â
src/util.h:103: error: previous declaration of âhandle_15c2â was here
src/util.h:118: error: conflicting types for âhandle_1583â
src/util.h:118: error: previous declaration of âhandle_1583â was here
src/util.h:119: error: conflicting types for âhandle_1586â
src/util.h:119: error: previous declaration of âhandle_1586â was here
src/util.h:122: error: conflicting types for âhandle_1553â
src/util.h:122: error: previous declaration of âhandle_1553â was here
src/util.h:125: error: conflicting types for âhandle_1ab1â
src/util.h:125: error: previous declaration of âhandle_1ab1â was here
In file included from src/floppy.c:15:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
In file included from src/system.c:8:
src/util.h:67: error: conflicting types for âcall16â
src/util.h:67: error: previous declaration of âcall16â was here
src/util.h:68: error: conflicting types for â__call16_intâ
src/util.h:68: error: previous declaration of â__call16_intâ was here
src/util.h:87: error: conflicting types for â__debug_enterâ
src/util.h:87: error: previous declaration of â__debug_enterâ was here
src/util.h:88: error: conflicting types for â__debug_stubâ
src/util.h:88: error: previous declaration of â__debug_stubâ was here
src/util.h:103: error: conflicting types for âhandle_15c2â
src/util.h:103: error: previous declaration of âhandle_15c2â was here
src/util.h:118: error: conflicting types for âhandle_1583â
src/util.h:118: error: previous declaration of âhandle_1583â was here
src/util.h:119: error: conflicting types for âhandle_1586â
src/util.h:119: error: previous declaration of âhandle_1586â was here
src/util.h:122: error: conflicting types for âhandle_1553â
src/util.h:122: error: previous declaration of âhandle_1553â was here
src/util.h:125: error: conflicting types for âhandle_1ab1â
src/util.h:125: error: previous declaration of âhandle_1ab1â was here
In file included from src/system.c:13:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
In file included from src/mouse.c:11:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
src/mouse.c:261: error: conflicting types for âhandle_15c2â
src/util.h:103: error: previous declaration of âhandle_15c2â was here
In file included from src/kbd.c:9:
src/util.h:67: error: conflicting types for âcall16â
src/util.h:67: error: previous declaration of âcall16â was here
src/util.h:68: error: conflicting types for â__call16_intâ
src/util.h:68: error: previous declaration of â__call16_intâ was here
src/util.h:87: error: conflicting types for â__debug_enterâ
src/util.h:87: error: previous declaration of â__debug_enterâ was here
src/util.h:88: error: conflicting types for â__debug_stubâ
src/util.h:88: error: previous declaration of â__debug_stubâ was here
src/util.h:103: error: conflicting types for âhandle_15c2â
src/util.h:103: error: previous declaration of âhandle_15c2â was here
src/util.h:118: error: conflicting types for âhandle_1583â
src/util.h:118: error: previous declaration of âhandle_1583â was here
src/util.h:119: error: conflicting types for âhandle_1586â
src/util.h:119: error: previous declaration of âhandle_1586â was here
src/util.h:122: error: conflicting types for âhandle_1553â
src/util.h:122: error: previous declaration of âhandle_1553â was here
src/util.h:125: error: conflicting types for âhandle_1ab1â
src/util.h:125: error: previous declaration of âhandle_1ab1â was here
In file included from src/kbd.c:12:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
src/kbd.c: In function âprocess_keyâ:
src/kbd.c:581: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:582: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:584: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:585: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:590: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:596: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:597: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:599: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:600: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:605: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:606: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:608: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/kbd.c:609: warning: dereferencing type-punned pointer will break
strict-aliasing rules
In file included from src/serial.c:9:
src/util.h: At top level:
src/util.h:67: error: conflicting types for âcall16â
src/util.h:67: error: previous declaration of âcall16â was here
src/util.h:68: error: conflicting types for â__call16_intâ
src/util.h:68: error: previous declaration of â__call16_intâ was here
src/util.h:87: error: conflicting types for â__debug_enterâ
src/util.h:87: error: previous declaration of â__debug_enterâ was here
src/util.h:88: error: conflicting types for â__debug_stubâ
src/util.h:88: error: previous declaration of â__debug_stubâ was here
src/util.h:103: error: conflicting types for âhandle_15c2â
src/util.h:103: error: previous declaration of âhandle_15c2â was here
src/util.h:118: error: conflicting types for âhandle_1583â
src/util.h:118: error: previous declaration of âhandle_1583â was here
src/util.h:119: error: conflicting types for âhandle_1586â
src/util.h:119: error: previous declaration of âhandle_1586â was here
src/util.h:122: error: conflicting types for âhandle_1553â
src/util.h:122: error: previous declaration of âhandle_1553â was here
src/util.h:125: error: conflicting types for âhandle_1ab1â
src/util.h:125: error: previous declaration of âhandle_1ab1â was here
In file included from src/serial.c:10:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
In file included from src/clock.c:13:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
src/clock.c:403: error: conflicting types for âhandle_1586â
src/util.h:119: error: previous declaration of âhandle_1586â was here
src/clock.c:440: error: conflicting types for âhandle_1583â
src/util.h:118: error: previous declaration of âhandle_1583â was here
In file included from src/pic.c:9:
src/util.h:67: error: conflicting types for âcall16â
src/util.h:67: error: previous declaration of âcall16â was here
src/util.h:68: error: conflicting types for â__call16_intâ
src/util.h:68: error: previous declaration of â__call16_intâ was here
src/util.h:87: error: conflicting types for â__debug_enterâ
src/util.h:87: error: previous declaration of â__debug_enterâ was here
src/util.h:88: error: conflicting types for â__debug_stubâ
src/util.h:88: error: previous declaration of â__debug_stubâ was here
src/util.h:103: error: conflicting types for âhandle_15c2â
src/util.h:103: error: previous declaration of âhandle_15c2â was here
src/util.h:118: error: conflicting types for âhandle_1583â
src/util.h:118: error: previous declaration of âhandle_1583â was here
src/util.h:119: error: conflicting types for âhandle_1586â
src/util.h:119: error: previous declaration of âhandle_1586â was here
src/util.h:122: error: conflicting types for âhandle_1553â
src/util.h:122: error: previous declaration of âhandle_1553â was here
src/util.h:125: error: conflicting types for âhandle_1ab1â
src/util.h:125: error: previous declaration of âhandle_1ab1â was here
In file included from src/cdrom.c:8:
src/disk.h:95: error: conflicting types for â__disk_retâ
src/disk.h:95: error: previous declaration of â__disk_retâ was here
src/disk.h:102: error: conflicting types for âfloppy_13â
src/floppy.c:719: error: previous definition of âfloppy_13â was here
src/disk.h:106: error: conflicting types for âdisk_13â
src/disk.h:106: error: previous declaration of âdisk_13â was here
src/disk.h:107: error: conflicting types for âdisk_13XXâ
src/disk.h:107: error: previous declaration of âdisk_13XXâ was here
src/disk.h:111: error: conflicting types for âcdrom_13â
src/disk.h:111: error: previous declaration of âcdrom_13â was here
src/disk.h:112: error: conflicting types for âcdemu_13â
src/disk.h:112: error: previous declaration of âcdemu_13â was here
src/disk.h:113: error: conflicting types for âcdemu_134bâ
src/disk.h:113: error: previous declaration of âcdemu_134bâ was here
In file included from src/cdrom.c:11:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
src/cdrom.c: In function âcdemu_134bâ:
src/cdrom.c:281: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/cdrom.c:282: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/cdrom.c:283: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/cdrom.c:284: warning: dereferencing type-punned pointer will break
strict-aliasing rules
In file included from src/disk.c:11:
src/util.h: At top level:
src/util.h:67: error: conflicting types for âcall16â
src/util.h:67: error: previous declaration of âcall16â was here
src/util.h:68: error: conflicting types for â__call16_intâ
src/util.h:68: error: previous declaration of â__call16_intâ was here
src/util.h:87: error: conflicting types for â__debug_enterâ
src/util.h:87: error: previous declaration of â__debug_enterâ was here
src/util.h:88: error: conflicting types for â__debug_stubâ
src/util.h:88: error: previous declaration of â__debug_stubâ was here
src/util.h:103: error: conflicting types for âhandle_15c2â
src/util.h:103: error: previous declaration of âhandle_15c2â was here
src/util.h:118: error: conflicting types for âhandle_1583â
src/util.h:118: error: previous declaration of âhandle_1583â was here
src/util.h:119: error: conflicting types for âhandle_1586â
src/util.h:119: error: previous declaration of âhandle_1586â was here
src/util.h:122: error: conflicting types for âhandle_1553â
src/util.h:122: error: previous declaration of âhandle_1553â was here
src/util.h:125: error: conflicting types for âhandle_1ab1â
src/util.h:125: error: previous declaration of âhandle_1ab1â was here
In file included from src/disk.c:14:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
src/disk.c:24: error: conflicting types for â__disk_retâ
src/disk.h:95: error: previous declaration of â__disk_retâ was here
src/disk.c: In function âextended_accessâ:
src/disk.c:134: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:135: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:137: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:152: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c: In function âdisk_1348â:
src/disk.c:360: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:380: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:383: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:386: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:395: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:401: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:410: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:412: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:413: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:466: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c:469: warning: dereferencing type-punned pointer will break
strict-aliasing rules
src/disk.c: At top level:
src/disk.c:550: error: conflicting types for âdisk_13XXâ
src/disk.h:107: error: previous declaration of âdisk_13XXâ was here
src/disk.c:556: error: conflicting types for âdisk_13â
src/disk.h:106: error: previous declaration of âdisk_13â was here
In file included from src/apm.c:10:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
In file included from src/apm.c:12:
src/util.h:67: error: conflicting types for âcall16â
src/util.h:67: error: previous declaration of âcall16â was here
src/util.h:68: error: conflicting types for â__call16_intâ
src/util.h:68: error: previous declaration of â__call16_intâ was here
src/util.h:87: error: conflicting types for â__debug_enterâ
src/util.h:87: error: previous declaration of â__debug_enterâ was here
src/util.h:88: error: conflicting types for â__debug_stubâ
src/util.h:88: error: previous declaration of â__debug_stubâ was here
src/util.h:103: error: conflicting types for âhandle_15c2â
src/util.h:103: error: previous declaration of âhandle_15c2â was here
src/util.h:118: error: conflicting types for âhandle_1583â
src/util.h:118: error: previous declaration of âhandle_1583â was here
src/util.h:119: error: conflicting types for âhandle_1586â
src/util.h:119: error: previous declaration of âhandle_1586â was here
src/util.h:122: error: conflicting types for âhandle_1553â
src/util.h:122: error: previous declaration of âhandle_1553â was here
src/util.h:125: error: conflicting types for âhandle_1ab1â
src/util.h:125: error: previous declaration of âhandle_1ab1â was here
In file included from src/pcibios.c:11:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
src/pcibios.c:150: error: conflicting types for âhandle_1ab1â
src/util.h:125: error: previous declaration of âhandle_1ab1â was here
In file included from src/vgahooks.c:7:
src/bregs.h:89: error: conflicting types for â__set_failâ
src/bregs.h:89: error: previous declaration of â__set_failâ was here
src/bregs.h:90: error: conflicting types for â__set_code_failâ
src/bregs.h:90: error: previous declaration of â__set_code_failâ was here
In file included from src/vgahooks.c:8:
src/util.h:67: error: conflicting types for âcall16â
src/util.h:67: error: previous declaration of âcall16â was here
src/util.h:68: error: conflicting types for â__call16_intâ
src/util.h:68: error: previous declaration of â__call16_intâ was here
src/util.h:87: error: conflicting types for â__debug_enterâ
src/util.h:87: error: previous declaration of â__debug_enterâ was here
src/util.h:88: error: conflicting types for â__debug_stubâ
src/util.h:88: error: previous declaration of â__debug_stubâ was here
src/util.h:103: error: conflicting types for âhandle_15c2â
src/util.h:103: error: previous declaration of âhandle_15c2â was here
src/util.h:118: error: conflicting types for âhandle_1583â
src/util.h:118: error: previous declaration of âhandle_1583â was here
src/util.h:119: error: conflicting types for âhandle_1586â
src/util.h:119: error: previous declaration of âhandle_1586â was here
src/util.h:122: error: conflicting types for âhandle_1553â
src/apm.c:194: error: previous definition of âhandle_1553â was here
src/util.h:125: error: conflicting types for âhandle_1ab1â
src/util.h:125: error: previous declaration of âhandle_1ab1â was here
make[1]: *** [out/blob.16.s] Error 1
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot