-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-11448: [C++] Fix tdigest build failure on Windows with Visual Studio #9382
Conversation
Thanks for opening a pull request! Could you open an issue for this pull request on JIRA? Then could you also rename pull request title in the following format?
See also: |
Reverted to apache-arrow-2.0.0 Opened JIRA: https://issues.apache.org/jira/browse/ARROW-11448 Created PR with fix: apache/arrow#9382
@@ -21,6 +21,7 @@ | |||
#include <cmath> | |||
#include <iostream> | |||
#include <queue> | |||
#include <tuple> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing it.
It's strange why CI doesn't find this error when I uploaded the original patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, -DCMAKE_UNITY_BUILD=ON
hides this problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
…tudio CMake args (run from Visual Studio command prompt): ``` C:\Git\arrow3.0.0\cpp\build>cmake .. -DARROW_PARQUET=ON -DARROW_WITH_SNAPPY=ON -DARROW_BUILD_STATIC=OFF -DSnappy_LIB=%SNAPPY_INSTALL%\lib\snappy.lib -DSnappy_INCLUDE_DIR=%SNAPPY_INSTALL%\include -DCMAKE_INSTALL_PREFIX=%BUILD_HOME% ``` Missing `include <tuple>`: ``` 24>C:\Git\arrow3.0.0\cpp\src\arrow\util\tdigest.cc(224,12): error C2039: 'tie': is not a member of 'std' 24>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\queue(22): message : see declaration of 'std' 24>C:\Git\arrow3.0.0\cpp\src\arrow\util\tdigest.cc(224,1): error C3861: 'tie': identifier not found 24>C:\Git\arrow3.0.0\cpp\src\arrow\util\tdigest.cc(233,12): error C2039: 'tie': is not a member of 'std' 24>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\queue(22): message : see declaration of 'std' 24>C:\Git\arrow3.0.0\cpp\src\arrow\util\tdigest.cc(233,1): error C3861: 'tie': identifier not found ``` Arrow version: ``` C:\Git\arrow3.0.0\cpp\build>git describe apache-arrow-3.0.0-94-g51e911892 ``` Closes apache#9382 from nmcdonnell-kx/master Authored-by: nmcdonnell-kx <nmcdonnell@kx.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
…tudio CMake args (run from Visual Studio command prompt): ``` C:\Git\arrow3.0.0\cpp\build>cmake .. -DARROW_PARQUET=ON -DARROW_WITH_SNAPPY=ON -DARROW_BUILD_STATIC=OFF -DSnappy_LIB=%SNAPPY_INSTALL%\lib\snappy.lib -DSnappy_INCLUDE_DIR=%SNAPPY_INSTALL%\include -DCMAKE_INSTALL_PREFIX=%BUILD_HOME% ``` Missing `include <tuple>`: ``` 24>C:\Git\arrow3.0.0\cpp\src\arrow\util\tdigest.cc(224,12): error C2039: 'tie': is not a member of 'std' 24>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\queue(22): message : see declaration of 'std' 24>C:\Git\arrow3.0.0\cpp\src\arrow\util\tdigest.cc(224,1): error C3861: 'tie': identifier not found 24>C:\Git\arrow3.0.0\cpp\src\arrow\util\tdigest.cc(233,12): error C2039: 'tie': is not a member of 'std' 24>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\queue(22): message : see declaration of 'std' 24>C:\Git\arrow3.0.0\cpp\src\arrow\util\tdigest.cc(233,1): error C3861: 'tie': identifier not found ``` Arrow version: ``` C:\Git\arrow3.0.0\cpp\build>git describe apache-arrow-3.0.0-94-g51e911892 ``` Closes apache#9382 from nmcdonnell-kx/master Authored-by: nmcdonnell-kx <nmcdonnell@kx.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
CMake args (run from Visual Studio command prompt):
Missing
include <tuple>
:Arrow version: