Repository navigation
[C++] 20 Re2 tests failed to run due to the executable files doesn't generate #49834
Description
Describe the bug, including details regarding any error messages, version, and platform.
20 Re2 tests failed to run due to the executable files doesn't generate, this is regression issues and haven't occur in old commit 56e3836.
Repro Steps:
- Open VS2022 x64 Native Command Prompt tools
- Clone repo and checkout d7a02c1
- cd to build folder: cd /d C:\gitP\apache\arrow\cpp\build_amd64
- cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.26100.0 -DARROW_BUILD_TESTS=ON -DARROW_ACERO=ON -DARROW_FILESYSTEM=ON -DARROW_PARQUET=OFF -DARROW_SUBSTRAIT=ON -DARROW_DATASET=ON ..
- msbuild /m /p:Platform=x64 /p:Configuration=Release arrow.sln /t:Rebuild
- set ARROW_TEST_DATA=C:\gitP\apache\arrow\testing\data
- ctest -C Release --output-on-failure -R "charclass_test"
Failures:
The following tests FAILED:
1 - charclass_test (Not Run)
2 - compile_test (Not Run)
3 - filtered_re2_test (Not Run)
4 - mimics_pcre_test (Not Run)
5 - parse_test (Not Run)
6 - possible_match_test (Not Run)
7 - re2_test (Not Run)
8 - re2_arg_test (Not Run)
9 - regexp_test (Not Run)
10 - required_prefix_test (Not Run)
11 - search_test (Not Run)
12 - set_test (Not Run)
13 - simplify_test (Not Run)
14 - string_generator_test (Not Run)
15 - dfa_test (Not Run)
16 - exhaustive1_test (Not Run)
17 - exhaustive2_test (Not Run)
18 - exhaustive3_test (Not Run)
19 - exhaustive_test (Not Run)
20 - random_test (Not Run)
Test project C:/gitP/apache/arrow/cpp/build_amd64
Start 1: charclass_test
Could not find executable C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/charclass_test.exe
Looked in the following places:
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/charclass_test.exe
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/charclass_test.exe.exe
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/Release/charclass_test.exe
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/Release/charclass_test.exe.exe
Release/C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/charclass_test.exe
Release/C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/charclass_test.exe.exe
Unable to find executable: C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/charclass_test.exe
1/105 Test #1: charclass_test ........................***Not Run 0.00 sec
Start 2: compile_test
Could not find executable C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/compile_test.exe
Looked in the following places:
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/compile_test.exe
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/compile_test.exe.exe
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/Release/compile_test.exe
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/Release/compile_test.exe.exe
Release/C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/compile_test.exe
Release/C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/compile_test.exe.exe
Unable to find executable: C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/compile_test.exe
2/105 Test #2: compile_test ..........................***Not Run 0.00 sec
Start 3: filtered_re2_test
Could not find executable C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/filtered_re2_test.exe
Looked in the following places:
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/filtered_re2_test.exe
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/filtered_re2_test.exe.exe
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/Release/filtered_re2_test.exe
C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/Release/filtered_re2_test.exe.exe
Release/C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/filtered_re2_test.exe
Release/C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/filtered_re2_test.exe.exe
Unable to find executable: C:/gitP/apache/arrow/cpp/build_amd64/_deps/re2-build/Release/filtered_re2_test.exe
...
Component(s)
C++
Activity
[-]20 Re2 tests failed to run due to the executable files doesn't generate[/-][+][C++] 20 Re2 tests failed to run due to the executable files doesn't generate[/+]kou commentedon Apr 27, 2026
Could you try the latest release?
kou commentedon Apr 27, 2026
Ah, "20" means the number of tests. I thought Apache Arrow 20.0.0.
kou commentedon Apr 27, 2026
It's strange that
ctestruns RE2 tests.Could you try
git bisectto detect the exact commit for this problem?PhoebeHui commentedon May 6, 2026
Thanks @kou for your help! It looks the Re2 tests involved by commit f8ae141, the generated arrow\cpp\build_amd64\CTestTestfile.cmake contains _deps/re2-build folder starts from this commit.
kou commentedon May 7, 2026
Thanks.
Could you share the content of
arrow\cpp\build_amd64\_deps\re2-build\CTestTestfile.cmake?PhoebeHui commentedon May 7, 2026
Sure
arrow\cpp\build_amd64_deps\re2-build\CTestTestfile.cmake file generated by commit f8ae141
arrow\cpp\build_amd64_deps\re2-build\CTestTestfile.cmake file generated by commit 56e3836
GH-49834: [C++] Avoid building re2 unit tests (#50152)
kou commentedon Jun 11, 2026
Issue resolved by pull request 50152
#50152