<div dir="ltr"><div><div><div>Checking the build.sh script again, I believe we don't properly check if the specific build for LLVM exists. (readlink -f doesn't check for the last path component)<br><br></div>Can you add the following before line 19 ("<span class=""># Using PANDA LLVM.") of qemu/build.sh and test again?</span><br><br>[ ! -d "$PANDA_LLVM" ] && echo "NO WAY" && exit 1<br><br></div>If it stops there, then you have LLVM but you probably made a debug build.<br><br></div>M.<br><br><div><div><br><div><span class=""><span class=""></span></span></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-14 16:56 GMT+01:00 Fabien Dombard <span dir="ltr"><<a href="mailto:dombard@synhetik.com" target="_blank">dombard@synhetik.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">@Manolis: Thanks! I missed this part from the docs, also missed to then run with "-replay <record name>" and not "-replay <record name>.rr".<br>
<br>
@Brendan: I've been running panda_install.bash, which ended into an error:<br>
<br>
Found PANDA LLVM on ../llvm -- LLVM SUPPORT IS ENABLED<br>
ERROR<br>
ERROR: User requested feature llvm (required for --enable-llvm)<br>
ERROR: configure was not able to find it<br>
ERROR<br>
<br>
Btw debian's distorm3 package works absolutely fine, just added -L/usr/lib and -I/usr/lib/include/distorm3 into build.sh.<br>
At this point I expect Panda to work fine, I can replay traces I've downloaded from rrshare, so let see how it goes from here.<br>
<br>
Thanks!<br>
Fabien<br>
<span class=""><br>
On Mon, Dec 14, 2015 at 10:24:01AM -0500, Brendan Dolan-Gavitt wrote:<br>
> Yes, Manolis is correct about needing to unpack them first.<br>
><br>
</span>> As for the compilation issue ??? could you try (just so we have a clean<br>
<div class="HOEnZb"><div class="h5">> baseline) cloning PANDA into a new directory and running "bash<br>
> panda_install.bash" to install?<br>
><br>
> -Brendan<br>
><br>
> On Mon, Dec 14, 2015 at 9:44 AM, Manolis Stamatogiannakis<br>
> <<a href="mailto:mstamat@gmail.com">mstamat@gmail.com</a>> wrote:<br>
> > Hi Fabien,<br>
> ><br>
> > IIRC, .rr traces are compressed and you need to run rrunpack.py to<br>
> > decompress them before processing.<br>
> ><br>
> > Cheers,<br>
> > M.<br>
> ><br>
> ><br>
> > 2015-12-14 14:18 GMT+01:00 Fabien Dombard <<a href="mailto:dombard@synhetik.com">dombard@synhetik.com</a>>:<br>
> >><br>
> >> Hi,<br>
> >> I've been apparenly building succesfully Panda on a Debian 8 at work, only<br>
> >> difference is gcc/g++ 4.8 this time.<br>
> >> However I have an issue replaying anything from rrshare, is that a trace<br>
> >> format incompatibility or sommeting with regard to my build?<br>
> >><br>
> >> $ /home/user/panda/qemu/x86_64-softmmu/qemu-system-x86_64 -m 1024 -replay<br>
> >> spotify.rr<br>
> >> loading snapshot<br>
> >> qemu-system-x86_64: Could not open VM state file<br>
> >> ... done.<br>
> >> opening nondet log for read : ./spotify.rr-rr-nondet.log<br>
> >> RR rr_assertion `rr_nondet_log->fp != NULL' failed at<br>
> >> /home/user/panda/qemu/rr_log.c:1322<br>
> >> Current log point:<br>
> >> <queue empty><br>
> >> Current replay point:<br>
> >> {guest_instr_count=0 pc=0x00000000, secondary=0x00000000}<br>
> >><br>
> >> Thanks!<br>
> >> Fabien<br>
> >><br>
> >> On Thu, Dec 10, 2015 at 10:54:05AM +0100, Fabien Dombard wrote:<br>
> >> > Hi Brendan,<br>
> >> ><br>
> >> > $ dpkg -l | grep -i llvm<br>
> >> > ii libc++-dev:amd64 3.5-2<br>
> >> > amd64 LLVM C++ Standard library (development files)<br>
> >> > ii libc++-helpers 3.5-2<br>
> >> > all LLVM C++ Standard library - build helpers<br>
> >> > ii libc++1:amd64 3.5-2<br>
> >> > amd64 LLVM C++ Standard library<br>
> >> ><br>
> >> > I've compiled locally llvm 3.3 as per the instructions found within the<br>
> >> > docs/<a href="http://compile.md" rel="noreferrer" target="_blank">compile.md</a>.<br>
> >> > I also been checking the panda_install.bash and have all necessary<br>
> >> > dependencies, it fails on the build.sh step.<br>
> >> > Thanks,<br>
> >> > Fabien<br>
> >> ><br>
> >> > On Wed, Dec 09, 2015 at 04:06:36PM -0800, Brendan Dolan-Gavitt wrote:<br>
> >> > > Hi,<br>
> >> > ><br>
> >> > > Could you try using the panda_install.bash script to install? It looks<br>
> >> > > like you may be using multiple different versions of LLVM on your<br>
> >> > > system.<br>
> >> > ><br>
> >> > > -Brendan<br>
> >> > ><br>
> >> > > On Wed, Dec 9, 2015 at 1:30 AM, Fabien Dombard <<a href="mailto:dombard@synhetik.com">dombard@synhetik.com</a>><br>
> >> > > wrote:<br>
> >> > > > Hi List,<br>
> >> > > > I am new to Panda and trying to compile it natively on my<br>
> >> > > > workstation.<br>
> >> > > > Currently trying with llvm3.3 from sources within the llvm<br>
> >> > > > directory and gcc/g++ 4.9 on debian x86_64.<br>
> >> > > ><br>
> >> > > > This is what I get when running the build.sh script:<br>
> >> > > ><br>
> >> > > > 386-softmmu/llvm-helpers.bc1<br>
> >> > > > WARNING: Linking two modules of different target triples:<br>
> >> > > > fpu/softfloat.bc2: 'x86_64-pc-linux-gnu' and 'x86_64-unknown-linux-gnu'<br>
> >> > > > 0 llvm-link 0x000000000064a342<br>
> >> > > > 1 llvm-link 0x0000000000649fac<br>
> >> > > > 2 libpthread.so.0 0x00002ab9896ea8d0<br>
> >> > > > 3 llvm-link 0x0000000000546718<br>
> >> > > > 4 llvm-link 0x0000000000546731<br>
> >> > > > 5 llvm-link 0x000000000060222f<br>
> >> > > > 6 llvm-link 0x0000000000605354<br>
> >> > > > 7 llvm-link 0x00000000006058e2<br>
> >> > > > 8 llvm-link 0x0000000000605d32<br>
> >> > > > 9 llvm-link 0x0000000000609716<br>
> >> > > > 10 llvm-link 0x00000000005eca3f<br>
> >> > > > 11 llvm-link 0x00000000005ecfab<br>
> >> > > > 12 llvm-link 0x00000000005ed1fe<br>
> >> > > > 13 llvm-link 0x000000000060bdb9<br>
> >> > > > 14 llvm-link 0x000000000040b06f<br>
> >> > > > 15 libc.so.6 0x00002ab98a3afb45 __libc_start_main + 245<br>
> >> > > > 16 llvm-link 0x000000000040d8b2<br>
> >> > > > Stack dump:<br>
> >> > > > 0. Program arguments:<br>
> >> > > > /home/user/panda/llvm/Release/bin/llvm-link -o llvm-helpers.bc1<br>
> >> > > > op_helper.bc2 fpu/softfloat.bc2 helper.bc2 host-utils.bc2<br>
> >> > > > 1. Running pass 'Function Pass Manager' on module<br>
> >> > > > 'op_helper.bc2'.<br>
> >> > > > 2. Running pass 'Module Verifier' on function<br>
> >> > > > '@int32_to_float64'<br>
> >> > > > Segmentation fault<br>
> >> > > ><br>
> >> > > > Any help would be welcome!<br>
> >> > > > Thanks,<br>
> >> > > > Fabien<br>
> >> > > > _______________________________________________<br>
> >> > > > panda-users mailing list<br>
> >> > > > <a href="mailto:panda-users@mit.edu">panda-users@mit.edu</a><br>
> >> > > > <a href="http://mailman.mit.edu/mailman/listinfo/panda-users" rel="noreferrer" target="_blank">http://mailman.mit.edu/mailman/listinfo/panda-users</a><br>
> >> > _______________________________________________<br>
> >> > panda-users mailing list<br>
> >> > <a href="mailto:panda-users@mit.edu">panda-users@mit.edu</a><br>
> >> > <a href="http://mailman.mit.edu/mailman/listinfo/panda-users" rel="noreferrer" target="_blank">http://mailman.mit.edu/mailman/listinfo/panda-users</a><br>
> >> _______________________________________________<br>
> >> panda-users mailing list<br>
> >> <a href="mailto:panda-users@mit.edu">panda-users@mit.edu</a><br>
> >> <a href="http://mailman.mit.edu/mailman/listinfo/panda-users" rel="noreferrer" target="_blank">http://mailman.mit.edu/mailman/listinfo/panda-users</a><br>
> ><br>
> ><br>
</div></div></blockquote></div><br></div>