[root@smitty5m SerialICE-1.0]# make gcc -O2 -Wall -o romcc util/romcc.c util/romcc.c: In function ‘simplify_load’: util/romcc.c:9925: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c:9926: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c:9927: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c: In function ‘get_const_pool_ref’: util/romcc.c:23846: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ util/romcc.c:23851: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ util/romcc.c: In function ‘print_sdecl’: util/romcc.c:24660: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ ./romcc -mcpu=i386 -I. -Imainboard -o serialice.S serialice.c i386-elf-as -o serialice.o serialice.S make: i386-elf-as: Command not found make: *** [serialice.o] Error 127
Any ideas?
On Thu, 2009-10-01 at 22:11 -0400, Joseph Smith wrote:
[root@smitty5m SerialICE-1.0]# make gcc -O2 -Wall -o romcc util/romcc.c util/romcc.c: In function ‘simplify_load’: util/romcc.c:9925: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c:9926: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c:9927: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c: In function ‘get_const_pool_ref’: util/romcc.c:23846: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ util/romcc.c:23851: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ util/romcc.c: In function ‘print_sdecl’: util/romcc.c:24660: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ ./romcc -mcpu=i386 -I. -Imainboard -o serialice.S serialice.c i386-elf-as -o serialice.o serialice.S make: i386-elf-as: Command not found make: *** [serialice.o] Error 127
Any ideas?
Try the attached patch
Signed-off-by: Cristi Măgherușan cristi.magherusan@net.utcluj.ro
Regards, Cristi
This might work but you're probably better off building with the cross tools I expect.
ron
On Thu, 2009-10-01 at 21:03 -0700, ron minnich wrote:
This might work but you're probably better off building with the cross tools I expect.
ron
Yes, maybe those work better, but the problem with them is that there's no uniform name across distributions.
My approach needs the 32bit toolchain to be installed on x86-64, with no assumption on the cross-prefix of the binaries, but the toolchain must support multilib in order for it to work.
Cristi
On 10/02/2009 12:40 AM, Cristi Magherusan wrote:
On Thu, 2009-10-01 at 21:03 -0700, ron minnich wrote:
This might work but you're probably better off building with the cross tools I expect.
ron
Yes, maybe those work better, but the problem with them is that there's no uniform name across distributions.
My approach needs the 32bit toolchain to be installed on x86-64, with no assumption on the cross-prefix of the binaries, but the toolchain must support multilib in order for it to work.
Thanks Cristi I will try your patch. I don't know if it makes a difference but I am running Fedora Core 11, and I already have the libelf and binutils packages installed, that is why I am a bit surprised. Did Fedora put the elf cross building tools in a different package on fc11?
On Fri, 2009-10-02 at 06:19 -0400, Joseph Smith wrote:
On 10/02/2009 12:40 AM, Cristi Magherusan wrote:
On Thu, 2009-10-01 at 21:03 -0700, ron minnich wrote:
This might work but you're probably better off building with the cross tools I expect.
ron
Yes, maybe those work better, but the problem with them is that there's no uniform name across distributions.
My approach needs the 32bit toolchain to be installed on x86-64, with no assumption on the cross-prefix of the binaries, but the toolchain must support multilib in order for it to work.
Thanks Cristi I will try your patch. I don't know if it makes a difference but I am running Fedora Core 11, and I already have the libelf and binutils packages installed, that is why I am a bit surprised. Did Fedora put the elf cross building tools in a different package on fc11?
No idea, but my Ubuntu also had issues with the tools. I guess the makefile was first written on Suse so there it may be work out of the box.
Cristi
On 10/01/2009 11:49 PM, Cristi Magherusan wrote:
On Thu, 2009-10-01 at 22:11 -0400, Joseph Smith wrote:
[root@smitty5m SerialICE-1.0]# make gcc -O2 -Wall -o romcc util/romcc.c util/romcc.c: In function ‘simplify_load’: util/romcc.c:9925: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c:9926: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c:9927: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c: In function ‘get_const_pool_ref’: util/romcc.c:23846: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ util/romcc.c:23851: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ util/romcc.c: In function ‘print_sdecl’: util/romcc.c:24660: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ ./romcc -mcpu=i386 -I. -Imainboard -o serialice.S serialice.c i386-elf-as -o serialice.o serialice.S make: i386-elf-as: Command not found make: *** [serialice.o] Error 127
Any ideas?
Try the attached patch
Signed-off-by: Cristi Măgherușancristi.magherusan@net.utcluj.ro
Regards, Cristi
Hmm Cristi, now with your patch I'm getting:
[joe@smitty5m SerialICE-1.0]$ make gcc -O2 -Wall -o romcc util/romcc.c util/romcc.c: In function ‘simplify_load’: util/romcc.c:9925: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c:9926: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c:9927: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c: In function ‘get_const_pool_ref’: util/romcc.c:23846: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ util/romcc.c:23851: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ util/romcc.c: In function ‘print_sdecl’: util/romcc.c:24660: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ ./romcc -mcpu=i386 -I. -Imainboard -o serialice.S serialice.c as --32 -o serialice.o serialice.o.s Assembler messages: Error: can't open serialice.o.s for reading: No such file or directory make: *** [serialice.o] Error 1
On Oct 2, 2009, at 4:11, Joseph Smith joe@settoplinux.org wrote:
[root@smitty5m SerialICE-1.0]# make
Install a cross compiler from util/crossgcc or drop the cross definitions from the Makefile
gcc -O2 -Wall -o romcc util/romcc.c util/romcc.c: In function ‘simplify_load’: util/romcc.c:9925: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c:9926: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c:9927: warning: dereferencing type-punned pointer will break strict-aliasing rules util/romcc.c: In function ‘get_const_pool_ref’: util/romcc.c:23846: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ util/romcc.c:23851: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ util/romcc.c: In function ‘print_sdecl’: util/romcc.c:24660: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘size_t’ ./romcc -mcpu=i386 -I. -Imainboard -o serialice.S serialice.c i386-elf-as -o serialice.o serialice.S make: i386-elf-as: Command not found make: *** [serialice.o] Error 127
Any ideas?
-- Thanks, Joseph Smith Set-Top-Linux www.settoplinux.org
-- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
On 10/02/2009 08:37 AM, Stefan Reinauer wrote:
On Oct 2, 2009, at 4:11, Joseph Smith joe@settoplinux.org wrote:
[root@smitty5m SerialICE-1.0]# make
Install a cross compiler from util/crossgcc or drop the cross definitions from the Makefile
Ok after playing with the Makefile I am able to get SerialICE to build. I am left with a 4.3GB serialice.rom. The README says to make sure the shell works before moving on to QEMU, how do I test the shell is working before moving on?
On Fri, Oct 2, 2009 at 9:30 PM, Joseph Smith joe@settoplinux.org wrote:
Ok after playing with the Makefile I am able to get SerialICE to build. I am left with a 4.3GB serialice.rom. The README says to make sure the shell works before moving on to QEMU, how do I test the shell is working before moving on?
Something's very wrong. It should be 64K.
I can not remember -- did you first try to use the utils/crossgcc stuff in coreboot -- that's how I built it and it worked flawlessly.
Good luck.
ron
Joseph Smith wrote:
On 10/02/2009 08:37 AM, Stefan Reinauer wrote:
On Oct 2, 2009, at 4:11, Joseph Smith joe@settoplinux.org wrote:
[root@smitty5m SerialICE-1.0]# make
Install a cross compiler from util/crossgcc or drop the cross definitions from the Makefile
Ok after playing with the Makefile I am able to get SerialICE to build. I am left with a 4.3GB serialice.rom. The README says to make sure the shell works before moving on to QEMU, how do I test the shell is working before moving on?
Can you try http://www.coresystems.de/download/SerialICE-1.2.tar.bz2 ?
Some section is not included in the .rom and thus ends up at 0x0 instead of 0xffff0000, hence the size..
You should probably install the cross compiler from coreboot-v2/util/crossgcc
Stefan