Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

nmcdonnell-kx
Copy link
Contributor

@nmcdonnell-kx nmcdonnell-kx commented Jan 31, 2021

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

@github-actions
Copy link

Thanks for opening a pull request!

Could you open an issue for this pull request on JIRA?
https://issues.apache.org/jira/browse/ARROW

Then could you also rename pull request title in the following format?

ARROW-${JIRA_ID}: [${COMPONENT}] ${SUMMARY}

See also:

@nmcdonnell-kx nmcdonnell-kx changed the title Arrow 3.0.0 build failing on Windows Arrow C++ 3.0.0 build failing on Windows Jan 31, 2021
@nmcdonnell-kx nmcdonnell-kx changed the title Arrow C++ 3.0.0 build failing on Windows Arrow C++ 3.0.0 build failing on Windows with Visual Studio Jan 31, 2021
@nmcdonnell-kx nmcdonnell-kx changed the title Arrow C++ 3.0.0 build failing on Windows with Visual Studio ARROW-11448: [C++] Arrow C++ 3.0.0 build failing on Windows with Visual Studio Jan 31, 2021
@github-actions
Copy link

nmcdonnell-kx added a commit to KxSystems/arrowkdb that referenced this pull request Jan 31, 2021
@@ -21,6 +21,7 @@
#include <cmath>
#include <iostream>
#include <queue>
#include <tuple>
Copy link
Contributor

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.

Copy link
Member

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.

@kou kou changed the title ARROW-11448: [C++] Arrow C++ 3.0.0 build failing on Windows with Visual Studio ARROW-11448: [C++] Fix tdigest build failure on Windows with Visual Studio Feb 1, 2021
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@kou kou closed this in 3c03531 Feb 1, 2021
GeorgeAp pushed a commit to sirensolutions/arrow that referenced this pull request Jun 7, 2021
…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>
michalursa pushed a commit to michalursa/arrow that referenced this pull request Jun 13, 2021
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants