apache / apache/arrow

[C++] Warning "ignoring unknown option '-mbmi2'" on MSVC

Open
#26,650 2 comments 0 reactions 0 assignees View on GitHub
Component: C++ Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

Seen on Github Actions:
https://github.com/apache/arrow/pull/8716/checks?check_run_id=1442252599#step:7:792

```Java

Generating Code...
level_comparison_avx2.cc
cl : command line warning D9002: ignoring unknown option '-mbmi2' [D:\a\arrow\arrow\build\cpp\src\parquet\parquet_shared.vcxproj]
level_conversion_bmi2.cc
```

This may possibly affect performance too.

**Reporter**: [Antoine Pitrou](https://issues.apache.org/jira/browse/ARROW-10700) / @pitrou

**Note**: *This issue was originally created as [ARROW-10700](https://issues.apache.org/jira/browse/ARROW-10700). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Begin with the linked GitHub Actions check and the MSVC warning for parquet_shared.vcxproj, then trace where -mbmi2 is added to the C++ build. Done means the MSVC build no longer reports warning D9002 and the potential performance impact has been checked.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.