On Thu, 2009-10-01 at 22:11 -0400, Joseph Smith wrote: > [r...@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 <[email protected]> Regards, Cristi -- Ing. Cristi Măgherușan, System/Network Engineer Technical University of Cluj-Napoca, Romania http://cc.utcluj.ro +40264 401247
diff -Naur /tmp/SerialICE-1.2/Makefile ./Makefile --- /tmp/SerialICE-1.2/Makefile 2009-10-02 02:59:01.000000000 +0300 +++ ./Makefile 2009-10-02 06:44:04.000000000 +0300 @@ -23,13 +23,12 @@ HOSTCFLAGS= -O2 -Wall PCREFLAGS=-I/opt/local/include -L/opt/local/lib -lpcre -CROSS=i386-elf- -AS=$(CROSS)as -CC=$(CROSS)gcc -OBJCOPY=$(CROSS)objcopy -NM=$(CROSS)nm +AS=as +CC=gcc +OBJCOPY=objcopy +NM=nm -LDFLAGS=-Wa,--divide -nostdlib -nostartfiles -static -T serialice.ld +LDFLAGS = --32 -Wa,--divide -nostdlib -nostartfiles -static -T serialice.ld SOURCES = serialice.c chipset.c config.h serial.c types.h mainboard/*.c @@ -58,7 +57,7 @@ $(NM) $@ | sort -u > serialice-gcc.map serialice-pre.s: $(SOURCES) ./xmmstack - $(CC) -I. -Imainboard -fomit-frame-pointer -fno-stack-protector -DVERSION=\"$(VERSION)\" -S $< -o serialice-pre.s + $(CC) --32 -I. -Imainboard -fomit-frame-pointer -fno-stack-protector -DVERSION=\"$(VERSION)\" -S $< -o serialice-pre.s serialice-gcc.S: serialice-pre.s ./xmmstack serialice-pre.s @@ -79,4 +78,4 @@ %.o: %.S $(CPP) -DVERSION=\"$(VERSION)\" -o [email protected] $^ - $(AS) -o $@ [email protected] + $(AS) --32 -o $@ [email protected]
signature.asc
Description: This is a digitally signed message part
-- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

