[panda-users] Compilation issue

Fabien Dombard dombard at synhetik.com
Mon Dec 14 14:59:23 EST 2015


Probably my fault, as I simply cp'ed -r my panda directory where I already had compiled my llvm 3.3 by hand...

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


More information about the panda-users mailing list