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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   I am setting up a new laptop and tried to use our recommended way of 
building Arrow C++ using the provided presets. I've realized that when trying 
to build with flight I get the following error:
   ```cmake
   $ cmake -S arrow/cpp -B arrow/cpp/build -DCMAKE_INSTALL_PREFIX=$ARROW_HOME 
--preset ninja-debug-flight
   ...
   -- CMAKE_C_FLAGS:   -Wall -Wno-conversion -Wno-sign-conversion -Wdate-time 
-Wimplicit-fallthrough -Wunused-result -fno-semantic-interposition -msse4.2 
   -- CMAKE_CXX_FLAGS:  -Wredundant-move -Wno-noexcept-type -Wno-self-move  
-fdiagnostics-color=always  -Wall -Wno-conversion -Wno-sign-conversion 
-Wdate-time -Wimplicit-fallthrough -Wunused-result -fno-semantic-interposition 
-msse4.2 
   -- CMAKE_C_FLAGS_DEBUG: -g -Werror -O0 -ggdb  -Wno-error
   -- CMAKE_CXX_FLAGS_DEBUG: -g -Werror -O0 -ggdb  -Wno-error
   CMake Warning (dev) at src/arrow/CMakeLists.txt:1161 (install):
     Policy CMP0177 is not set: install() DESTINATION paths are normalized.  Run
     "cmake --help-policy CMP0177" for policy details.  Use the cmake_policy
     command to set the policy and suppress this warning.
   This warning is for project developers.  Use -Wno-dev to suppress it.
   
   -- Linking Arrow Flight tests statically due to static Protobuf
   -- Linking Arrow Flight tests statically due to static gRPC
   -- If static Protobuf or gRPC are used, Arrow must be built statically
   -- (These libraries have global state, and linkage must be consistent)
   CMake Error at src/arrow/flight/CMakeLists.txt:72 (message):
     Must build Arrow statically to link Flight tests statically
   
   
   -- Configuring incomplete, errors occurred!
   ```
   This seems to be because the preset inherits from `base-debug`, which 
inherits from `base` wich sets: 
   > "ARROW_BUILD_STATIC": "OFF"
   
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to