Open indigophox opened 10 months ago
Can you share your CMake configure command? I've run into issues in the past on a Mac w/ googletest installed from homebrew and gotten around it with -DGTest_SOURCE=BUNDLED
.
Can you share your CMake configure command? I've run into issues in the past on a Mac w/ googletest installed from homebrew and gotten around it with
-DGTest_SOURCE=BUNDLED
.
Literally just --preset ninja-debug-flight-sql
. I can try with that as well, I did see despite it being in the _deps
build subdir it has its "bundled" option set to OFF
in the CMakeFIle...
Wow, I renamed the homebrew googletest include dir back and now I can't repro. Probably going to have to start from a clean Arrow checkout...
I was able to get a successful build from that preset with googletest installed via brew. This reminds me of https://github.com/apache/arrow/issues/34523 and https://github.com/apache/arrow/issues/32487. Let us know if you can reproduce. In the mean time, @kou or @assignUser may have some ideas here too.
I think that other dependencies added -I/opt/homebrew/include/
before -I_deps/googletest-src/googlemock/include
.
Could you share cmake --preset ninja-debug-flight-sql
output and ninja -v
result for the failed build?
Describe the bug, including details regarding any error messages, version, and platform.
C++ googletest headers don't compile properly when a system version of googletest is present and a different version from the bundled one. This can be bodged around by clobbering the system headers, e.g.
cp -R _deps/googletest-src/googlemock/include /opt/homebrew/Cellar/googletest/1.14.0/
Error behaviour looks like:
It appears to include the correct parent search paths for the gtest/ and gmock/ so I'm not clear on what's going off the rails where to allow the system headers to break things as above.
Component(s)
C++