Valgrind support in OpenBMC

Xo Wang xow at google.com
Sat Nov 18 14:07:02 AEDT 2017


What BMC processor are you targeting? If it's ASPEED AST2400/2500,
then it's an ARMv6 processor and like that recipe file says...

# valgrind supports armv7 and above
COMPATIBLE_HOST_armv4 = 'null'
COMPATIBLE_HOST_armv5 = 'null'
COMPATIBLE_HOST_armv6 = 'null'

cheers
xo

On Fri, Nov 17, 2017 at 6:29 PM, guhan balasubramanian
<guhan.sac at gmail.com> wrote:
> Hi,
>
> I was experimenting on an application on top of OpenBMC. But apparently
> there seems to be a memory leak that I'm not able to narrow down.
> I am trying to build the image with Valgrind to analyze the error. But
> valgrind is not identified as a compatible host.
>
> Error observed:
>
> bash-4.1$ bitbake valgrind
>
> Loading cache: 100%
> |#######################################################################################|
> Time: 0:00:00
>
> Loaded 2753 entries from dependency cache.
>
> Parsing recipes: 100%
> |#####################################################################################|
> Time: 0:00:01
>
> Parsing of 2046 .bb files complete (2045 cached, 1 parsed). 2755 targets,
> 380 skipped, 6 masked, 0 errors.
>
> ERROR: Nothing PROVIDES 'valgrind'
>
> ERROR: valgrind was skipped: incompatible with host
> arm-openbmc-linux-gnueabi (not in COMPATIBLE_HOST)
>
>
> I tried to meddle with the COMPATIBLE_HOST variables in the bb file present
> in:
> import-layers/yocto-poky/meta/recipes-devtools/valgrind/valgrind_3.11.0.bb
>
> But it seems to throw some errors with respect to certain assembly
> instructions.
>
> Any pointers would be helpful.
>
> Thanks,
> Guhan


More information about the openbmc mailing list