viper make compile error
Closed this issue · 1 comments
Hello, I run viper on CentOS Linux release 8.4.2105 with
- gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)
I encountered the following error, can you help me?
After mkdir build & cd build & make .. -DCMAKE_BUILD_TYPE=Release
and make
/home/hh/viper/include/viper/viper.hpp: in function ‘void viper::internal::pmem_persist(const void*, size_t)’中:
/home/hh/viper/include/viper/viper.hpp:105:9: Error:‘_mm_clwb’ not declared in this scope
_mm_clwb(addr_ptr);
^~~~~~~~
/home/hh/viper/include/viper/viper.hpp:105:9: Note:suggested alternative: ‘_mm_hint’
_mm_clwb(addr_ptr);
^~~~~~~~
_mm_hint
make[2]: *** [CMakeFiles/playground.dir/build.make:82:CMakeFiles/playground.dir/playground.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:115:CMakeFiles/playground.dir/all] Error 2
make: *** [Makefile:149:all] Error 2
When I run the gcc -march=native -Q --help=target|grep march
, the results is -march=skylake-avx512
. I did not find the same solution.
I found that this is a GCC version problem. Sorry.