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

Clang cannot find C++ header files on 24.04 #11229

Open
2 of 16 tasks
K20shores opened this issue Dec 19, 2024 · 3 comments
Open
2 of 16 tasks

Clang cannot find C++ header files on 24.04 #11229

K20shores opened this issue Dec 19, 2024 · 3 comments

Comments

@K20shores
Copy link

K20shores commented Dec 19, 2024

Description

Following the update of ubuntu-latest updating to Ubuntu 24.04, Ubuntu workflows with clang started failing to build. It seems that Clang cannot find the header files for much of the C++ standard library.

Anything failing on 20.04 is a non issue because we weren't really targeting that. However, clang on 24.04 does not seem to find the C++ header files.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

I put together an action which builds our software with gcc/clang in debug/release on 20.04, 22.04, 24.04, and latest so I can see where we are failing. The action.

Is it regression?

Yes

Expected behavior

Clang finds c++ header files

Actual behavior

Clang doesn't find c++ header files

Repro steps

Create a project which uses C++ on Ubuntu 24.04 and try to compile it with clang

@vidyasagarnimmagaddi
Copy link
Contributor

Hi @K20shores , Thank you for bringing this issue to our attention. We are looking into this issue and will update you on this issue after investigating.

@subir0071
Copy link
Contributor

Hi @K20shores - As per reproduction steps we created a minimal CPP project and executed the workflow , but the workflow passed as expected.

Let us know if missing something.

@K20shores
Copy link
Author

@subir0071 Your action uses the GCC compiler. Please use the clang compiler. I updated my reproduction steps to represent this. Sorry for the confusion. I see this issue with the clang compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants