havenask
havenask copied to clipboard
ABI=1编译报错:static_assert(sizeof(BuildConfigBase) == 80
使用-D_GLIBCXX_USE_CXX11_ABI=1, indexlib编译报错。可否提供ABI=1的可以编译版本?包含autil,等库
Execution platform: @bazel_tools//platforms:host_platform
In file included from external/indexlib/includes/index_base/segment/in_memory_segment.h:8,
from external/indexlib/includes/index/normal/attribute/accessor/var_num_attribute_reader.h:20,
from external/indexlib/includes/index/normal/attribute/accessor/string_attribute_reader.h:8,
from external/indexlib/includes/index/normal/attribute/accessor/section_data_reader.h:9,
from external/indexlib/includes/index/normal/attribute/accessor/section_attribute_reader_impl.h:10,
from external/indexlib/includes/index/normal/inverted_index/accessor/position_iterator_typed.h:8,
from external/indexlib/includes/index/normal/inverted_index/builtin_index/bitmap/bitmap_posting_iterator.h:7,
from external/indexlib/src/index/normal/inverted_index/builtin_index/bitmap/bitmap_posting_iterator.cpp:2:
external/indexlib/includes/config/build_config.h:19:43: error: static assertion failed: BuildConfigBase size change!
static_assert(sizeof(BuildConfigBase) == 80, "BuildConfigBase size change!");
~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
Target //:worker failed to build
INFO: Elapsed time: 301.738s, Critical Path: 54.06s
INFO: 196 processes: 196 local.
gcc --version gcc (GCC) 8.3.0
有一些尚未开源的依赖组件,目前只有 old ABI 编译的动态库,因此暂时无法使用 new ABI 编译。 需要使用 -D_GLIBCXX_USE_CXX11_ABI=1 的原因可以讲一下吗。
新的1.0.0的代码机会全部开源了,你可以重新编译下试试。GLIBCXX_USE_CXX11_ABI这个主要还是考虑兼容性问题