Xilinx / qemu

Xilinx's fork of Quick EMUlator (QEMU) with improved support and modelling for the Xilinx platforms.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821395464/QEMU+User+Documentation
Other
238 stars 152 forks source link

Error building qemu on Ubuntu #45

Closed BottCode closed 4 years ago

BottCode commented 4 years ago

Hi,

I'm following these instructions to build Qemu. The ./configure script ends succesfully, while the build process fails. Here's the errors.

make[1]: Entering directory '/home/ubuntu/UNI/qemu/slirp'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/ubuntu/UNI/qemu/slirp'
    CHK version_gen.h
  CC      aarch64-softmmu/target/arm/translate-a64.o
/home/ubuntu/UNI/qemu/target/arm/translate-a64.c: In function ‘disas_ldst’:
/home/ubuntu/UNI/qemu/target/arm/translate-a64.c:3193:5: error: ‘fn’ may be used uninitialized in this function [- 
Werror=maybe-uninitialized]
     fn(cpu_reg(s, rt), clean_addr, tcg_rs, get_mem_index(s),
     ^
/home/ubuntu/UNI/qemu/target/arm/translate-a64.c:3119:22: note: ‘fn’ was declared here
     AtomicThreeOpFn *fn;
                      ^
cc1: all warnings being treated as errors
/home/ubuntu/UNI/qemu/rules.mak:69: recipe for target 'target/arm/translate-a64.o' failed
make[1]: *** [target/arm/translate-a64.o] Error 1
Makefile:527: recipe for target 'aarch64-softmmu/all' failed
make: *** [aarch64-softmmu/all] Error 2

How can I solve? I've also tryed to remove the -Werror flag from ./dtc/Makefile, but the result is the same.

edgarigl commented 4 years ago

Hi, try disable Werror by passing -disable-werror to the configure script.

Best regards, Edgar

BottCode commented 4 years ago

Now it works, thanks.