apache / apache/arrow

[C++] Meson Compilation with Boost Subproject is Broken

Open
#45,767 0 comments 0 reactions 1 assignee Claimed by @WillAyd View on GitHub
Component: C++ Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the bug, including details regarding any error messages, version, and platform.

While the Meson system can correctly configure the project when boost is not installed, the subsequent compilation is currently failing.

```
[77/199] Compiling C++ object src/arrow/libarrow.so.p/util_basic_decimal.cc.o
FAILED: src/arrow/libarrow.so.p/util_basic_decimal.cc.o
ccache c++ -Isrc/arrow/libarrow.so.p -Isrc/arrow -I../src/arrow -Isrc -I../src -I../thirdparty/hadoop/include -I../subprojects/flatbuffers-24.3.6/include -I../subprojects/flatbuffers-24.3.6/grpc -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++17 -O0 -g -Wno-unused-parameter -Wno-array-bounds -Wno-stringop-overflow -Wno-aggressive-loop-optimizations -Wno-nonnull -fPIC -pthread -isystem../subprojects/rapidjson-1.1.0/include -MD -MQ src/arrow/libarrow.so.p/util_basic_decimal.cc.o -MF src/arrow/libarrow.so.p/util_basic_decimal.cc.o.d -o src/arrow/libarrow.so.p/util_basic_decimal.cc.o -c ../src/arrow/util/basic_decimal.cc
In file included from ../src/arrow/util/basic_decimal.cc:34:
../src/arrow/util/int128_internal.h:23:12: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
23 | # include
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[88/199] Compiling C++ object src/arrow/libarrow.so.p/util_decimal.cc.o
FAILED: src/arrow/libarrow.so.p/util_decimal.cc.o
ccache c++ -Isrc/arrow/libarrow.so.p -Isrc/arrow -I../src/arrow -Isrc -I../src -I../thirdparty/hadoop/include -I../subprojects/flatbuffers-24.3.6/include -I../subprojects/flatbuffers-24.3.6/grpc -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++17 -O0 -g -Wno-unused-parameter -Wno-array-bounds -Wno-stringop-overflow -Wno-aggressive-loop-optimizations -Wno-nonnull -fPIC -pthread -isystem../subprojects/rapidjson-1.1.0/include -MD -MQ src/arrow/libarrow.so.p/util_decimal.cc.o -MF src/arrow/libarrow.so.p/util_decimal.cc.o.d -o src/arrow/libarrow.so.p/util_decimal.cc.o -c ../src/arrow/util/decimal.cc
In file included from ../src/arrow/util/decimal.cc:36:
../src/arrow/util/int128_internal.h:23:12: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
23 | # include
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[90/199] Compiling C++ object src/arrow/libarrow.so.p/util_future.cc.o
ninja: build stopped: subcommand failed.
```

It looks like there are a few boost libraries that may be included by system packages implicitly which our Meson configuration does not provide when building the `filesystem` component

### Component(s)

C++

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.