Yesterday's broken codebase hunt me back
- by sandun dhammika
I need a fun oky.
I just love this openmoko hardware and hacking into it. Please could somebody help me
to compile qemu.I 'm so sad and I want to compile qemu and it required the GCC3.x
and then I downloaded gcc 3.2 but when I configure it and build it, it gives a very
sad error message.
G_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/gcc-3.2" "infodir=/gcc-3.2/info" "libdir=/gcc-3.2/lib" "prefix=/gcc-3.2" "tooldir=/gcc-3.2/i686-pc-linux-gnu" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do
make[1]: Leaving directory `/gcc-3.2/gcc-3.2/zlib'
make[1]: Entering directory `/gcc-3.2/gcc-3.2/fastjar'
make[1]: Leaving directory `/gcc-3.2/gcc-3.2/fastjar'
make[1]: Entering directory `/gcc-3.2/gcc-3.2/gcc'
gcc -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./. -I./config -I./../include ./read-rtl.c -o read-rtl.o
In file included from ./read-rtl.c:24:0:
./rtl.h:125:3: warning: type of bit-field ‘code’ is a GCC extension
./rtl.h:128:3: warning: type of bit-field ‘mode’ is a GCC extension
./read-rtl.c: In function ‘fatal_with_file_and_line’:
./read-rtl.c:61:1: warning: traditional C rejects ISO C style function definitions
./read-rtl.c: In function ‘read_rtx’:
./read-rtl.c:662:8: error: lvalue required as increment operand
make[1]: *** [read-rtl.o] Error 1
make[1]: Leaving directory `/gcc-3.2/gcc-3.2/gcc'
make: *** [all-gcc] Error 2
This is so sad and this is sooo bad. I have searched patches and workaround all over
the Internet to this,but I couldn't find any alternative for this. I'm out of my
patience now. I want that virtual machine ready and I want to make a debug host
cos I don't have some money to buy original neo 1937 hardware.
The patch that I have found comes with a nasty error too.
I'm so sick of it.Any idea how could I fix this problem and make this work?
Please please I'm begging you somebody help me please.
Thanks all.