Bug 2005620
| Summary: | libclang's clang_parseTranslationUnit() system include path seems to be wrong | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Cristian Morales Vega <christian.morales.vega> |
| Component: | clang | Assignee: | Tom Stellard <tstellar> |
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 34 | CC: | airlied, sbergman, sguelton, siddharth.kde, tstellar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-06-08 06:28:55 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Cristian Morales Vega
2021-09-18 18:08:32 UTC
To make it simpler, changing file.cpp for file.c, strace does this ------------- $ strace -f ./test 2>&1 | grep stddef [pid 26615] openat(AT_FDCWD, "/usr/local/include/stddef.h", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [pid 26615] openat(AT_FDCWD, "/usr/include/stddef.h", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [pid 26615] openat(AT_FDCWD, "/usr/include/sys/stddef.h", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) write(1, "/usr/include/stdlib.h:31:10: fat"..., 68/usr/include/stdlib.h:31:10: fatal error: 'stddef.h' file not found ------------- And this is what happens in Ubuntu 21.04 ------------- root@012e96942e1c:/# strace -f ./la 2>&1 | grep stddef [pid 4146] openat(AT_FDCWD, "/usr/local/include/stddef.h", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) [pid 4146] openat(AT_FDCWD, "lib/clang/12.0.0/include/stddef.h", O_RDONLY|O_CLOEXEC) = 3 [pid 4146] pread64(3, "/*===---- stddef.h - Basic type "..., 3589, 0) = 3589 ------------- Adding "-DCLANG_RESOURCE_DIR=%{pkg_libdir}/clang/%{version}" to the cmake invocation would seem to fix this issue (it's only using clang headers, not sure if it's supposed to be able to use the gcc ones), but that makes the RPM %check step fail.
This message is a reminder that Fedora Linux 34 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '34'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 34 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07. Fedora Linux 34 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. Thank you for reporting this bug and we are sorry it could not be fixed. |