Bug 287261 - databases/arrow: build broken - fatal error: 'boost/process/v2.hpp' file not found
Summary: databases/arrow: build broken - fatal error: 'boost/process/v2.hpp' file not ...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-03 12:42 UTC by Dani I.
Modified: 2025-06-09 21:04 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
Updated patch for src/arrow/testing/process.cc (1.20 KB, patch)
2025-06-06 09:59 UTC, Trond Endrestøl
no flags Details | Diff
Updated patch for src/arrow/testing/process.cc (1.25 KB, patch)
2025-06-06 10:41 UTC, Trond Endrestøl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dani I. 2025-06-03 12:42:07 UTC
After the latest upgrade of devel/boost and the corresponding revision bump, the build for databases/arrow seems to be broken. We get the following error:
#################################################################
[ 55% 246/445] ccache /usr/local/llvm17/bin/clang++ -DARROW_TESTING_EXPORTING -DARROW_WITH_TIMING_TESTS -DBOOST_PROCESS_HAVE_V1 -DBOOST_PROCESS_HAVE_V2 -DBOOST_PROCESS_USE_V2 -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -I/wrkdirs/usr/ports/databases/arrow/work/.build/src -I/wrkdirs/usr/ports/databases/arrow/work/apache-arrow-19.0.1/cpp/src -I/wrkdirs/usr/ports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/generated -isystem /wrkdirs/usr/ports/databases/arrow/work/apache-arrow-19.0.1/cpp/thirdparty/flatbuffers/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -Qunused-arguments -fcolor-diagnostics  -Wall -Wno-unknown-warning-option -Wno-pass-failed  -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -DNDEBUG  -std=c++17 -fPIC -pthread -MD -MT src/arrow/CMakeFiles/arrow_testing_objlib.dir/testing/process.cc.o -MF src/arrow/CMakeFiles/arrow_testing_objlib.dir/testing/process.cc.o.d -o src/arrow/CMakeFiles/arrow_testing_objlib.dir/testing/process.cc.o -c /wrkdirs/usr/ports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/arrow/testing/process.cc
FAILED: src/arrow/CMakeFiles/arrow_testing_objlib.dir/testing/process.cc.o 
ccache /usr/local/llvm17/bin/clang++ -DARROW_TESTING_EXPORTING -DARROW_WITH_TIMING_TESTS -DBOOST_PROCESS_HAVE_V1 -DBOOST_PROCESS_HAVE_V2 -DBOOST_PROCESS_USE_V2 -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -I/wrkdirs/usr/ports/databases/arrow/work/.build/src -I/wrkdirs/usr/ports/databases/arrow/work/apache-arrow-19.0.1/cpp/src -I/wrkdirs/usr/ports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/generated -isystem /wrkdirs/usr/ports/databases/arrow/work/apache-arrow-19.0.1/cpp/thirdparty/flatbuffers/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -Qunused-arguments -fcolor-diagnostics  -Wall -Wno-unknown-warning-option -Wno-pass-failed  -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -DNDEBUG  -std=c++17 -fPIC -pthread -MD -MT src/arrow/CMakeFiles/arrow_testing_objlib.dir/testing/process.cc.o -MF src/arrow/CMakeFiles/arrow_testing_objlib.dir/testing/process.cc.o.d -o src/arrow/CMakeFiles/arrow_testing_objlib.dir/testing/process.cc.o -c /wrkdirs/usr/ports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/arrow/testing/process.cc
/wrkdirs/usr/ports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/arrow/testing/process.cc:46:16: fatal error: 'boost/process/v2.hpp' file not found
   46 | #      include <boost/process/v2.hpp>
      |                ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1
#################################################################

There is an upstream issue where the same error has been reported: https://github.com/apache/arrow/issues/45803

We tried building with the mentioned commit in the issue (slightly adjusted so it applies - https://github.com/apache/arrow/commit/deccce15041809157a84ff2b869015a36bdf2270), but that didn't help either.

Any help is appreciated :)
Comment 1 Trond Endrestøl 2025-06-03 17:35:36 UTC
(In reply to Dani I. from comment #0)
Try disabling the TESTING option.
Comment 2 Dani I. 2025-06-04 08:23:11 UTC
(In reply to Trond Endrestøl from comment #1)

Yeah that does work, but that doesn't seem like a "real" fix for me?
Comment 3 Trond Endrestøl 2025-06-04 11:09:17 UTC
(In reply to Dani I. from comment #2)
No, it isn't. Upstream must prepare a new version compatible with Boost 1.88.0.
Comment 4 Juraj Lutter freebsd_committer freebsd_triage 2025-06-04 13:21:30 UTC
It has already been fixed in https://github.com/apache/arrow/pull/46160

perhaps we could include the PR patch until it will land into next arrow release?
Comment 5 Trond Endrestøl 2025-06-06 09:59:52 UTC
Created attachment 261028 [details]
Updated patch for src/arrow/testing/process.cc

Incorporates patch from https://github.com/apache/arrow/pull/46160
Committed upstream as https://github.com/apache/arrow/commit/af15118dd065facc6e9bbeb58af13c382351600e
Comment 6 Juraj Lutter freebsd_committer freebsd_triage 2025-06-06 10:02:50 UTC
At line 45, there is a stray "More actions" string in the patch.
Comment 7 Trond Endrestøl 2025-06-06 10:41:28 UTC
Created attachment 261029 [details]
Updated patch for src/arrow/testing/process.cc
Comment 8 Trond Endrestøl 2025-06-06 10:53:37 UTC
(In reply to Juraj Lutter from comment #6)
Yeah. I noticed it too late. Copying from GitHub is sometimes painful. I corrected the typo at the very top and added a reference to the pull request for the current issue.
Comment 9 Dave Cottlehuber freebsd_committer freebsd_triage 2025-06-09 21:04:31 UTC
does https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287404 resolve this also?