-
Notifications
You must be signed in to change notification settings - Fork 20
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
Install GCC 10.4.0 #351
Install GCC 10.4.0 #351
Conversation
9c24bbf
to
ddcfd0e
Compare
👋 thanks for submitting the PR. Have you talked about this to other teams that maintain pieces of Agent code that get compiled by GCC? From top of my head, this would be agent-metrics-logs (rtloader) and agent-integrations (some Python integrations have C extensions that would get compiled by GCC). It would be good to try to standardize on one GCC version instead of adding more, if possible. I'm also wondering whether it's practical to put the new GCC version under |
ddcfd0e
to
3801a23
Compare
Thanks for your review.
We have not talked to the other teams yet. Our goal was to introduce a recent GCC version in the build image, which is required to build some external dependencies (for example, libraries written in C++11). Then, the other teams will be able to use this recent GCC version. Currently, the build of the Agent is relying on heterogeneous GCC toolchains provided as part of the various Linux distribution we support (RHEL, Ubuntu and SUSE). I think the ultimate goal is that everyone use a single, common, recent GCC toolchain we build ourself, instead of relying on the heterogeneity of the various Linux distribution.
The It would be possible, for example, to export something like What do you think? |
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.
Hi 👋 the PR mostly LGTM, but I left couple notes and comments inline to get addressed.
1546067
to
7429a6a
Compare
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.
The change LGTM, so I'm approving.
The two points that I'll leave up to you folks to address going forward are:
- The rpm-armhf addition of this gcc version when you figure out how to fix the compilation problem there.
- Talking to other Agent teams to consolidate on this new gcc version and stop using the old ones.
7429a6a
to
c97a131
Compare
rebased on 48c12a1 |
c97a131
to
af0e7c3
Compare
I split the addition of flex on the images where it was missing to a different commit. |
This change installs GCC 10.4.0 on the following build images: - deb-arm - deb-x64 - rpm-arm64 - rpm-x64 - suse-x64 We chose to provide our own GCC version, because the GCC versions available as part of CentOS 6, openSUSE 42.1 and Ubuntu 14.04 weren't recent enough to build OpenSCAP and some of its dependencies. We chose GCC 10.4.0, because it was the most recent version that could be built using the GCC versions available on our distributions. GCC 11 and upper include libcody, which is written in C++11 and requires a more recent GCC version to be built. This change is the result of a collaborative work between Sylvain Baubeau, Pierre Guilleminot and David du Colombier. Co-authored-by: Sylvain Baubeau <[email protected]> Co-authored-by: Pierre Guilleminot <[email protected]>
af0e7c3
to
123ae5e
Compare
Moved the addition of flex to a separate PR (#371). |
This change installs GCC 10.4.0 on the following build images:
We chose to provide our own GCC version, because the GCC versions available as part of CentOS 6, openSUSE 42.1 and Ubuntu 14.04 weren't recent enough to build OpenSCAP and some of its dependencies.
We chose GCC 10.4.0, because it was the most recent version that could be built using the GCC versions available on our distributions. GCC 11 and upper include libcody, which is written in C++11 and requires a more recent GCC version to be built.
This change is the result of a collaborative work between Sylvain Baubeau, Pierre Guilleminot and David du Colombier.