when running the command
heapscope -- make -j 8
on an intel-x86-64 target, lots of the following errors are printed:
ERROR: ld.so: object '/usr/lib/libheapscope.so' from LD_PRELOAD cannot be preloaded (cannot
open shared object file): ignored.
The error should reflect the real problem, that the path was not correctly specified with either an absolute or relative path name.
An alternative solution with pros/cons is to discover the binary from $PATH.
Use absolute paths for the process under test:
heapscope -- /usr/bin/make -j 8
or relative paths for the process under test:
cd /usr/bin
heapscope -- ./make -j 8