[
https://issues.apache.org/jira/browse/AVRO-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan Skraba closed AVRO-3187.
-----------------------------
> [C++] Lint is failing in the "Test C++"
> ---------------------------------------
>
> Key: AVRO-3187
> URL: https://issues.apache.org/jira/browse/AVRO-3187
> Project: Apache Avro
> Issue Type: Task
> Reporter: Ryan Skraba
> Priority: Major
>
> See
> [https://github.com/apache/avro/runs/3312790058?check_suite_focus=true#step:4:29]
> {code:java}
> 2021-08-12T14:37:59.9325676Z ./build.sh lint
> 2021-08-12T14:37:59.9361584Z shell: /usr/bin/bash -e {0}
> 2021-08-12T14:37:59.9361957Z ##[endgroup]
> 2021-08-12T14:38:00.4299832Z CMake Deprecation Warning at CMakeLists.txt:19
> (cmake_minimum_required):
> 2021-08-12T14:38:00.4300807Z Compatibility with CMake < 2.8.12 will be
> removed from a future version of
> 2021-08-12T14:38:00.4301265Z CMake.
> 2021-08-12T14:38:00.4301457Z
> 2021-08-12T14:38:00.4301864Z Update the VERSION argument <min> value or use
> a ...<max> suffix to tell
> 2021-08-12T14:38:00.4302507Z CMake that the project does not need
> compatibility with older versions.
> 2021-08-12T14:38:00.4302891Z
> 2021-08-12T14:38:00.4303061Z
> 2021-08-12T14:38:00.8712057Z -- The C compiler identification is GNU 9.3.0
> 2021-08-12T14:38:01.1132670Z -- The CXX compiler identification is GNU 9.3.0
> 2021-08-12T14:38:01.1909803Z -- Detecting C compiler ABI info
> 2021-08-12T14:38:01.3011150Z -- Detecting C compiler ABI info - done
> 2021-08-12T14:38:01.3108440Z -- Check for working C compiler: /usr/bin/cc -
> skipped
> 2021-08-12T14:38:01.3112469Z -- Detecting C compile features
> 2021-08-12T14:38:01.3163511Z -- Detecting C compile features - done
> 2021-08-12T14:38:01.3250865Z -- Detecting CXX compiler ABI info
> 2021-08-12T14:38:01.3794786Z -- Detecting CXX compiler ABI info - done
> 2021-08-12T14:38:01.3897917Z -- Check for working CXX compiler: /usr/bin/c++
> - skipped
> 2021-08-12T14:38:01.3899469Z -- Detecting CXX compile features
> 2021-08-12T14:38:01.3905154Z -- Detecting CXX compile features - done
> 2021-08-12T14:38:01.4533361Z -- Found Boost:
> /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found
> suitable version "1.71.0", minimum required is "1.38") found components:
> filesystem iostreams program_options regex system
> 2021-08-12T14:38:01.4612830Z Enabled snappy codec
> 2021-08-12T14:38:01.4613880Z -- Found Snappy:
> /usr/lib/x86_64-linux-gnu/libsnappy.so
> 2021-08-12T14:38:01.4965821Z -- Configuring done
> 2021-08-12T14:38:01.5415748Z -- Generating done
> 2021-08-12T14:38:01.5438650Z -- Build files have been written to:
> /home/runner/work/avro/avro/lang/c++/build
> 2021-08-12T14:38:01.7373553Z
> build/CMakeFiles/3.21.1/CompilerIdC/CMakeCCompilerId.c:310:0: error: failed
> to evaluate #elif condition, division/modulo by zero
> [preprocessorErrorDirective]
> 2021-08-12T14:38:01.7374812Z #elif defined(__clang__) &&
> __has_include(<hip/hip_version.h>)
> 2021-08-12T14:38:01.7375271Z ^
> 2021-08-12T14:38:01.9203607Z
> build/CMakeFiles/3.21.1/CompilerIdCXX/CMakeCXXCompilerId.cpp:304:0: error:
> failed to evaluate #elif condition, division/modulo by zero
> [preprocessorErrorDirective]
> 2021-08-12T14:38:01.9204904Z #elif defined(__clang__) &&
> __has_include(<hip/hip_version.h>)
> 2021-08-12T14:38:01.9205359Z ^
> 2021-08-12T14:38:02.9677539Z ##[error]Process completed with exit code 1.
> {code}
> This is the last successful execution of the action on July 20th :
> [https://github.com/apache/avro/runs/3112364072?check_suite_focus=true
> |https://github.com/apache/avro/runs/3112364072?check_suite_focus=true]
> The C++ build works in the Avro docker image, and there haven't been any
> changes. Is it a tool version mismatch in the github environment? Can it be
> fixed?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)