Hi Bart,
Thanks a lot for the answer. This solution fixed the errors.
But  I have another question, when I cross-compiled valgrind for ppc405,
then I copied all the generated file (in prefix dir) to the target platform,
I have always an error when running valgrind:
valgrind: failed to start tool 'memcheck' for platform 'ppc32-linux': No
such file or directory

Here are the steps of the cross compilation:

$CC=powerpc-linux-gcc LD=powerpc-linux-ld ./configure --host=powerpc-linux
--target=powerpc-unknown-linux  --prefix=/home/tools/valgrind_ppc_4
--build=i486-cross-linux-gnu
$make
$make install

Then I copied the /home/tools/valgrind_ppc_4  directory to the target
system.
And I run valgrind from valgrind_ppc_4/bin directory.

--
Xavier 



Bugzilla from [email protected] wrote:
> 
> On Thu, Feb 12, 2009 at 5:00 PM, xavier.vvv <[email protected]> wrote:
>>
>> Hi all,
>> I want to install valgrind on linux 2.6 embedded in xupv2p board (ppc405
>> procesor + 256MB DDR).
>> The error is:
>>
>> make[4]: Leaving directory `/root/valgrind-3.4.0/VEX'
>> gcc  -Wno-long-long -Wno-pointer-sign -Wdeclaration-after-statement
>> -fno-stack-protector   -o memcheck-ppc32-linux -static
>> -Wl,-defsym,valt_load_address=0x3
>> /usr/lib/gcc/ppc-linux/4.2.2/libgcc.a(divsf3.o): In function `__divsf3':
>> (.text+0x88): undefined reference to `abort'
>> /usr/lib/gcc/ppc-linux/4.2.2/libgcc.a(divdf3.o): In function `__divdf3':
>> (.text+0x118): undefined reference to `abort'
>> /usr/lib/gcc/ppc-linux/4.2.2/libgcc.a(muldf3.o): In function `__muldf3':
>> (.text+0x11c): undefined reference to `abort'
>> collect2: ld returned 1 exit status
>> make[3]: *** [memcheck-ppc32-linux] Error 1
>> make[3]: Leaving directory `/root/valgrind-3.4.0/memcheck'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory `/root/valgrind-3.4.0/memcheck'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/root/valgrind-3.4.0'
>> make: *** [all] Error 2
>> *************************************
> 
> The following can be concluded from the above output:
> - The gcc compiler you are using has been configured to use soft float
> (see also
> http://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html).
> - The soft float functions in the libgcc.a library contain calls to
> abort().
> - There is no function with the name "abort" in Valgrind itself.
> 
> Does adding the following code near the end of e.g. coregrind/m_main.c
> help ?
> 
> void abort (void) { vg_assert(0); }
> 
> Bart.
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Valgrind-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/valgring-3.4-compiling-problem-under-ppc405-and-gcc4.2.2-tp21978916p21992603.html
Sent from the Valgrind - Users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to