Bug 1781685
| Summary: | gdc: Cannot compile D source if ldc-druntime-devel is installed | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Borax Man <rotflol2> |
| Component: | ldc | Assignee: | Kalev Lember <klember> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 31 | CC: | animuspexus, aoliva, avi.kivity, bioinfornatics, dmalcolm, fweimer, ibuclaw, i, jakub, jwakely, klember, law, mpolacek, msebor, nickc |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ldc-1.23.0-1.fc33 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-08-21 14:17:22 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
Borax Man
2019-12-10 11:46:09 UTC
If you read the forum, you'll see that it is a ldc bug, not gcc. More specifically, the environment variable required to set up a proper location to install modules. https://salsa.debian.org/d-team/ldc/-/blob/debian/master/debian/rules#L11 An extra patch is required to re-add /usr/include/d back into the search paths. https://salsa.debian.org/d-team/ldc/-/blob/d3a8be556a8a5fcabc8bd98e5ff561b2185c4057/debian/patches/02_ldc_include_path.diff I just spent some time looking into this and I think I got this issue resolved in ldc-1.23.0-1.fc33 The idea is that gdc installs its internal D runtime headers into a private directory under /usr/lib/gdc, and ldc installs its private headers into /usr/lib/ldc, and then /usr/include/d contains only shared library headers that both compilers can use. Does this sounds about right? https://src.fedoraproject.org/rpms/ldc/c/4150b474999ba50f6708603f4c0d8602d5bd9808 |