Last active
January 3, 2016 09:39
-
-
Save dcoeurjo/8443935 to your computer and use it in GitHub Desktop.
build error again
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 14%] Building CXX object CMakeFiles/benchmark.dir/src/benchmark.cc.o | |
[ 28%] Building CXX object CMakeFiles/benchmark.dir/src/colorprint.cc.o | |
[ 42%] Building CXX object CMakeFiles/benchmark.dir/src/commandlineflags.cc.o | |
[ 57%] Building CXX object CMakeFiles/benchmark.dir/src/sleep.cc.o | |
[ 71%] Building CXX object CMakeFiles/benchmark.dir/src/sysinfo.cc.o | |
/Users/davidcoeurjolly/local/src/benchmark/src/sysinfo.cc:256:25: error: use of undeclared identifier 'CTL_HW' | |
int numcpus_name[] = {CTL_HW, HW_NCPU}; | |
^ | |
/Users/davidcoeurjolly/local/src/benchmark/src/sysinfo.cc:256:33: error: use of undeclared identifier 'HW_NCPU' | |
int numcpus_name[] = {CTL_HW, HW_NCPU}; | |
^ | |
/Users/davidcoeurjolly/local/src/benchmark/src/sysinfo.cc:257:9: error: no member named 'sysctl' in the global namespace | |
if (::sysctl(numcpus_name, arraysize(numcpus_name), &num_cpus, &size, 0, 0) == | |
~~^ | |
/Users/davidcoeurjolly/local/src/benchmark/src/sysinfo.cc:257:30: error: no matching function for call to 'ArraySizeHelper' | |
if (::sysctl(numcpus_name, arraysize(numcpus_name), &num_cpus, &size, 0, 0) == | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
/Users/davidcoeurjolly/local/src/benchmark/include/benchmark/macros.h:35:34: note: expanded from macro 'arraysize' | |
#define arraysize(array) (sizeof(ArraySizeHelper(array))) | |
^~~~~~~~~~~~~~~ | |
/Users/davidcoeurjolly/local/src/benchmark/include/benchmark/macros.h:25:8: note: candidate template ignored: failed template argument deduction | |
char (&ArraySizeHelper(T (&array)[N]))[N]; | |
^ | |
/Users/davidcoeurjolly/local/src/benchmark/include/benchmark/macros.h:32:8: note: candidate template ignored: failed template argument deduction | |
char (&ArraySizeHelper(const T (&array)[N]))[N]; | |
^ | |
4 errors generated. | |
make[2]: *** [CMakeFiles/benchmark.dir/src/sysinfo.cc.o] Error 1 | |
make[1]: *** [CMakeFiles/benchmark.dir/all] Error 2 | |
make: *** [all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment