2011/5/20 Rock Cui <[email protected]>: > I got the latest seabios source code from git server, than got a strange > error after make: > /**********************************************************************************************************************/ > cl2@rockcui-S12-ubuntu:~/work/seabios-orl$ make > Build Kconfig config file > Compiling whole program out/ccode.16.s > Compiling to assembler out/asm-offsets.s > Generating offset file out/asm-offsets.h > Compiling (16bit) out/code16.o > Compiling whole program out/ccode32flat.o > Compiling whole program out/code32seg.o > Building ld scripts (version "pre-0.6.3-20110520_104358-rockcui-S12-ubuntu") > Fixed space: 0xe05b-0x10000 total: 8101 slack: 17 Percent slack: 0.2% > 16bit size: 39408 > 32bit segmented size: 1464 > 32bit flat size: 12264 > 32bit flat init size: 59088 > Linking out/rom16.o > out/romlayout16.lds:431 cannot move location counter backwards (from > 000000000000cd8c to 000000000000cd70) > make: *** [out/rom16.o] error 1 > /************************************************************************************************************************/ > My development evironment: > ubuntu 11.04-i386 > gcc-4.5-8ubuntu5 > > Can anyone give me some advices?
Copy/pasting an earlier reply: http://www.seabios.org/pipermail/seabios/2011-May/001738.html Download coreboot's source code from subversion, then use crossgcc to build SeaBIOS: http://www.coreboot.org/Download_coreboot $ svn co svn://coreboot.org/coreboot/trunk ~/coreboot/svn/trunk/ $ cd ~/coreboot/svn/trunk/util/crossgcc/ $ ./buildgcc $ cd ~/seabios/seabios-master $ export PATH=~/coreboot/svn/trunk/util/crossgcc/xgcc/bin/:"$PATH" $ make HOSTCC=i386-elf-gcc LD=i386-elf-ld The buildgcc script can take a --jobs parameter, which is passed to "make". See ./buildgcc --help If you end up with this error "(..)tools/kconfig/conf.c:6:20: fatal error: locale.h: No such file or directory", run make like this: make HOSTCC=i386-elf-gcc LD=i386-elf-ld MAKEFLAGS=-I/full/path/to/locale.h > > BRs, > > Rock. > > _______________________________________________ > SeaBIOS mailing list > [email protected] > http://www.seabios.org/mailman/listinfo/seabios > _______________________________________________ SeaBIOS mailing list [email protected] http://www.seabios.org/mailman/listinfo/seabios
