Skip to content

ORC-1451: Add clang-10 GitHub Action Job and enable STOP_BUILD_ON_WARNING - #1546

Closed
dongjoon-hyun wants to merge 2 commits into
apache:mainfrom
dongjoon-hyun:ORC-1451
Closed

dongjoon-hyun wants to merge 2 commits into
apache:mainfrom
dongjoon-hyun:ORC-1451

Conversation

@dongjoon-hyun

@dongjoon-hyun dongjoon-hyun commented Jun 22, 2023 •

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR aims to add Clang 10 test coverage to prevent future regressions like ORC-1450.

Why are the changes needed?

To have Clang 10 test coverage in branch-1.9.

How was this patch tested?

This PR is supposed to fail because we didn't merge #1545 yet.

Here is the failure result.

/home/runner/work/orc/orc/c++/src/wrap/orc-proto-wrapper.hh:38:1: error: unknown warning group '-Wsuggest-destructor-override', ignored [-Werror,-Wunknown-warning-option]
DIAGNOSTIC_IGNORE("-Wsuggest-destructor-override")
^
/home/runner/work/orc/orc/build/c++/src/Adaptor.hh:73:34: note: expanded from macro 'DIAGNOSTIC_IGNORE'
  #define DIAGNOSTIC_IGNORE(XXX) PRAGMA(clang diagnostic ignored XXX)
                                 ^
/home/runner/work/orc/orc/build/c++/src/Adaptor.hh:70:21: note: expanded from macro 'PRAGMA'
#define PRAGMA(TXT) _Pragma(#TXT)
                    ^
<scratch space>:251:27: note: expanded from here
 clang diagnostic ignored "-Wsuggest-destructor-override"
                          ^
1 error generated.
make[2]: *** [c++/src/CMakeFiles/orc.dir/build.make:139: c++/src/CMakeFiles/orc.dir/sargs/PredicateLeaf.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:433: c++/src/CMakeFiles/orc.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
Error: Process completed with exit code 2.

@github-actions github-actions Bot added the INFRA label Jun 22, 2023
@dongjoon-hyun dongjoon-hyun added this to the 1.9.0 milestone Jun 22, 2023
@dongjoon-hyun dongjoon-hyun changed the title ORC-1451: Add clang-10 GitHub Action Job ORC-1451: Add clang-10 GitHub Action Job and enable STOP_BUILD_ON_WARNING Jun 22, 2023
@github-actions github-actions Bot added the CPP label Jun 22, 2023
@github-actions github-actions Bot added the BUILD label Jun 22, 2023
Comment thread CMakeLists.txt Outdated
elseif (CMAKE_HOST_APPLE AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "11.0")
set (WARN_FLAGS "${WARN_FLAGS} -Wno-c++2a-compat")
elseif (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "10.0")
set (WARN_FLAGS "${WARN_FLAGS} -Wno-suggest-override -Wno-suggest-destructor-override -Wno-implicit-fallthrough")

@dongjoon-hyun dongjoon-hyun Jun 22, 2023 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid any code change in this test coverage PR, I simply excluded the existing errors on Clang 10. Given that higher Clang has no issues, I believe we can ignore these. Eventually, we will drop Clang 10.

@dongjoon-hyun dongjoon-hyun left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. snappy seems to fail at compilation on clang-10.

2023-06-22T07:12:55.6522007Z /usr/bin/ld: ../libs/thirdparty/snappy_ep-install/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTIN6snappy15ByteArraySourceE[_ZTIN6snappy15ByteArraySourceE]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
2023-06-22T07:12:55.6523071Z /usr/bin/ld: ../libs/thirdparty/snappy_ep-install/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTIN6snappy6SourceE[_ZTIN6snappy6SourceE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
2023-06-22T07:12:55.6523729Z /usr/bin/ld: ../libs/thirdparty/snappy_ep-install/lib/libsnappy.a(snappy-sinksource.cc.o):(.data.rel.ro._ZTIN6snappy4SinkE[_ZTIN6snappy4SinkE]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
2023-06-22T07:12:55.6824603Z clang: error: linker command failed with exit code 1 (use -v to see invocation)
2023-06-22T07:12:55.6858202Z make[2]: *** [c++/test/CMakeFiles/orc-test.dir/build.make:633: c++/test/orc-test] Error 1
2023-06-22T07:12:55.6860173Z make[1]: *** [CMakeFiles/Makefile2:465: c++/test/CMakeFiles/orc-test.dir/all] Error 2
2023-06-22T07:12:55.6861974Z make: *** [Makefile:166: all] Error 2
2023-06-22T07:12:55.6886009Z ##[error]Process completed with exit code 2.

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For snappy issue, I don't have a solution yet. So, I'm close this PR for now.

For the Clang 10.0 specific configuration, I'll try to add them separetly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant