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

Reply via email to