ABI=1编译报错:static_assert(sizeof(BuildConfigBase) == 80
- Dominant language
- C++
- Stars
- 1.8k
- Forks
- 352
- PR merge metrics
- No merged PRs in 30d
Description
使用-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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with external/indexlib/includes/config/build_config.h and its static_assert on BuildConfigBase, then reproduce the failure by building the //:worker Bazel target with -D_GLIBCXX_USE_CXX11_ABI=1 on GCC 8.3. Check the related indexlib and autil dependencies shown in the include trace. Done means the ABI=1 configuration builds successfully without the size assertion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100