polardb/polardbx-engine

ARM 服务器编译 DN 失败

wsm12138 opened this issue · 0 comments

平台:Linux 4.19.90-2003.4.0.0036.oe1.aarch64 #1 SMP Mon Mar 23 19:06:43 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
gcc: gcc (GCC) 10.2.1
报错信息:

/usr/include/c++/10/bits/hashtable.h: In instantiation of ‘class std::_Hashtable<long int, std::pair<const long int, xengine::storage::AsyncRandomAccessExtent*>, xengine::memory::stl_adapt_allocator<std::pair<long int, xengine::storage::AsyncRandomAccessExtent*>, 14>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >’:
/usr/include/c++/10/bits/unordered_map.h:105:18: required from ‘class std::unordered_map<long int, xengine::storage::AsyncRandomAccessExtent*, std::hash, std::equal_to, xengine::memory::stl_adapt_allocator<std::pair<long int, xengine::storage::AsyncRandomAccessExtent*>, 14> >’
middleware/galaxyengine/storage/xengine/core/compact/compaction.h:589:21: required from here
/usr/include/c++/10/bits/hashtable.h:192:21: error: static assertion failed: unordered container must have the same value_type as its allocator
192 | static_assert(is_same<typename _Alloc::value_type, _Value>{},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [storage/xengine/CMakeFiles/xengine_se.dir/build.make:80: storage/xengine/CMakeFiles/xengine_se.dir/handler/ha_xengine.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:5298: storage/xengine/CMakeFiles/xengine_se.dir/all] Error 2
make: *** [Makefile:180: all] Error 2
你好,在上述服务器环境,遇到了同样的问题,请问有没有快速修复的方法? #5