Emulator rebuilt by GCC 3.4(FC6) fails to run

2 views
Skip to first unread message

invain

unread,
Jan 10, 2008, 10:12:03 PM1/10/08
to Android Internals, inv...@naver.com


I read about gcc version at
http://groups.google.com/group/android-internals/browse_thread/thread/c23d08cd83742970
I am using fedoar core 6, So I tried building & running with gcc
3.4 at fedora core 6 like belows.
But, I failed When running emulator(binary) .
Anyone, Tell me solution and reason about this.

[root@fc6 android-emulator-20071212]# yum install -y compat- ( To use
compat-gcc3.4)


[root@fc6 android-emulator-20071212]# export CC=gcc34; export CXX=g+
+34;./build-emulator.sh

[root@fc6 tools]# ./emulator
qemu: fatal: Bad mode 8

R00=00000006 R01=00000000 R02=00000000 R03=c0aeb760
R04=00000000 R05=00000000 R06=00000008 R07=00000040
R08=04200000 R09=c0aed2c0 R10=80000013 R11=c03afe54
R12=e9bd37a7 R13=c03afe3c R14=c6802000 R15=c014ef14
PSR=60000093 -ZC- A svc32 1
s00=00000000(0.000000) s01=00000000(0.000000)
d00=0000000000000000(0.000000)
s02=00000000(0.000000) s03=00000000(0.000000)
d01=0000000000000000(0.000000)
s04=00000000(0.000000) s05=00000000(0.000000)
d02=0000000000000000(0.000000)
s06=00000000(0.000000) s07=00000000(0.000000)
d03=0000000000000000(0.000000)
s08=00000000(0.000000) s09=00000000(0.000000)
d04=0000000000000000(0.000000)
s10=00000000(0.000000) s11=00000000(0.000000)
d05=0000000000000000(0.000000)
s12=00000000(0.000000) s13=00000000(0.000000)
d06=0000000000000000(0.000000)
s14=00000000(0.000000) s15=00000000(0.000000)
d07=0000000000000000(0.000000)
s16=00000000(0.000000) s17=00000000(0.000000)
d08=0000000000000000(0.000000)
s18=00000000(0.000000) s19=00000000(0.000000)
d09=0000000000000000(0.000000)
s20=00000000(0.000000) s21=00000000(0.000000)
d10=0000000000000000(0.000000)
s22=00000000(0.000000) s23=00000000(0.000000)
d11=0000000000000000(0.000000)
s24=00000000(0.000000) s25=00000000(0.000000)
d12=0000000000000000(0.000000)
s26=00000000(0.000000) s27=00000000(0.000000)
d13=0000000000000000(0.000000)
s28=00000000(0.000000) s29=00000000(0.000000)
d14=0000000000000000(0.000000)
s30=00000000(0.000000) s31=00000000(0.000000)
d15=0000000000000000(0.000000)
FPSCR: 00000000
Aborted


end of Line.

invain

unread,
Jan 11, 2008, 3:31:40 AM1/11/08
to Android Internals

Of course, When I change Compiler Version from 4.1.2 to 3.3.3 in my

fedora core 6 rootFS,

I can run ./emulator successfully. And then, I can operate mobile(red

color) winodws interface.



But, Because I am using fedora distirubiton for developing embedded

linux solutions and technologies,

I want to solve this probelm (running rebuilt ./emulator command)

using compat-gcc***.rpm

files of Fedora Core 6 Only.



P.S: Below are my low version for compatibility.

[invain@fc6 ~]$ rpm -qa | grep compat

compat-libf2c-34-3.4.6-4

compat-libstdc++-296-2.96-138

compat-libstdc++-33-3.2.3-61

compat-gcc-34-c++-3.4.6-4

compat-gcc-34-3.4.6-4

compat-gcc-34-g77-3.4.6-4

compat-libgcc-296-2.96-138






On 1월11일, 오후12시12분, invain <lee...@gmail.com> wrote:
> I read about gcc version athttp://groups.google.com/group/android-internals/browse_thread/thread...

invain

unread,
Jan 11, 2008, 2:06:54 PM1/11/08
to Android Internals

I figure out qemu related problem.

1. WHen happended "CLOCK_MONOTONIC Not Defined" Error

fc6#> vi ./qemu/vl.c (659 , 678 line)
- #if defined(__linux__)
+ #if 0 // defined(__linux__)

2. When happended "XRRSetScreenConfig"'s different prototype Error

fc6#> vi sdl/src/video/x11/SDL_x11sym.h ( 195 line)
- SDL_X11_SYM(Status,XRRSetScreenConfig,(Display *dpy,
XRRScreenConfiguration *config,

Drawable draw, int size_index,

Rotation rotation, Time timestamp),
(dpy,config,draw,size_index,
rotation,timestamp),return)

+ SDL_X11_SYM(Status,XRRSetScreenConfig,(Display *dpy,
XRRScreenConfiguration *config,

Drawable draw, int size_index, int visual_group_index,

Rotation rotation, Time timestamp),
(dpy,config,draw,size_index,
visual_group_index, rotation,timestamp),return)


fc6#> vi sdl/src/video/x11/SDL_x11modes.c (255 line , 1083 line)

- XRRSetScreenConfig(SDL_Display, screen_config, SDL_Root,
size_id, saved_rotation,
CurrentTime);
+ int visual_group_index = 0;
+ XRRSetScreenConfig(SDL_Display, screen_config, SDL_Root,
size_id, visual_group_index,
saved_rotation, CurrentTime);
> > end of Line.- 따온 텍스트 숨기기 -
>
> - 따온 텍스트 보기 -
Reply all
Reply to author
Forward
0 new messages