Xilinx/qemu

Error building qemu on Ubuntu

Closed this issue · 2 comments

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.

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

Best regards,
Edgar

Now it works, thanks.