Hi vsuneja63@gmail.com ,
I can able to successfully compile gputop_1.4.0 for 4.19.35 linux bsp. Can you provide your steps how you are cloning and compiling gputop?
In general we can clone and compile the particular version source code by renaming <source>.bb with our version. Example -
./meta-fsl-bsp-release/imx/meta-sdk/recipes-graphics/libgpuperfcnt/gputop_6.2.4.p4.0.bb -> ./meta-fsl-bsp-release/imx/meta-sdk/recipes-graphics/libgpuperfcnt/gputop_1.4.0.p4.0.bb
From the logs you have provided, I can see one error -
| /home/vipulkumar/platform/AGL_Master/build/tmp/work/aarch64-agl-linux/gputop/1.4.0-r0/git/gputop/top.c:1894:18: error: format not a string literal and no format arguments [-Werror=format-security]
| fprintf(stdout, clear_screen);
| ^~~~~~~~~~~~
| cc1: all warnings being treated as errors
This is an syntax error regarding fprintf where you need to specify the format specifier for clean_screen. You can change the line as fprintf(stdout, "%s", clear_screen);
Have you done any change in source code or .bb file for gputop?
Regards,
Radhika Somaiya