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?
BRs,
Rock.
i had the same problem and solved by installing 10.04.2 in virtualbox and compile there: http://www.seabios.org/pipermail/seabios/2011-May/001736.html
-mustafa.
On Fri, May 20, 2011 at 5:58 AM, Rock Cui rockcui@viatech.com.cn wrote:
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?
BRs,
Rock.
Thanks for your reply, I had compiled succeed on a ubuntu10.04 PC. But I still want to know whether it is a seabios bug. I also found some messages on google, one of those mentioned:
"Just checked with the latest 2.21 snapshot, works fine."
It means that binutils version is the reason, but my version is 2.21. : (
/**************************************************************************************************************************/ ? 2011?05?20? 13:23, Mustafa Tufan ??:
i had the same problem and solved by installing 10.04.2 in virtualbox and compile there: http://www.seabios.org/pipermail/seabios/2011-May/001736.html
-mustafa.
On Fri, May 20, 2011 at 5:58 AM, Rock Cui <rockcui@viatech.com.cn mailto:rockcui@viatech.com.cn> wrote:
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? BRs, Rock.
SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios
quote: Last good version was 2.20.51.20100527-1
quote 2: Bisected binutils git tree (git://repo.or.cz/binutils.git) and this commit broke it:
commit 557189b0dd1f3dec6b00b91b9b0c5459ece72a52 Author: Alan Modra amo@bigpond.net.au Date: Thu Aug 19 05:51:47 2010 +0000
-mustafa.
On Fri, May 20, 2011 at 9:56 AM, Rock Cui rockcui@viatech.com.cn wrote:
Thanks for your reply, I had compiled succeed on a ubuntu10.04 PC. But I still want to know whether it is a seabios bug. I also found some messages on google, one of those mentioned:
"Just checked with the latest 2.21 snapshot, works fine."
It means that binutils version is the reason, but my version is 2.21. : (
/**************************************************************************************************************************/ 于 2011年05月20日 13:23, Mustafa Tufan 写道:
i had the same problem and solved by installing 10.04.2 in virtualbox and compile there: http://www.seabios.org/pipermail/seabios/2011-May/001736.html
-mustafa.
On Fri, May 20, 2011 at 5:58 AM, Rock Cui rockcui@viatech.com.cn wrote:
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?
BRs,
Rock.
SeaBIOS mailing list SeaBIOS@seabios.orghttp://www.seabios.org/mailman/listinfo/seabios
Problem resolved, need gcc4.5.2+binutils2.21.51.
于 2011年05月20日 15:40, Mustafa Tufan 写道:
quote: Last good version was 2.20.51.20100527-1
quote 2: Bisected binutils git tree (git://repo.or.cz/binutils.git http://repo.or.cz/binutils.git) and this commit broke it:
commit 557189b0dd1f3dec6b00b91b9b0c5459ece72a52 Author: Alan Modra <amo@bigpond.net.au mailto:amo@bigpond.net.au> Date: Thu Aug 19 05:51:47 2010 +0000
-mustafa.
On Fri, May 20, 2011 at 9:56 AM, Rock Cui <rockcui@viatech.com.cn mailto:rockcui@viatech.com.cn> wrote:
Thanks for your reply, I had compiled succeed on a ubuntu10.04 PC. But I still want to know whether it is a seabios bug. I also found some messages on google, one of those mentioned: "Just checked with the latest 2.21 snapshot, works fine." It means that binutils version is the reason, but my version is 2.21. : ( /**************************************************************************************************************************/ 于 2011年05月20日 13:23, Mustafa Tufan 写道:
i had the same problem and solved by installing 10.04.2 in virtualbox and compile there: http://www.seabios.org/pipermail/seabios/2011-May/001736.html -mustafa. On Fri, May 20, 2011 at 5:58 AM, Rock Cui <rockcui@viatech.com.cn <mailto:rockcui@viatech.com.cn>> wrote: 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? BRs, Rock. _______________________________________________ SeaBIOS mailing list SeaBIOS@seabios.org <mailto:SeaBIOS@seabios.org> http://www.seabios.org/mailman/listinfo/seabios
SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios
2011/5/20 Rock Cui rockcui@viatech.com.cn:
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 SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios