I'm having a bit of a problem compiling Coreboot+SeaBIOS+VGA BIOS
Here's my output. Any ideas?
GEN build.h CC romstage.inc src/northbridge/amd/amdk8/early_ht.c:5: warning: ‘enumerate_ht_chain’ defined but not used src/northbridge/amd/amdk8/setup_resource_map.c:3: warning: ‘setup_resource_map_offset’ defined but not used src/northbridge/amd/amdk8/setup_resource_map.c:39: warning: ‘setup_resource_map_x_offset’ defined but not used src/northbridge/amd/amdk8/coherent_ht.c:208: warning: ‘fill_row’ defined but not used src/northbridge/amd/amdk8/raminit_f_dqs.c:1720: warning: ‘set_top_mem_ap’ defined but not used src/northbridge/amd/amdk8/raminit_f_dqs.c:1813: warning: ‘wait_till_sysinfo_in_ram’ defined but not used src/cpu/amd/model_fxx/init_cpus.c:182: warning: ‘wait_all_aps_started’ defined but not used POST romstage.inc GEN romstage/crt0.S CC mainboard/asus/m2v-mx_se/crt0.s CC mainboard/asus/m2v-mx_se/crt0.initobj.o CC console/console.initobj.o LINK coreboot.romstage HOSTCC util/sconfig/sconfig (link) SCONFIG mainboard/asus/m2v-mx_se/devicetree.cb CC mainboard/asus/m2v-mx_se/static.o CC lib/version.o CC console/console.o AR coreboot.a CC coreboot_ram.o CC coreboot_ram build/coreboot_ram.o: In function `__wrap___umoddi3': (.text+0x12583): undefined reference to `__umoddi3' build/coreboot_ram.o: In function `__wrap___moddi3': (.text+0x1258e): undefined reference to `__moddi3' build/coreboot_ram.o: In function `__wrap___udivdi3': (.text+0x12599): undefined reference to `__udivdi3' build/coreboot_ram.o: In function `__wrap___divdi3': (.text+0x125a4): undefined reference to `__divdi3' collect2: ld returned 1 exit status make: *** [build/coreboot_ram] Error 1
On 5/13/10 4:01 PM, Nathan Owens wrote:
I'm having a bit of a problem compiling Coreboot+SeaBIOS+VGA BIOS
Here's my output. Any ideas?
GEN build.h CC romstage.inc
src/northbridge/amd/amdk8/early_ht.c:5: warning: ‘enumerate_ht_chain’ defined but not used src/northbridge/amd/amdk8/setup_resource_map.c:3: warning: ‘setup_resource_map_offset’ defined but not used src/northbridge/amd/amdk8/setup_resource_map.c:39: warning: ‘setup_resource_map_x_offset’ defined but not used src/northbridge/amd/amdk8/coherent_ht.c:208: warning: ‘fill_row’ defined but not used src/northbridge/amd/amdk8/raminit_f_dqs.c:1720: warning: ‘set_top_mem_ap’ defined but not used src/northbridge/amd/amdk8/raminit_f_dqs.c:1813: warning: ‘wait_till_sysinfo_in_ram’ defined but not used src/cpu/amd/model_fxx/init_cpus.c:182: warning: ‘wait_all_aps_started’ defined but not used POST romstage.inc GEN romstage/crt0.S CC mainboard/asus/m2v-mx_se/crt0.s CC mainboard/asus/m2v-mx_se/crt0.initobj.o CC console/console.initobj.o LINK coreboot.romstage HOSTCC util/sconfig/sconfig (link) SCONFIG mainboard/asus/m2v-mx_se/devicetree.cb CC mainboard/asus/m2v-mx_se/static.o CC lib/version.o CC console/console.o AR coreboot.a CC coreboot_ram.o CC coreboot_ram build/coreboot_ram.o: In function `__wrap___umoddi3': (.text+0x12583): undefined reference to `__umoddi3' build/coreboot_ram.o: In function `__wrap___moddi3': (.text+0x1258e): undefined reference to `__moddi3' build/coreboot_ram.o: In function `__wrap___udivdi3': (.text+0x12599): undefined reference to `__udivdi3' build/coreboot_ram.o: In function `__wrap___divdi3': (.text+0x125a4): undefined reference to `__divdi3' collect2: ld returned 1 exit status make: *** [build/coreboot_ram] Error 1
Seems like your compiler is broken and can't find libgcc. Use the one built by the toolchain in coreboot/util/crossgcc.
$ i386-elf-gcc --print-libgcc /opt/cross/lib/gcc/i386-elf/4.4.2/libgcc.a
If it just prints libgcc.a you are missing libgcc.a
Stefan