Re: [Valgrind-users] link_tool_exe: cannot execute binary file

2010-06-12 Thread Julian Seward
On Monday, June 07, 2010, Tom Hughes wrote: On 07/06/10 07:15, Julian Seward wrote: Probably best just to use Math::BigInt then you can do arbitrary precision integer arithmetic regardless of the underlying platform. Is Math::BigInt is supported as standard in Perl? and also, in older

Re: [Valgrind-users] link_tool_exe: cannot execute binary file

2010-06-12 Thread Tom Hughes
On 12/06/10 20:48, Julian Seward wrote: Hmm, doesn't work with the stock perl on redhat9 (prehistoric, I know, but certainly post-dates perl 5.005). Am I doing something wrong? Don't you need to explicitly make $x a Math::BigInt? $ cat ascript.pl #! /usr/bin/perl use Math::BigInt; use

Re: [Valgrind-users] link_tool_exe: cannot execute binary file

2010-06-07 Thread Bart Van Assche
On Sun, Jun 6, 2010 at 10:41 PM, Julian Seward jsew...@acm.org wrote: Oh, darn.  It looks like I broke cross compilation recently by introducing link_tool_exe.c as part of the build process. Honestly .. the your best bet is to rewrite link_tool_exe.c as a perl script, so it can run on the

Re: [Valgrind-users] link_tool_exe: cannot execute binary file

2010-06-07 Thread Tom Hughes
On 07/06/10 07:15, Julian Seward wrote: Probably best just to use Math::BigInt then you can do arbitrary precision integer arithmetic regardless of the underlying platform. Is Math::BigInt is supported as standard in Perl? and also, in older Perls? Obviously if the build process is going

Re: [Valgrind-users] link_tool_exe: cannot execute binary file

2010-06-07 Thread Robert Berger
Hi all, Just let me know when you have something for me to test. Regards, Robert -- Robert Berger Embedded Software Specialist Reliable Embedded Systems Consulting Training Engineering Tel.: (+30) 697 593 3428 Fax.:(+30) 210 684 7881 URL: http://www.reliableembeddedsystems.com

[Valgrind-users] link_tool_exe: cannot execute binary file

2010-06-06 Thread Robert Berger
Hi, I'm trying to get valgrind running with an AMCC PPC kilauea board, ELDK4.2, and a recent kernel. That's what I did so far: svn co svn://svn.valgrind.org/valgrind/trunk valgrind cp dispatch-ppc32-linux.S valgrind/coregrind/m_dispatch (that's a patched version, which gets rid of the altivec

Re: [Valgrind-users] link_tool_exe: cannot execute binary file

2010-06-06 Thread Julian Seward
Oh, darn. It looks like I broke cross compilation recently by introducing link_tool_exe.c as part of the build process. Honestly .. the your best bet is to rewrite link_tool_exe.c as a perl script, so it can run on the host. I actually started out to write it as a perl script, but couldn't

Re: [Valgrind-users] link_tool_exe: cannot execute binary file

2010-06-06 Thread Tom Hughes
On 06/06/10 21:41, Julian Seward wrote: Honestly .. the your best bet is to rewrite link_tool_exe.c as a perl script, so it can run on the host. I actually started out to write it as a perl script, but couldn't find a way to make it portably do 64-bit arithmetic, which it needs to do on some

Re: [Valgrind-users] link_tool_exe: cannot execute binary file

2010-06-06 Thread Julian Seward
Probably best just to use Math::BigInt then you can do arbitrary precision integer arithmetic regardless of the underlying platform. Is Math::BigInt is supported as standard in Perl? and also, in older Perls? Obviously if the build process is going to rely on it then it needs to be available