New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve Clang compilation issue with benchmark 1.5.3 #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvement! I've got a few questions below.
First, can you please give us an idea of which compiler is giving you this warning? I don't seem to see it when we are building Google benchmark on Ubuntu 22.04 (g++ 11.3.0). I just want to know how to reproduce the warning.
Second, we generally prefer that the version we are vendoring here matches the version of the package that is shipped in Ubuntu 22.04. In this case, we are already vendoring 1.6.1, and that is what is in Ubuntu 22.04. So instead of updating the hash, I think instead we should instead add in a patch file which has just the change you are interested in.
Finally, can you please target this to the rolling
branch instead of humble
? We'll get it in there first and then backport from there.
Hi @clalancette , thanks for reviewing!
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ --packages-select google_benchmark_vendor
|
Hm, that's weird. I cannot reproduce that on Rolling here. Oh, but I can reproduce it on Humble. And in turn, that is because there is a bug in the packaging for this on Humble. It claims to be versioning 1.6.1, but it is actually versioning 1.5.3 (this is due to 2 PRs in flight at the same time, where one of them undid what the other one did). This is fixed on Rolling, but not on Humble. So I'm sorry, but my advice here has changed. What I think we should do here instead is to retarget this to |
Signed-off-by: aseiwert <adam.seiwert@ngc.com>
Signed-off-by: aseiwert <adam.seiwert@ngc.com>
That makes sense and I believe I have made all the requested changes correctly. The only uncertainty I had was regarding the precise name for the new patch file. I kept it as the name of the commit it was generated from for traceability purposes. However, if you think it should be renamed or if there are any other additional changes needed, please let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, thanks for iterating. I'll run CI on it next.
Would like to upgrade to latest version of Google Benchmark 1.6.1 to resolve this issue that shows up when generating release builds:
I've confirmed this is resolved with the latest 1.6.1 version but the older version referenced in the cmake does contain this erroneous variable.