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

Compile errors occur when using gcc 14 #2591

Closed
kpvdr opened this issue Mar 14, 2024 · 5 comments
Closed

Compile errors occur when using gcc 14 #2591

kpvdr opened this issue Mar 14, 2024 · 5 comments
Assignees
Labels
bug Something isn't working triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@kpvdr
Copy link

kpvdr commented Mar 14, 2024

When building opentelemetry-cpp 1.14.2 for Fedora using gcc-c++ 14.0.1 (which is the default for upcoming Fedora 40 and rawhide), compile errors occur. Builds for the current Fedora 38 and 39 which use gcc-c++ 13.2.1 succeed.

The errors appear to concern templates and their argument lists. The builds may be seen on Copr[1] with the build logs and environments. All the failed builds are using gcc 14.0.1. When I built 1.13.0 a few months back, Fedora 40 and rawhide were still using gcc 1.13.2, and they were successful. All the build failures for Fedora 40 and rawhide appear to be identical.

Because Copr deletes the build logs for failed builds after a few days, I have attached the log for the x86_64 rawhide build.
builder-live.log.gz

[1] https://copr.fedorainfracloud.org/coprs/kpvdr/opentelemetry-cpp/build/7153160/

@kpvdr kpvdr added the bug Something isn't working label Mar 14, 2024
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Mar 14, 2024
@owent
Copy link
Member

owent commented Mar 16, 2024

GCC 14 is not released yet. I will test and fix all the compatibility problem after GCC 14 is released.

@marcalff marcalff added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Mar 26, 2024
@kpvdr
Copy link
Author

kpvdr commented May 1, 2024

It appears that 14 is not yet officially released on gnu.org. However, Fedora 40 has been released and uses gcc 14.0.1.

@kpvdr
Copy link
Author

kpvdr commented May 8, 2024

gcc 14.1 was relesaed on May 7. (https://gcc.gnu.org/gcc-14)

@owent
Copy link
Member

owent commented May 9, 2024

Thanks, I will test it several days later.

@marcalff marcalff self-assigned this May 16, 2024
@marcalff
Copy link
Member

Can not reproduce.

The opentelemetry-cpp CI was upgraded to use gcc-14, and it passes without code changes:

Please reopen with details if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

3 participants