Skip to content

COMP: Applied gtest PR 4025 to fix build with old clang#3978

Closed
seanm wants to merge 1 commit intoInsightSoftwareConsortium:masterfrom
seanm:gtest-pr-4025
Closed

COMP: Applied gtest PR 4025 to fix build with old clang#3978
seanm wants to merge 1 commit intoInsightSoftwareConsortium:masterfrom
seanm:gtest-pr-4025

Conversation

@seanm
Copy link
Copy Markdown
Contributor

@seanm seanm commented Mar 29, 2023

@seanm
Copy link
Copy Markdown
Contributor Author

seanm commented Mar 29, 2023

@dzenanz

@kwrobot-v1
Copy link
Copy Markdown

kwrobot-v1 bot commented Mar 29, 2023

Errors:

  • Failed to fetch from the repository: host error: no result after exponential backoff.
  • Failed to reserve ref bca75a0 for the merge request: invalid git ref: 'no such commit'.
  • Failed to run the checks: mr utilities error: failed to list commits of bca75a08e2e17c4a01941bbdd7ff4789ef45219b for https://github.com/InsightSoftwareConsortium/ITK/pull/3978: fatal: bad object bca75a08e2e17c4a01941bbdd7ff4789ef45219b .

@github-actions github-actions bot added type:Compiler Compiler support or related warnings type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct area:ThirdParty Issues affecting the ThirdParty module labels Mar 29, 2023
@kwrobot-v1
Copy link
Copy Markdown

kwrobot-v1 bot commented Mar 29, 2023

Errors:

  • Failed to fetch from the repository: host error: no result after exponential backoff.
  • Failed to reserve ref bca75a0 for the merge request: invalid git ref: 'no such commit'.
  • Failed to run the checks: mr utilities error: failed to list commits of bca75a08e2e17c4a01941bbdd7ff4789ef45219b for https://github.com/InsightSoftwareConsortium/ITK/pull/3978: fatal: bad object bca75a08e2e17c4a01941bbdd7ff4789ef45219b .

2 similar comments
@kwrobot-v1
Copy link
Copy Markdown

kwrobot-v1 bot commented Mar 29, 2023

Errors:

  • Failed to fetch from the repository: host error: no result after exponential backoff.
  • Failed to reserve ref bca75a0 for the merge request: invalid git ref: 'no such commit'.
  • Failed to run the checks: mr utilities error: failed to list commits of bca75a08e2e17c4a01941bbdd7ff4789ef45219b for https://github.com/InsightSoftwareConsortium/ITK/pull/3978: fatal: bad object bca75a08e2e17c4a01941bbdd7ff4789ef45219b .

@kwrobot-v1
Copy link
Copy Markdown

kwrobot-v1 bot commented Mar 29, 2023

Errors:

  • Failed to fetch from the repository: host error: no result after exponential backoff.
  • Failed to reserve ref bca75a0 for the merge request: invalid git ref: 'no such commit'.
  • Failed to run the checks: mr utilities error: failed to list commits of bca75a08e2e17c4a01941bbdd7ff4789ef45219b for https://github.com/InsightSoftwareConsortium/ITK/pull/3978: fatal: bad object bca75a08e2e17c4a01941bbdd7ff4789ef45219b .

@N-Dekker
Copy link
Copy Markdown
Contributor

N-Dekker commented Mar 29, 2023

Thanks @seanm but can't we drop the support for such old clang versions anyway?

I'm asking especially because of:

which proposes to require at least LLVM Clang 5 or Apple Clang 10.0.0 (from Xcode 10.0).

If I understand correctly, gtest PR google/googletest#4025 is only relevant for Clang < 3.8, right?

BTW, it looks like gtest has fixed the issue in a different way: google/googletest@a9b2f04 Is that approach also OK to you? It is included with GoogleTest release https://github.com/google/googletest/releases/tag/v1.13.0

@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Mar 29, 2023

Would updated GTest solve this issue for you?

@hjmjohnson
Copy link
Copy Markdown
Member

Do: check

@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Mar 30, 2023

#3979 was merged. Does that fix the problem for you? If not, please update this PR as it now has merge conflicts.

@hjmjohnson
Copy link
Copy Markdown
Member

I do think this is superceeded by #3979 and can be closed. @seanm Thanks for poking this. @dzenanz Thanks for updating google test.

@seanm
Copy link
Copy Markdown
Contributor Author

seanm commented Mar 31, 2023

#3979 was merged. Does that fix the problem for you?

We will see on cdash tomorrow...

@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Mar 31, 2023

If am reading the dashboard correctly, GTest compile failure is now gone.

@seanm
Copy link
Copy Markdown
Contributor Author

seanm commented Mar 31, 2023

If am reading the dashboard correctly, GTest compile failure is now gone.

Only because it's much worse, it doesn't build at all:

https://open.cdash.org/build/8590216/configure

CMake Error at CMake/itkCompilerChecks.cmake:16 (message):
  Apple Clang 10.0.0 or later is required.

@dzenanz
Copy link
Copy Markdown
Member

dzenanz commented Mar 31, 2023

That is due to merging the PR which bumps required C++ version to 17 (from C++14). Maybe it is time to retire those builds?

@seanm seanm closed this Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ThirdParty Issues affecting the ThirdParty module type:Compiler Compiler support or related warnings type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants