qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] ­ How to cross compile QEMU


From: 李柏舉
Subject: [Qemu-devel] ­ How to cross compile QEMU
Date: Tue, 3 May 2011 17:13:35 +0800

Hi, all

     I have built cross toolchain for arm , but I cannot cross compile QEMU

    qemu version: qemu-0.14.0
    cross-compiler: arm-2007q3 (arm-none-linux-gnueabi)
    ­The cross compiler I used is downloaded from:  http://www.codesourcery.com/
     

     The following are my steps: 
     
     1. below is my configure
         #!/bin/bash
         SOURCE_DIR=../qemu-0.14.0
         ZLIB_PREBUILT=/home/poki/hybridQ/qemu/qemu-0.14.0/package/zlib-1.2.3-arm
         TARGET_LIST=arm-linux-user
         CROSS_PREFIX=arm-none-linux-gnueabi-
         CPU=armv4l
         CFLAGS=-I$ZLIB_PREBUILT/include 
         LDFLAGS=-L$ZLIB_PREBUILT/lib
         PREFIX=/home/poki/hybridQ/qemu/install
         OPT_FLAGS=" --disable-sdl"
         DEBUG=--disable-strip
         STATIC=--static
   
         $SOURCE_DIR/configure --target-list=$TARGET_LIST --cpu=$CPU  --extra-ldflags=$LDFLAGS  --extra- cflags=$CFLAGS --cross-prefix=$CROSS_PREFIX  --prefix=$PREFIX

         warning message: 
         warning: proceeding without arm-none-linux-gnueabi-pkg-config
         warning: using "sdl-config" to detect cross-compiled sdl

      2. make install
          error message:
          .
          .
           LINK  arm-linux-user/qemu-arm
exec.o: In function `tb_set_jmp_target1':
/home/poki/hybridQ/qemu/qemu-0.14.0/exec-all.h:219: undefined reference to `__builtin___clear_cache'
/home/poki/hybridQ/qemu/qemu-0.14.0/exec-all.h:219: undefined reference to `__builtin___clear_cache'
/home/poki/hybridQ/qemu/qemu-0.14.0/exec-all.h:219: undefined reference to `__builtin___clear_cache'
/home/poki/hybridQ/qemu/qemu-0.14.0/exec-all.h:219: undefined reference to `__builtin___clear_cache'
/home/poki/hybridQ/qemu/qemu-0.14.0/exec-all.h:219: undefined reference to `__builtin___clear_cache'
cpu-exec.o:/home/poki/hybridQ/qemu/qemu-0.14.0/exec-all.h:219: more undefined references to `__builtin___clear_cache' follow
collect2: ld returned 1 exit status
make[1]: *** [qemu-arm] Error 1
make: *** [subdir-arm-linux-user] Error 2

Regards,
Poki
                                                                                                                                                             
                    
         
 
     

reply via email to

[Prev in Thread] Current Thread [Next in Thread]