From: Toàn T. <min...@gm...> - 2017-11-24 03:15:29
|
Hi John Reiser, Thank you for your reply. To be more specific, here is my target device spec: *Processor : ARM926EJ-S rev 5 (v5l) BogoMIPS : 119.19 Features : swp half thumb fastmult edsp java CPU implementer : 0x41 CPU architecture: 5TEJ CPU variant : 0x0 CPU part : 0x926 CPU revision : 5 * Since it uses ARM926EJ-S processor, in an attempt to fix *error: bad value (cortex-a8) for -mcpu= switch,* I replace cortex-a8 with arm926ej-s for all files in valgrind-3.13.0 folder. I am able to bypass this error but another error pops up: m_dispatch/dispatch-arm-linux.S: Assembler messages: m_dispatch/dispatch-arm-linux.S:104: Error: selected processor does not support `movw r1,#47' m_dispatch/dispatch-arm-linux.S:105: Error: selected processor does not support `movw r2,#0' m_dispatch/dispatch-arm-linux.S:157: Error: selected processor does not support `movw r1,#:lower16:vgPlain_stats__n_xindirs_32' m_dispatch/dispatch-arm-linux.S:158: Error: selected processor does not support `movt r1,#:upper16:vgPlain_stats__n_xindirs_32' m_dispatch/dispatch-arm-linux.S:165: Error: selected processor does not support `movw r1,#(((1<<15))-1)' m_dispatch/dispatch-arm-linux.S:166: Error: selected processor does not support `movw r4,#:lower16:vgPlain_tt_fast' m_dispatch/dispatch-arm-linux.S:169: Error: selected processor does not support `movt r4,#:upper16:vgPlain_tt_fast' m_dispatch/dispatch-arm-linux.S:182: Error: selected processor does not support `movw r1,#:lower16:vgPlain_stats__n_xindir_misses_32' m_dispatch/dispatch-arm-linux.S:183: Error: selected processor does not support `movt r1,#:upper16:vgPlain_stats__n_xindir_misses_32' Makefile:3224: recipe for target 'm_dispatch/libcoregrind_arm_linux_a-dispatch-arm-linux.o' faile So i tried your suggestion, which is "Delete the -mcpu entirely". Another error pops up: m_dispatch/dispatch-arm-linux.S: Assembler messages: m_dispatch/dispatch-arm-linux.S:157: Error: constant expression required -- `movw r1,#:lower16:vgPlain_stats__n_xindirs_32' m_dispatch/dispatch-arm-linux.S:158: Error: constant expression required -- `movt r1,#:upper16:vgPlain_stats__n_xindirs_32' m_dispatch/dispatch-arm-linux.S:166: Error: constant expression required -- `movw r4,#:lower16:vgPlain_tt_fast' m_dispatch/dispatch-arm-linux.S:169: Error: constant expression required -- `movt r4,#:upper16:vgPlain_tt_fast' m_dispatch/dispatch-arm-linux.S:182: Error: constant expression required -- `movw r1,#:lower16:vgPlain_stats__n_xindir_misses_32' m_dispatch/dispatch-arm-linux.S:183: Error: constant expression required -- `movt r1,#:upper16:vgPlain_stats__n_xindir_misses_32' Makefile:3224: recipe for target 'm_dispatch/libcoregrind_arm_linux_a-dispatch-arm-linux.o' failed I desperately need a tool to check memory leak for binary file on my device. Is there any workaround for this? Toan Tran. On Fri, Nov 24, 2017 at 12:30 AM, John Reiser <jr...@bi...> wrote: > Hi everyone, I'm having a problem while trying to cross compile Valgrind >> for ARM. >> > > armv6 and lower are not supported because the hardware lacks reasonable > support > for threads. It is [was] possible to run memcheck of a single-thread > program > on amrv6. Search the mailing list archives and bug reports of a few years > ago > for the patches; I contributed one set. Beware that it is *VERY SLOW* > and it is likely that you will run out of RAM when checking any real > program. > > It is foolish even to try running memcheck on anything less than > a RaspberryPi-3B (1GB RAM, 1GHz CPU, $35.) You have much better things to > do. > Linux distributions such as Fedora and Debian already package valgrind for > armv7*. > > priv/main_globals.c:1: *error: bad value (cortex-a8) for -mcpu= switch * >> Makefile:1254: recipe for target 'priv/libvex_arm_linux_a-main_globals.o' >> failed >> > > -mcpu=cortex-a8 does not match -march=arm. Delete the -mcpu entirely. > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |