[coreboot] SerialICE Build Error

Joseph Smith joe at settoplinux.org
Sat Oct 3 04:12:44 CEST 2009


On 10/01/2009 11:49 PM, Cristi Magherusan wrote:
> On Thu, 2009-10-01 at 22:11 -0400, Joseph Smith wrote:
>> [root at 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 at net.utcluj.ro>
>
> Regards,
> Cristi
>
>
Hmm Cristi, now with your patch I'm getting:

[joe at 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


-- 
Thanks,
Joseph Smith
Set-Top-Linux
www.settoplinux.org




More information about the coreboot mailing list