[panda-users] Issues with building QEMU
Leek, Timothy - 0559 - MITLL
tleek at ll.mit.edu
Fri Jan 23 11:19:13 EST 2015
Hi Evan. If you are trying to build most current, you will need protocol buffers (protoc and protoc-c). It looks like you might not have them? What happens when you type one of these two commands at the command line?
protoc
protoc-c
Tim
From: <Downing>, Evan P <edowning3 at gatech.edu<mailto:edowning3 at gatech.edu>>
Date: Friday, January 23, 2015 at 11:11 AM
To: "panda-users at mit.edu<mailto:panda-users at mit.edu>" <panda-users at mit.edu<mailto:panda-users at mit.edu>>
Subject: [panda-users] Issues with building QEMU
Hey all,
My name is Evan and I'm a first-time PANDA user.
I was attempting to build the source code as stated here: https://github.com/moyix/panda/blob/master/docs/compile.md
I followed the instructions to the 'T', however I was unable to build QEMU.
I have made sure that I have the most recent version PANDA from here https://github.com/moyix/panda
My machine's specifications are as follows:
$ uname -a
Linux fun 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1 x86_64 GNU/Linux
The error occurs on the last step ("Building the QEMU Part") when I attempt to run `$ sh ./build.sh`
I will not post the whole error (because it's way too long), but here are bits and pieces of it that I believe are important:
[some compiling output here]
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wmissing-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wnested-externs’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wold-style-declaration’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wold-style-definition’ is valid for C/ObjC but not for C++ [enabled by default]
[more compiling output here]
CC slirp/cksum.o
CC slirp/if.o
CC slirp/ip_icmp.o
CC slirp/ip_input.o
CC slirp/ip_output.o
CC slirp/slirp.o
CC slirp/mbuf.o
CC slirp/misc.o
CC slirp/sbuf.o
CC slirp/socket.o
CC slirp/tcp_input.o
CC slirp/tcp_output.o
In file included from /usr/include/string.h:642:0,
from /home/evan/panda/qemu/slirp/slirp.h:66,
from slirp/misc.c:8:
In function ‘memset’,
inlined from ‘slirp_connection_info’ at slirp/misc.c:401:15:
/usr/include/x86_64-linux-gnu/bits/string3.h:82:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default]
CC slirp/tcp_subr.o
CC slirp/tcp_timer.o
CC slirp/udp.o
CC slirp/bootp.o
CC slirp/tftp.o
CC slirp/arp_table.o
[some more compiling output here]
../slirp/misc.o: In function `memset':
/usr/include/x86_64-linux-gnu/bits/string3.h:82: warning: memset used with constant zero length parameter; this could be due to transposed parameters
panda/pandalog.pb-c.o: In function `panda__log_entry__get_packed_size':
/home/evan/panda/qemu/panda/pandalog.pb-c.c:20: undefined reference to `protobuf_c_message_get_packed_size'
panda/pandalog.pb-c.o: In function `panda__log_entry__pack':
/home/evan/panda/qemu/panda/pandalog.pb-c.c:27: undefined reference to `protobuf_c_message_pack'
panda/pandalog.pb-c.o: In function `panda__log_entry__pack_to_buffer':
/home/evan/panda/qemu/panda/pandalog.pb-c.c:34: undefined reference to `protobuf_c_message_pack_to_buffer'
panda/pandalog.pb-c.o: In function `panda__log_entry__unpack':
/home/evan/panda/qemu/panda/pandalog.pb-c.c:42: undefined reference to `protobuf_c_message_unpack'
panda/pandalog.pb-c.o: In function `panda__log_entry__free_unpacked':
/home/evan/panda/qemu/panda/pandalog.pb-c.c:51: undefined reference to `protobuf_c_message_free_unpacked'
collect2: error: ld returned 1 exit status
make[1]: *** [qemu-system-arm] Error 1
make[1]: *** Waiting for unfinished jobs....
CXX /home/evan/panda/qemu/arm-softmmu/panda_plugins/llvm_taint_lib.o
CXX /home/evan/panda/qemu/arm-softmmu/panda_plugins/taint2_fast_shad.o
PLUGIN /home/evan/panda/qemu/arm-softmmu/panda_plugins/panda_llvm_trace.so
LLVM /home/evan/panda/qemu/arm-softmmu/panda_plugins/taint2_taint_ops.bc
LLVM /home/evan/panda/qemu/arm-softmmu/panda_plugins/taint2_label_set.bc
CXX /home/evan/panda/qemu/arm-softmmu/panda_plugins/taint2_taint_processor.o
LLVMCC /arm-softmmu//home/evan/panda/qemu/arm-softmmu/panda_plugins/taint2_my_mem.o
LLVMCC /arm-softmmu//home/evan/panda/qemu/arm-softmmu/panda_plugins/taint2_taint_ops.o
LLVMCC /arm-softmmu//home/evan/panda/qemu/arm-softmmu/panda_plugins/taint2_label_set.o
LLVM_LINK /home/evan/panda/qemu/arm-softmmu/panda_plugins/panda_taint2_ops.bc
PLUGIN /home/evan/panda/qemu/arm-softmmu/panda_plugins/panda_callstack_instr.so
PLUGIN /home/evan/panda/qemu/arm-softmmu/panda_plugins/panda_taint2.so
PLUGIN /home/evan/panda/qemu/arm-softmmu/panda_plugins/panda_taint.so
make: *** [subdir-arm-softmmu] Error 2
Any ideas as to what the problem is?
It seems as though someone has already seen part this problem (https://github.com/moyix/panda/issues/19) but I wasn't quite sure if these were the same or related to each other.
Thanks,
Evan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/panda-users/attachments/20150123/e0001594/attachment-0001.htm
More information about the panda-users
mailing list