public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/105719] New: RFE: fixincludes should handle Frameworks
@ 2022-05-24 14:41 egallager at gcc dot gnu.org
2022-05-24 14:42 ` [Bug target/105719] " egallager at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-05-24 14:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105719
Bug ID: 105719
Summary: RFE: fixincludes should handle Frameworks
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: egallager at gcc dot gnu.org
CC: bkorb at gnu dot org
Target Milestone: ---
Target: *-*-darwin
This is split off from bug 93082. Basically, if there is a header that needs to
be fixincluded in /Systems/Library/Frameworks or /Library/Frameworks or
${SDKROOT}/Library/Frameworks, fixincludes currently won't find it. This should
be fixed by adding another include tree (or trees) for fixincludes to search.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/105719] RFE: fixincludes should handle Frameworks
2022-05-24 14:41 [Bug target/105719] New: RFE: fixincludes should handle Frameworks egallager at gcc dot gnu.org
@ 2022-05-24 14:42 ` egallager at gcc dot gnu.org
2022-05-24 14:49 ` egallager at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-05-24 14:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105719
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2022-05-24
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |egallager at gcc dot gnu.org
--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/105719] RFE: fixincludes should handle Frameworks
2022-05-24 14:41 [Bug target/105719] New: RFE: fixincludes should handle Frameworks egallager at gcc dot gnu.org
2022-05-24 14:42 ` [Bug target/105719] " egallager at gcc dot gnu.org
@ 2022-05-24 14:49 ` egallager at gcc dot gnu.org
2022-05-24 19:21 ` iains at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-05-24 14:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105719
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=37036
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Related: bug 37036
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/105719] RFE: fixincludes should handle Frameworks
2022-05-24 14:41 [Bug target/105719] New: RFE: fixincludes should handle Frameworks egallager at gcc dot gnu.org
2022-05-24 14:42 ` [Bug target/105719] " egallager at gcc dot gnu.org
2022-05-24 14:49 ` egallager at gcc dot gnu.org
@ 2022-05-24 19:21 ` iains at gcc dot gnu.org
2023-05-14 19:43 ` iains at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: iains at gcc dot gnu.org @ 2022-05-24 19:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105719
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |iains at gcc dot gnu.org
--- Comment #3 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #0)
> This is split off from bug 93082. Basically, if there is a header that needs
> to be fixincluded in /Systems/Library/Frameworks or /Library/Frameworks or
> ${SDKROOT}/Library/Frameworks, fixincludes currently won't find it. This
> should be fixed by adding another include tree (or trees) for fixincludes to
> search.
the way that header search works, you probably want to keep the sysroot (a.k.a
SDKROOT) distinct (you might want to look in gcc/config/darwin-c.cc for how the
eventual search paths are constructed, just for background).
Solving 37036 would also allow us to have multiple SDKs - which would be nice
since we can, in principle, target any version of Darwin with the same compiler
- the limitation preventing that is that the fixed includes (and SDK includes
used in some libraries) do not work over more than a few OS revisions ..
forcing us to need cross compilers for other OS versions in a rather artificial
way. If we could implement the OS version as a multilib we could avoid that
and just have one compiler to target any version (or the same arch, of course).
[dreams of things we might do if time were available]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/105719] RFE: fixincludes should handle Frameworks
2022-05-24 14:41 [Bug target/105719] New: RFE: fixincludes should handle Frameworks egallager at gcc dot gnu.org
` (2 preceding siblings ...)
2022-05-24 19:21 ` iains at gcc dot gnu.org
@ 2023-05-14 19:43 ` iains at gcc dot gnu.org
2023-05-15 18:10 ` bkorb at gnu dot org
2023-05-18 10:24 ` egallager at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: iains at gcc dot gnu.org @ 2023-05-14 19:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105719
--- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> ---
Created attachment 55084
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55084&action=edit
Implement the use of fixed framework headers
this was a proof-of-principle exercise while looking into issues caused by
implementing __has_feature () [PR60512].
This does not have any of the mechanism to *create* or *install* the fixed
headers (for my testing I just built a
CoreFoundation.framework/Headers/CFBase.h and edited bye hand to fix the
problems found).
So, still plenty to do ;)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/105719] RFE: fixincludes should handle Frameworks
2022-05-24 14:41 [Bug target/105719] New: RFE: fixincludes should handle Frameworks egallager at gcc dot gnu.org
` (3 preceding siblings ...)
2023-05-14 19:43 ` iains at gcc dot gnu.org
@ 2023-05-15 18:10 ` bkorb at gnu dot org
2023-05-18 10:24 ` egallager at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: bkorb at gnu dot org @ 2023-05-15 18:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105719
--- Comment #5 from Bruce Korb <bkorb at gnu dot org> ---
It's been a long time since I mucked with fixincludes. My first guess, without
going back and reading code, would be to provide fixincludes with a list of
trees to traverse and not have it burned into fixincludes at all. That might
even be helpful for cross compiles also. :)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/105719] RFE: fixincludes should handle Frameworks
2022-05-24 14:41 [Bug target/105719] New: RFE: fixincludes should handle Frameworks egallager at gcc dot gnu.org
` (4 preceding siblings ...)
2023-05-15 18:10 ` bkorb at gnu dot org
@ 2023-05-18 10:24 ` egallager at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: egallager at gcc dot gnu.org @ 2023-05-18 10:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105719
--- Comment #6 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Iain Sandoe from comment #4)
> Created attachment 55084 [details]
> Implement the use of fixed framework headers
>
> this was a proof-of-principle exercise while looking into issues caused by
> implementing __has_feature () [PR60512].
>
> This does not have any of the mechanism to *create* or *install* the fixed
> headers (for my testing I just built a
> CoreFoundation.framework/Headers/CFBase.h and edited bye hand to fix the
> problems found).
>
> So, still plenty to do ;)
Remind me to test this patch later; I've kind of forgotten where I was with
this... distracted with other stuff... (maybe I should unassign it from
myself?)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-05-18 10:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 14:41 [Bug target/105719] New: RFE: fixincludes should handle Frameworks egallager at gcc dot gnu.org
2022-05-24 14:42 ` [Bug target/105719] " egallager at gcc dot gnu.org
2022-05-24 14:49 ` egallager at gcc dot gnu.org
2022-05-24 19:21 ` iains at gcc dot gnu.org
2023-05-14 19:43 ` iains at gcc dot gnu.org
2023-05-15 18:10 ` bkorb at gnu dot org
2023-05-18 10:24 ` egallager at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).