jleibs opened a new issue, #44563:
URL: https://github.com/apache/arrow/issues/44563

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Version: arrow-18.0.0
   Host platform: arch linux
   
   When building a static library that depends on a manual build of arrow, it 
appears that the contents of `function_internal.cc`, which is brought in 
regardless of the status of `-DARROW_COMPUTE` indirectly uses IPC:
   
   Offending line:
   
https://github.com/apache/arrow/blob/9105a4109a80a1c01eabb24ee4b9f7c94ee942cb/cpp/src/arrow/compute/function_internal.cc#L73
   
   If IPC is disabled (`-DARROW_IPC=OFF`), this leads to a link error:
   ```
   
/home/jleibs/rerun/build/debug/arrow/src/arrow_cpp/cpp/src/arrow/compute/function_internal.cc:73:(.text._ZNK5arrow7compute8internal18GenericOptionsType9SerializeERKNS0_15FunctionOptionsE+0x5d4):
 undefined reference to `arrow::ipc::IpcWriteOptions::Defaults()'
   
/home/jleibs/rerun/.pixi/envs/cpp/bin/../lib/gcc/x86_64-conda-linux-gnu/12.4.0/../../../../x86_64-conda-linux-gnu/bin/ld:
 
/home/jleibs/rerun/build/debug/arrow/src/arrow_cpp/cpp/src/arrow/compute/function_internal.cc:73:(.text._ZNK5arrow7compute8internal18GenericOptionsType9SerializeERKNS0_15FunctionOptionsE+0x632):
 undefined reference to 
`arrow::ipc::MakeFileWriter(std::shared_ptr<arrow::io::OutputStream>, 
std::shared_ptr<arrow::Schema> const&, arrow::ipc::IpcWriteOptions const&, 
std::shared_ptr<arrow::KeyValueMetadata const> const&)'
   ```
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to