Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-18186

[C++][MinGW] Fail to build with clang

    XMLWordPrintableJSON

Details

    Description

      https://github.com/kou/arrow/actions/runs/3342340048/jobs/5534465173#step:7:768

      FAILED: src/arrow/CMakeFiles/arrow_shared.dir/util/int_util.cc.obj 
      D:\a\_temp\msys64\clang64\bin\ccache.exe D:\a\_temp\msys64\clang64\bin\c++.exe -DARROW_EXPORTING -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_BMI2 -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 -DARROW_WITH_BROTLI -DARROW_WITH_BZ2 -DARROW_WITH_LZ4 -DARROW_WITH_RE2 -DARROW_WITH_SNAPPY -DARROW_WITH_UTF8PROC -DARROW_WITH_ZLIB -DARROW_WITH_ZSTD -DAWS_AUTH_USE_IMPORT_EXPORT -DAWS_CAL_USE_IMPORT_EXPORT -DAWS_CHECKSUMS_USE_IMPORT_EXPORT -DAWS_COMMON_USE_IMPORT_EXPORT -DAWS_COMPRESSION_USE_IMPORT_EXPORT -DAWS_CRT_CPP_USE_IMPORT_EXPORT -DAWS_EVENT_STREAM_USE_IMPORT_EXPORT -DAWS_HTTP_USE_IMPORT_EXPORT -DAWS_IO_USE_IMPORT_EXPORT -DAWS_MQTT_USE_IMPORT_EXPORT -DAWS_MQTT_WITH_WEBSOCKETS -DAWS_S3_USE_IMPORT_EXPORT -DAWS_SDKUTILS_USE_IMPORT_EXPORT -DAWS_SDK_VERSION_MAJOR=1 -DAWS_SDK_VERSION_MINOR=9 -DAWS_SDK_VERSION_PATCH=367 -DAWS_USE_IO_COMPLETION_PORTS -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DURI_STATIC_BUILD -DUSE_IMPORT_EXPORT -DUSE_IMPORT_EXPORT=1 -DUSE_WINDOWS_DLL_SEMANTICS -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -Darrow_shared_EXPORTS -ID:/a/arrow/arrow/build/cpp/src -ID:/a/arrow/arrow/cpp/src -ID:/a/arrow/arrow/cpp/src/generated -isystem D:/a/arrow/arrow/cpp/thirdparty/flatbuffers/include -isystem D:/a/arrow/arrow/cpp/thirdparty/hadoop/include -isystem D:/a/arrow/arrow/build/cpp/google_cloud_cpp_ep-install/include -isystem D:/a/arrow/arrow/build/cpp/crc32c_ep-install/include -Qunused-arguments -fcolor-diagnostics -O2 -DNDEBUG  -Wa,-mbig-obj -Wall -Wextra -Wdocumentation -Wshorten-64-to-32 -Wno-missing-braces -Wno-unused-parameter -Wno-constant-logical-operand -Wno-return-stack-address -Wno-unknown-warning-option -Wno-pass-failed -mxsave -msse4.2   -DNDEBUG -pthread -std=c++17 -MD -MT src/arrow/CMakeFiles/arrow_shared.dir/util/int_util.cc.obj -MF src\arrow\CMakeFiles\arrow_shared.dir\util\int_util.cc.obj.d -o src/arrow/CMakeFiles/arrow_shared.dir/util/int_util.cc.obj -c D:/a/arrow/arrow/cpp/src/arrow/util/int_util.cc
      D:/a/arrow/arrow/cpp/src/arrow/util/int_util.cc:463:1: error: an attribute list cannot appear here
      INSTANTIATE_ALL()
      ^~~~~~~~~~~~~~~~~
      D:/a/arrow/arrow/cpp/src/arrow/util/int_util.cc:454:3: note: expanded from macro 'INSTANTIATE_ALL'
        INSTANTIATE_ALL_DEST(uint8_t)  \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      D:/a/arrow/arrow/cpp/src/arrow/util/int_util.cc:444:3: note: expanded from macro 'INSTANTIATE_ALL_DEST'
        INSTANTIATE(uint8_t, DEST)       \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
      D:/a/arrow/arrow/cpp/src/arrow/util/int_util.cc:440:12: note: expanded from macro 'INSTANTIATE'
        template ARROW_TEMPLATE_EXPORT void TransposeInts( \
                 ^~~~~~~~~~~~~~~~~~~~~
      D:/a/arrow/arrow/cpp/src/arrow/util/visibility.h:47:31: note: expanded from macro 'ARROW_TEMPLATE_EXPORT'
      #define ARROW_TEMPLATE_EXPORT ARROW_DLLEXPORT
                                    ^~~~~~~~~~~~~~~
      D:/a/arrow/arrow/cpp/src/arrow/util/visibility.h:32:25: note: expanded from macro 'ARROW_DLLEXPORT'
      #define ARROW_DLLEXPORT [[gnu::dllexport]]
                              ^~~~~~~~~~~~~~~~~~
      ...
      [127/801] Building CXX object src/arrow/CMakeFiles/arrow_shared.dir/util/io_util.cc.obj
      D:/a/arrow/arrow/cpp/src/arrow/util/io_util.cc:1079:7: warning: variable 'oflag' set but not used [-Wunused-but-set-variable]
        int oflag = _O_CREAT | _O_BINARY | _O_NOINHERIT;
            ^
      D:/a/arrow/arrow/cpp/src/arrow/util/io_util.cc:1545:29: warning: missing field 'InternalHigh' initializer [-Wmissing-field-initializers]
        OVERLAPPED overlapped = {0};
                                  ^
      

      Attachments

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              kou Kouhei Sutou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m