[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] building for an arm host on an x86_64 machine [was: qem
Re: [Qemu-devel] building for an arm host on an x86_64 machine [was: qemu builds on arm hosts]
Fri, 18 Apr 2014 16:28:03 -0700
I just realized that the original subject of my question was not accurate.
I am trying to compile qemu to run on an arm host. I don't have an arm host
yet. Until I get one, I am just trying to build and link it on an x86_64
ubuntu machine. (If I am already out of bounds at this point as I would need a
different toolchain, I would appreciate pointers).
Meanwhile, I have also used the yocto project to build a 32-bit arm linux
kernel and rootfs for “MACHINE ?= qemuarm"
Presently, I have no access to an arm host nor the embedded arm board for the
My problem is that I am unable to get a successful build of qemu-system-arm
given the following build environment and configuration statement.
Linux NewBnz-FX6800-01e 3.5.0-47-generic #71-Ubuntu SMP Wed Feb 19 00:00:07 UTC
2014 x86_64 x86_64 x86_64 GNU/Linux
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GNU ld (GNU Binutils for Ubuntu) 184.108.40.20620924
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
./configure --cpu=arm --target-list=arm-softmmu --disable-vnc --disable-sdl
--disable-virtfs --disable-brlapi --disable-rdma --disable-libusb
I appreciate your help. The ramp-up on qemu source base is proving to be
steeper than I expected.
On Apr 16, 2014, at 3:25 PM, Peter Maydell <address@hidden> wrote:
> On 16 April 2014 04:26, New B <address@hidden> wrote:
>> I hit these errors:
>> 1- a pragma #error induced error in tcg/aarch64/tcg-target.c stating that
>> "USE_DIRECT_JUMP required for aarch64”, line 1105.
>> 2- a link failure:
>> Undefined symbols for architecture x86_64:
>> "_print_insn_i386", referenced from:
>> _disas in disas.o
>> ld: symbol(s) not found for architecture x86_64
>> clang: error: linker command failed with exit code 1 (use -v to see
>> make: *** [qemu-system-arm] Error 1
>> make: *** [subdir-arm-softmmu] Error 2
>> I am not sure why there is a mention of “architecture x86_64” if I am
>> supposed to be building for aarch64.
> You've clearly managed to break your build environment
> somehow (wrong arguments to configure?) because that is
> trying to use the x86 linker, from the looks of things. Is this
> a cross-build?
> In any case, this should all work so your problems are
> in your build environment or configure arguments, I think.
> You might like to try one of the 2.0 release candidates,
> just to check it's not something that's only wrong on the
> 1.7.x branch.
> -- PMM
Re: [Qemu-devel] Are Qemu builds supported for arm host?, Peter Maydell, 2014/04/16