Skip to content
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

Use global cmake macros and fix gcc-10 build #1527

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

christophfroehlich
Copy link
Contributor

@christophfroehlich christophfroehlich commented Feb 5, 2025

The change is motivated from the fact that we added a compiler option, which was introduced with gcc-11. But, debian11 (the humble tier 3), has only gcc-10 per default. (We don't have CI jobs for compatibility of the rolling version on humble debian/rhel.)

#24 258.0 --- stderr: joint_state_broadcaster
#24 258.0 cc1plus: error: '-Werror=range-loop-construct': no option '-Wrange-loop-construct'

So I added a switch depending on the gcc version to add this option or not. To make the options simpler to handle in the future, I propose to add a global cmake macro instead.

Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.26%. Comparing base (28845e6) to head (968d128).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1527      +/-   ##
==========================================
- Coverage   84.26%   84.26%   -0.01%     
==========================================
  Files         123      123              
  Lines       11358    11361       +3     
  Branches      961      963       +2     
==========================================
+ Hits         9571     9573       +2     
+ Misses       1471     1470       -1     
- Partials      316      318       +2     
Flag Coverage Δ
unittests 84.26% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 5 files with indirect coverage changes

@mathias-luedtke
Copy link
Contributor

@christophfroehlich: Careful, AFAIK bloom does not "bundle" files outside of the package folders.

@christophfroehlich
Copy link
Contributor Author

oh, thanks for the hint. This means that the packages won't be built on the build farm right?

@mathias-luedtke
Copy link
Contributor

oh, thanks for the hint. This means that the packages won't be built on the build farm right?

Yes.
Bloom creates tag like this:
https://github.com/ros2-gbp/ros2_controllers-release/tree/release/rolling/velocity_controllers/4.20.0-1

The common cmake would need to get packaged.
I am not sure, if it is worth the effort for a humble tier 3.

@christophfroehlich
Copy link
Contributor Author

it's not the tier 3 I'm concerned about, I have a personal interest due to one of my projects at work ;) but could solve it differently, sure thing.
and the cmake file was just an idea in making the settings global, independent of the actual issue.

@christophfroehlich christophfroehlich marked this pull request as draft February 5, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants