* [Qemu-devel] Cross compiling qemu for ARM
@ 2008-11-28 10:13 Steffen Liebergeld
2008-11-28 11:55 ` [Qemu-devel] " Steffen Liebergeld
2008-11-28 13:27 ` [Qemu-devel] " Paul Brook
0 siblings, 2 replies; 8+ messages in thread
From: Steffen Liebergeld @ 2008-11-28 10:13 UTC (permalink / raw)
To: qemu-devel
Hi,
I'm trying to get Qemu 0.9.1 cross compiled for the ARM platform.
I have been using these configure flags:
--target-list=arm-softmmu
--source-path=$HOME/Source/qemu-0.9.1/
--cross-prefix=arm-linux-
--static
--host-cc=/usr/bin/gcc-3.4
--prefix=$HOME/Binary/qemu/
--disable-linux-user
--disable-darwin-user
--disable-sdl
--disable-gfx-check
I have the complete arm crosscompiling toolchain including crosscompilers and
libs like zlib. (Unfortunatly I didn't find an option to give paths to zlib
headers and lib, so I set them manually. Do you know an easy way to set them?)
Compiling goes well until dyngen tries to execute:
make[1]: Entering directory `/home/s1010824/Build/arm/qemu/arm-softmmu'
../dyngen -o op.h op.o
dyngen: op_movl_T0_r0, 8: function too small
make[1]: *** [op.h] Error 1
make[1]: Leaving directory `/home/s1010824/Build/arm/qemu/arm-softmmu'
Do you have an idea how I can fix that? Did you do cross compilation of qemu
yourself and know good documention about it?
Thank you in advance,
Steffen Liebergeld
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Re: Cross compiling qemu for ARM
2008-11-28 10:13 [Qemu-devel] Cross compiling qemu for ARM Steffen Liebergeld
@ 2008-11-28 11:55 ` Steffen Liebergeld
2008-11-28 12:07 ` Laurent Desnogues
2008-11-28 13:27 ` [Qemu-devel] " Paul Brook
1 sibling, 1 reply; 8+ messages in thread
From: Steffen Liebergeld @ 2008-11-28 11:55 UTC (permalink / raw)
To: qemu-devel
Hi (again),
Steffen Liebergeld <usenet@gmx.eu> schrieb:
> Hi,
>
> I'm trying to get Qemu 0.9.1 cross compiled for the ARM platform.
>
> I have been using these configure flags:
> --target-list=arm-softmmu
> --source-path=$HOME/Source/qemu-0.9.1/
> --cross-prefix=arm-linux-
> --static
> --host-cc=/usr/bin/gcc-3.4
> --prefix=$HOME/Binary/qemu/
> --disable-linux-user
> --disable-darwin-user
> --disable-sdl
> --disable-gfx-check
I forgot those:
--cpu=armv4l
and:
--extra-cflags=-I$HOME/Build/arm/buildroot/build_arm/zlib-1.2.3
--extra-ldflags=-L$HOME/Build/arm/buildroot/build_arm/zlib-1.2.3
Which solve my zlib related problem.
Now the build stops like this:
make[1]: Entering directory `/home/s1010824/Build/arm/qemu/arm-softmmu'
arm-linux-gcc -Wall -O2 -g -fno-strict-aliasing -fno-reorder-blocks -fno-gcse -fno-optimize-sibling-calls
-fno-align-labels -fno-align-jumps -fno-align-functions -mno-sched-prolog -fno-omit-frame-pointer -I. -I.. -I/home/s1010824/Source/qemu-0.9.1//target-arm -I/home/s1010824/Source/qemu-0.9.1/ -MMD -MP -DNEED_CPU_H -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/s1010824/Source/qemu-0.9.1//fpu -DHAS_AUDIO -I/home/s1010824/Source/qemu-0.9.1//slirp -c -o op.o /home/s1010824/Source/qemu-0.9.1//target-arm/op.c
/home/s1010824/Source/qemu-0.9.1/target-arm/op.c: In function `op_goto_tb0':
/home/s1010824/Source/qemu-0.9.1/target-arm/op.c:369: warning: `used' attribute ignored
/home/s1010824/Source/qemu-0.9.1/target-arm/op.c:369: warning: `used' attribute ignored
/home/s1010824/Source/qemu-0.9.1/target-arm/op.c:369: warning: unused variable `dummy0'
/home/s1010824/Source/qemu-0.9.1/target-arm/op.c:369: warning: unused variable `__op_label0'
/home/s1010824/Source/qemu-0.9.1/target-arm/op.c: In function `op_goto_tb1':
/home/s1010824/Source/qemu-0.9.1/target-arm/op.c:374: warning: `used' attribute ignored
/home/s1010824/Source/qemu-0.9.1/target-arm/op.c:374: warning: `used' attribute ignored
/home/s1010824/Source/qemu-0.9.1/target-arm/op.c:374: warning: unused variable `dummy1'
/home/s1010824/Source/qemu-0.9.1/target-arm/op.c:374: warning: unused variable `__op_label1'
In file included from /home/s1010824/Source/qemu-0.9.1/target-arm/op.c:1923:
/home/s1010824/Source/qemu-0.9.1/target-arm/op_iwmmxt.c: In function `op_iwmmxt_muluw_M0_wRn':
/home/s1010824/Source/qemu-0.9.1/target-arm/op_iwmmxt.c:144: unable to find a register to spill in class `GENERAL_REGS'
/home/s1010824/Source/qemu-0.9.1/target-arm/op_iwmmxt.c:144: this is the insn:
(insn 143 139 201 (set (reg:DI 85)
(ior:DI (reg:DI 54)
(reg:DI 82))) 94 {iordi3} (insn_list 142 (insn_list 60 (nil)))
(expr_list:REG_DEAD (reg:DI 54)
(expr_list:REG_DEAD (reg:DI 82)
(nil))))
/home/s1010824/Source/qemu-0.9.1/target-arm/op_iwmmxt.c:144: confused by earlier errors, bailing out
make[1]: *** [op.o] Error 1
I guess this is a bug in gcc? Which version do you use to compile qemu on an ARM host?
Many thanks in advance,
Steffen Liebergeld
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: Cross compiling qemu for ARM
2008-11-28 11:55 ` [Qemu-devel] " Steffen Liebergeld
@ 2008-11-28 12:07 ` Laurent Desnogues
2008-11-28 13:09 ` Steffen Liebergeld
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Desnogues @ 2008-11-28 12:07 UTC (permalink / raw)
To: qemu-devel
On Fri, Nov 28, 2008 at 12:55 PM, Steffen Liebergeld <usenet@gmx.eu> wrote:
> I guess this is a bug in gcc? Which version do you use to compile qemu on an ARM host?
qemu 0.9.1 requires a gcc 3.x.y compiler.
Laurent
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Re: Cross compiling qemu for ARM
2008-11-28 12:07 ` Laurent Desnogues
@ 2008-11-28 13:09 ` Steffen Liebergeld
2008-11-28 13:21 ` Laurent Desnogues
0 siblings, 1 reply; 8+ messages in thread
From: Steffen Liebergeld @ 2008-11-28 13:09 UTC (permalink / raw)
To: qemu-devel
Hi,
Laurent Desnogues <laurent.desnogues@gmail.com> schrieb:
> On Fri, Nov 28, 2008 at 12:55 PM, Steffen Liebergeld <usenet@gmx.eu> wrote:
>> I guess this is a bug in gcc? Which version do you use to compile qemu on
>> an ARM host?
>
> qemu 0.9.1 requires a gcc 3.x.y compiler.
I'm using 3.2.2. Did you use a specific version?
Steffen
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: Cross compiling qemu for ARM
2008-11-28 13:09 ` Steffen Liebergeld
@ 2008-11-28 13:21 ` Laurent Desnogues
0 siblings, 0 replies; 8+ messages in thread
From: Laurent Desnogues @ 2008-11-28 13:21 UTC (permalink / raw)
To: qemu-devel
On Fri, Nov 28, 2008 at 2:09 PM, Steffen Liebergeld <usenet@gmx.eu> wrote:
>>
>> qemu 0.9.1 requires a gcc 3.x.y compiler.
>
> I'm using 3.2.2. Did you use a specific version?
Well I don't compile for ARM host and never used 0.9.1.
So I'll let others answer.
I use svn version which, except for PowerPC target, can
be compiled with gcc 4. However I am not sure of the
quality of the ARM host in svn; it seems to have been
tested by few people; Andrzej, any comment? :)
Laurent
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Cross compiling qemu for ARM
2008-11-28 10:13 [Qemu-devel] Cross compiling qemu for ARM Steffen Liebergeld
2008-11-28 11:55 ` [Qemu-devel] " Steffen Liebergeld
@ 2008-11-28 13:27 ` Paul Brook
2008-11-28 14:58 ` [Qemu-devel] " Steffen Liebergeld
1 sibling, 1 reply; 8+ messages in thread
From: Paul Brook @ 2008-11-28 13:27 UTC (permalink / raw)
To: qemu-devel; +Cc: Steffen Liebergeld
On Friday 28 November 2008, Steffen Liebergeld wrote:
> Hi,
>
> I'm trying to get Qemu 0.9.1 cross compiled for the ARM platform.
Don't bother. Use SVN.
Paul
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Re: Cross compiling qemu for ARM
2008-11-28 13:27 ` [Qemu-devel] " Paul Brook
@ 2008-11-28 14:58 ` Steffen Liebergeld
2008-11-30 3:01 ` andrzej zaborowski
0 siblings, 1 reply; 8+ messages in thread
From: Steffen Liebergeld @ 2008-11-28 14:58 UTC (permalink / raw)
To: qemu-devel
Hi Paul,
Paul Brook <paul@codesourcery.com> schrieb:
> On Friday 28 November 2008, Steffen Liebergeld wrote:
>> Hi,
>>
>> I'm trying to get Qemu 0.9.1 cross compiled for the ARM platform.
>
> Don't bother. Use SVN.
Okay. I did this, and actually got a binary this time;-)
But in the file tcg/arm/tcg-target.c, function tcg_out_goto (line 677), a
block of code commented out, and replaced by an tcg_abort(). Why has this been
done?
If I replace the about with the outcommented code, qemu segfaults. So I guess
qemu support for target arm is currently broken?
Who is currently working on this?
Steffen
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: Cross compiling qemu for ARM
2008-11-28 14:58 ` [Qemu-devel] " Steffen Liebergeld
@ 2008-11-30 3:01 ` andrzej zaborowski
0 siblings, 0 replies; 8+ messages in thread
From: andrzej zaborowski @ 2008-11-30 3:01 UTC (permalink / raw)
To: qemu-devel
2008/11/28 Steffen Liebergeld <usenet@gmx.eu>:
> Hi Paul,
>
> Paul Brook <paul@codesourcery.com> schrieb:
>> On Friday 28 November 2008, Steffen Liebergeld wrote:
>>> Hi,
>>>
>>> I'm trying to get Qemu 0.9.1 cross compiled for the ARM platform.
>>
>> Don't bother. Use SVN.
>
> Okay. I did this, and actually got a binary this time;-)
>
> But in the file tcg/arm/tcg-target.c, function tcg_out_goto (line 677), a
> block of code commented out, and replaced by an tcg_abort(). Why has this been
> done?
It hasn't been tested because there's hope that it won't be needed.
If you see TCG abort in that place it means that a branch to a place
further away than 1 << 26 is being attempted and maybe this can be
avoided by modifying arm.ld.
>
> If I replace the about with the outcommented code, qemu segfaults. So I guess
> qemu support for target arm is currently broken?
That's possible.
Cheers
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-11-30 3:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28 10:13 [Qemu-devel] Cross compiling qemu for ARM Steffen Liebergeld
2008-11-28 11:55 ` [Qemu-devel] " Steffen Liebergeld
2008-11-28 12:07 ` Laurent Desnogues
2008-11-28 13:09 ` Steffen Liebergeld
2008-11-28 13:21 ` Laurent Desnogues
2008-11-28 13:27 ` [Qemu-devel] " Paul Brook
2008-11-28 14:58 ` [Qemu-devel] " Steffen Liebergeld
2008-11-30 3:01 ` andrzej zaborowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).