Closed forresti closed 4 years ago
Interestingly, when I look at the auto-generated NNPACK/build.ninja
file, I see most of the other code files from googlebenchmark
(e.g. csv_reporter.cc, statistics.cc), but not benchmark_name.cc
. That seems odd.
Outside of NNPACK, I see someone else on the googlebenchmark
Issues that someone else had a similar problem with an undefined reference to BenchmarkName, and it turned out that the issue was that the application's build system accidentally ignored benchmark_name.cc.
https://github.com/google/benchmark/issues/895
Google Benchmark added source files, and those need to be reflected in the confu recipe: https://github.com/Maratyszcza/confu/blob/master/confu/recipes/googlebenchmark.py#L24-L43
Alternatively, you can use CMake to build NNPACK.
That worked. Thanks!
Following the instructions on https://github.com/Maratyszcza/NNPACK#development-builds, I did the following to build NNPACK:
and it successfully built a bunch of stuff, until it failed with the following error:
(For brevity, I find/replaced my actual path to
/path/to
.)When I do a multithreaded ninja build, of the benchmarks fail to build with the above error. I am particularly interested to use the benchmarks, so I definitely want to figure out how to build them.
Any ideas what might be wrong? I poked around in googlebenchmark for a while, but I been able to diagnose it so far.