Open chadbrewbaker opened 2 years ago
I am getting exactly the same error message saying "cannot find -lcoz-instrumentation"
Anyone can help?
Having similar issues. Can someone pretty please update the readme? @emeryberger
@chadbrewbaker checking out the repo at this state works fine: https://github.com/plasma-umass/coz/tree/c9af2bcc172ee4af66082c1ea9ae75a19d2cd0f6
That's useful information! I will look into this.
@chadbrewbaker I managed to fully build & successfully an older version of coz: Steps:
After these instructions, I was able to make bench and run coz commands on a particular program and get a valid profile.coz :).
@emeryberger newer versions of the repo don't seem to work out of the box (i.e. having a simple program e.g. toy to be "profile-able") - maybe is a problem with newer versions of Ubuntu. https://github.com/plasma-umass/coz/issues/107 this conversation also helped.
I can help. The reason for the build errors is due to running cmake inside the benchmark directory - that's why it can't find the coz-instrumentation
target.
The answer is to configure from the root directory using the main CMakeLists like this:
cmake -B build -DBUILD_BENCHMARKS=on -DCMAKE_BUILD_TYPE=Debug
cd build
make
That will make the lib and all the benchmark targets.
Am I doing something stupid here? The docs on the benchmarks seem to refer to the old makefiles.