Compilation bug for openmp project and AMDGPU target
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Didn't realize we were using string stream. Probably don't want to, but thanks for the fix in the meantime
Hi @JonChesterfield, yes go ahead. I am curious as to why clang-tidy reported gelf.h not found. It is just part of the libelf. I assume this diagnostic error has shown up before and has been ignored?
Apologies, this change landed as part of D104923 on June 30.
Re: clang-tidy, it doesn't run in the same environment as compilation. This is particularly noticeable for the device runtime, where clang-tidy warns about a lot of unrecognised intrinsics because it makes a wrong assumption about the target architecture. gelf.h may be a problem in practice when this builds by default, though it's also used by generic-elf-64bit so hopefully not. I'm not sure offhand what we're using from gelf.h.
clang-tidy: error: 'gelf.h' file not found [clang-diagnostic-error]
not useful