[ 86% 363/416] /usr/local/bin/ccache /usr/local/llvm17/bin/clang++ -DARROW_TESTING_EXPORTING -DARROW_WITH_TIMING_TESTS -DBOOST_ALL_DYN_LINK -DBOOST_PROCESS_HAVE_V2 -DBOOST_PROCESS_NEED_SOURCE -DBOOST_PROCESS_USE_V2 -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -I/construction/xports/databases/arrow/work/.build/src -I/construction/xports/databases/arrow/work/apache-arrow-19.0.1/cpp/src -I/construction/xports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/generated -isystem /construction/xports/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 /construction/xports/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 /usr/local/bin/ccache /usr/local/llvm17/bin/clang++ -DARROW_TESTING_EXPORTING -DARROW_WITH_TIMING_TESTS -DBOOST_ALL_DYN_LINK -DBOOST_PROCESS_HAVE_V2 -DBOOST_PROCESS_NEED_SOURCE -DBOOST_PROCESS_USE_V2 -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -I/construction/xports/databases/arrow/work/.build/src -I/construction/xports/databases/arrow/work/apache-arrow-19.0.1/cpp/src -I/construction/xports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/generated -isystem /construction/xports/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 /construction/xports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/arrow/testing/process.cc /construction/xports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/arrow/testing/process.cc:43:16: fatal error: 'boost/process/v2/src.hpp' file not found 43 | # include <boost/process/v2/src.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. [ 87% 363/416] cd /construction/xports/databases/arrow/work/.build/src/gandiva/precompiled && /usr/local/llvm17/bin/clang-17 -std=c++17 -DGANDIVA_IR -DNDEBUG -DARROW_STATIC -DGANDIVA_STATIC -fno-use-cxa-atexit -emit-llvm -O3 -c /construction/xports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/gandiva/precompiled/decimal_ops.cc -o /construction/xports/databases/arrow/work/.build/src/gandiva/precompiled/decimal_ops.bc -I/construction/xports/databases/arrow/work/.build/src -I/construction/xports/databases/arrow/work/apache-arrow-19.0.1/cpp/src [ 87% 363/416] cd /construction/xports/databases/arrow/work/.build/src/gandiva/precompiled && /usr/local/llvm17/bin/clang-17 -std=c++17 -DGANDIVA_IR -DNDEBUG -DARROW_STATIC -DGANDIVA_STATIC -fno-use-cxa-atexit -emit-llvm -O3 -c /construction/xports/databases/arrow/work/apache-arrow-19.0.1/cpp/src/gandiva/precompiled/string_ops.cc -o /construction/xports/databases/arrow/work/.build/src/gandiva/precompiled/string_ops.bc -I/construction/xports/databases/arrow/work/.build/src -I/construction/xports/databases/arrow/work/apache-arrow-19.0.1/cpp/src ninja: build stopped: subcommand failed. ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /xports/databases/arrow
Created attachment 258653 [details] Patch for cpp/src/arrow/testing/process.cc undefining BOOST_PROCESS_NEED_SOURCE
Hi Trond, I am curious whether there's something special in your environment, because arrow vuilds without such error on package builders. There is no fallout.
(In reply to Yuri Victorovich from comment #2) This happens on src/stable/13, and also on src/main. These are my settings for databases/arrow: ===> The following configuration options are available for arrow-19.0.1_1: ====> Compression support: BROTLI=off: Brotli compression support BZ2=off: bz2 compression support LZ4=off: LZ4 compression support SNAPPY=off: Snappy compression library support ZLIB=off: zlib compression support ZSTD=off: zstd compression support ====> Build components: ACERO=on: Arrow Acero Engine Module COMPUTE=on: Arrow Compute Modules CSV=on: Arrow CSV Parser Module DATASET=on: Arrow Dataset Modules FILESYSTEM=on: Arrow Filesystem Layer FLIGHT=off: Arrow Flight RPC System GANDIVA=on: Gandiva libraries HDFS=on: Arrow HDFS bridge IPC=on: Arrow IPC extensions JSON=on: JSON support MIMALLOC=off: Arrow mimalloc-based allocato PARQUET=on: Parquet libraries ORC=off: Arrow ORC adapter S3=off: S3 support SKYHOOK=off: Build the Skyhook libraries SUBSTRAIT=off: Build the Arrow Substrait Consumer Module BUILD_UTILITIES=on: build Arrow commandline utilities TENSORFLOW=off: TensorFlow support TESTING=on: Arrow testing libraries The settings are stock, I guess I could disable TESTING and my patch might not be needed. Well, it can be something else. I'll try my hypothesis first.
(In reply to Trond Endrestøl from comment #3) No TESTING and no patch of mine is a go.
(In reply to Trond Endrestøl from comment #4) It's a miracle. I reenabled TESTING but left my patch out of this, and the build remains successful. I have no explanation for this. databases/arrow has been failing to build for weeks and only after applying my patch or fiddling with TESTING has the build been successful. Maybe it's ccache poisoning. Building using Poudriere checks out, but I still have to try Synth.
(In reply to Trond Endrestøl from comment #5) FLIGHT got enabled after a make rmconfig. Maybe that's significant.
Disabling the FLIGHT option makes this error to come up.
Committed. Thanks for your report!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=cfc615609dbf9915786ff290f2f144959016cfed commit cfc615609dbf9915786ff290f2f144959016cfed Author: Trond Endrestøl <Trond.Endrestol@ximalas.info> AuthorDate: 2025-03-15 05:47:02 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2025-03-15 05:47:59 +0000 databases/arrow: Fix build with FLIGHT=off PR: 285393 .../arrow/files/patch-src_arrow_testing_process.cc (new) | 12 ++++++++++++ 1 file changed, 12 insertions(+)