I am running into the following problem building coreboot v3 for an AMD Geode LX board that my company is developing:
Building coreboot v3... CP build/config.h GEN build/build.h BUILD build/coreboot.bootblock cat: write error: No space left on device make[1]: *** [/usr/src/tinygx/buildrom/buildrom-devel/work/coreboot-v3/svn/build/coreboot.bootblock] Error 1 make: *** [/usr/src/tinygx/buildrom/buildrom-devel/work/coreboot-v3/svn/build/coreboot.rom] Error 2
The stage0.init file is 4294967296 bytes and the coreboot.bootblock file is 3940851712 bytes long. The configuration that I am building is derived from the AMD DB800 board, but with an ITE Super I/O instead on the Winbond one. I have attached the .config files from the autobuilder and from coreboot itself. I would be grateful for any insight that can be provided.
is it only on this one board or all geodes?
Can you do a uname etc. so we can see what distro you are on?
ron
On 15.09.2008 17:52, Stephen Crocker wrote:
I am running into the following problem building coreboot v3 for an AMD Geode LX board that my company is developing:
Building coreboot v3... CP build/config.h GEN build/build.h BUILD build/coreboot.bootblock cat: write error: No space left on device make[1]: *** [/usr/src/tinygx/buildrom/buildrom-devel/work/coreboot-v3/svn/build/coreboot.bootblock] Error 1 make: *** [/usr/src/tinygx/buildrom/buildrom-devel/work/coreboot-v3/svn/build/coreboot.rom] Error 2
The stage0.init file is 4294967296 bytes and the coreboot.bootblock file is 3940851712 bytes long. The configuration that I am building is derived from the AMD DB800 board, but with an ITE Super I/O instead on the Winbond one. I have attached the .config files from the autobuilder and from coreboot itself. I would be grateful for any insight that can be provided.
IIRC you're hitting a linker bug. Let me quote from arch/x86/Makefile: $(obj)/stage0.o $(obj)/stage0.init $(obj)/stage0-prefixed.o: $(STAGE0_OBJ) $(Q)# We need to be careful. If stage0.o gets bigger than $(Q)# 0x4000 - 0x100, we will end up with a 4 gig file. $(Q)# I wonder if that behavior is on purpose.
Regards, Carl-Daniel
On 15.09.2008 17:52, Stephen Crocker wrote:
I am running into the following problem building coreboot v3 for an AMD Geode LX board that my company is developing:
Building coreboot v3... CP build/config.h GEN build/build.h BUILD build/coreboot.bootblock cat: write error: No space left on device make[1]: *** [/usr/src/tinygx/buildrom/buildrom-devel/work/coreboot-v3/svn/build/coreboot.bootblock] Error 1 make: *** [/usr/src/tinygx/buildrom/buildrom-devel/work/coreboot-v3/svn/build/coreboot.rom] Error 2
The stage0.init file is 4294967296 bytes and the coreboot.bootblock file is 3940851712 bytes long. The configuration that I am building is derived from the AMD DB800 board, but with an ITE Super I/O instead on the Winbond one. I have attached the .config files from the autobuilder and from coreboot itself. I would be grateful for any insight that can be provided.
Could you post a patch against an up-to-date svn tree? That will help us reproduce the issue and we can review the code for some of the less-known pitfalls.
Regards, Carl-Daniel
Carl-Daniel Hailfinger wrote:
On 15.09.2008 17:52, Stephen Crocker wrote:
I am running into the following problem building coreboot v3 for an AMD Geode LX board that my company is developing:
Building coreboot v3... CP build/config.h GEN build/build.h BUILD build/coreboot.bootblock cat: write error: No space left on device make[1]: *** [/usr/src/tinygx/buildrom/buildrom-devel/work/coreboot-v3/svn/build/coreboot.bootblock] Error 1 make: *** [/usr/src/tinygx/buildrom/buildrom-devel/work/coreboot-v3/svn/build/coreboot.rom] Error 2
The stage0.init file is 4294967296 bytes and the coreboot.bootblock file is 3940851712 bytes long. The configuration that I am building is derived from the AMD DB800 board, but with an ITE Super I/O instead on the Winbond one. I have attached the .config files from the autobuilder and from coreboot itself. I would be grateful for any insight that can be provided.
Could you post a patch against an up-to-date svn tree? That will help us reproduce the issue and we can review the code for some of the less-known pitfalls.
I have attached a patch that shows the difference between my mainboard code and the AMD DB800 code for version 622. This is the only change that I have made to the source. I am running Fedora Core 9 on VMWare. Here are some details that may be useful:
[root@localhost coreboot-v3]# uname -a Linux localhost.localdomain 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686 athlon i386 GNU/Linux [root@localhost coreboot-v3]# gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=i386-redhat-linux Thread model: posix gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) [root@localhost coreboot-v3]# ld -v GNU ld version 2.18.50.0.6-2 20080403
Only in amp/tinygx/: defconfig Only in amp/tinygx/: defconfig~ diff -r amd/db800/dts amp/tinygx/dts 22,23c22,23 < mainboard_vendor = "AMD"; < mainboard_name = "DB800"; ---
mainboard_vendor = "AMP"; mainboard_name = "TinyGX";
56c56 < /config/("superio/winbond/w83627hf/dts"); ---
/config/("superio/ite/it8716f/dts");
diff -r amd/db800/stage1.c amp/tinygx/stage1.c 31c31 < #include <superio/winbond/w83627hf/w83627hf.h> ---
#include <superio/ite/it8716f/it8716f.h>
33c33 < #define SERIAL_DEV W83627HF_SP1 ---
#define SERIAL_DEV IT8716F_SP1
38c38 < void w83627hf_enable_serial(u8 dev, u8 serial, u16 iobase); ---
void it8716f_enable_serial(u8 dev, u8 serial, u16 iobase);
49c49 < w83627hf_enable_serial(0x2e, SERIAL_DEV, SERIAL_IOBASE); ---
it8716f_enable_serial(0x2e, SERIAL_DEV, SERIAL_IOBASE);
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
Stephen Crocker wrote:
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!
Just as an update, I have not fixed this by using the AVOiDCOMBINE flag but I now get the following:
Precompiling src/rombios32.lds.S Linking (no relocs) out/rom32.o Precompiling src/rombios16.lds.S Linking out/rom16.o Precompiling src/rombios.lds.S Linking out/rom.o out/rom32.o: In function `init_bda': out/../src/post.c:102: undefined reference to `diskette_param_table2'
It looks as if the blob file is not being linked in correctly.