Skip to content

Apache DataFusion SQL Query Engine

ARROW-4297: [C++] Fix build error with MinGW-w64 32-bit

Javier Luraschi7c20ba47dce0
diff --git a/appveyor.yml b/appveyor.yml
index 082063ae57..3c4c2c3dc7 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -36,14 +36,6 @@ cache:
matrix:
fast_finish: true
- allow_failures:
- # Can't build with 32-bit MinGW for now.
- # See https://issues.apache.org/jira/browse/ARROW-4297
- - JOB: "MinGW32"
- MINGW_PACKAGE_PREFIX: mingw-w64-i686
- MINGW_PREFIX: c:\msys64\mingw32
- MSYSTEM: MINGW32
- USE_CLCACHE: false
environment:
global:
diff --git a/ci/appveyor-cpp-build-mingw.bat b/ci/appveyor-cpp-build-mingw.bat
index 4d39927454..bdd3b14462 100644
--- a/ci/appveyor-cpp-build-mingw.bat
+++ b/ci/appveyor-cpp-build-mingw.bat
@@ -44,8 +44,11 @@ cmake ^
-DARROW_PYTHON=ON ^
-DPythonInterp_FIND_VERSION=ON ^
-DPythonInterp_FIND_VERSION_MAJOR=3 ^
+ -DARROW_BUILD_TESTS=ON ^
+ -DARROW_PYTHON=OFF ^
.. || exit /B
make -j4 || exit /B
+ctest --output-on-failure -j2 || exit /B
make install || exit /B
popd
diff --git a/ci/appveyor-cpp-setup-mingw.bat b/ci/appveyor-cpp-setup-mingw.bat
index 471e7426f6..0c3d633cf8 100644
--- a/ci/appveyor-cpp-setup-mingw.bat
+++ b/ci/appveyor-cpp-setup-mingw.bat
@@ -25,6 +25,7 @@ pacman -S --noconfirm ^
"%MINGW_PACKAGE_PREFIX%-cmake" ^
"%MINGW_PACKAGE_PREFIX%-flatbuffers" ^
"%MINGW_PACKAGE_PREFIX%-gcc" ^
+ "%MINGW_PACKAGE_PREFIX%-gflags" ^
"%MINGW_PACKAGE_PREFIX%-gobject-introspection" ^
"%MINGW_PACKAGE_PREFIX%-gtk-doc" ^
"%MINGW_PACKAGE_PREFIX%-lz4" ^