[MacPorts] #35770: gcc ports should not include a C++ runtime
MacPorts
noreply at macports.org
Tue Sep 11 14:04:58 PDT 2012
#35770: gcc ports should not include a C++ runtime
--------------------------------------------------+------------------------
Reporter: jeremyhu@… | Owner: jeremyhu@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: fixed | Keywords: libstdc++
Port: gcc43 gcc44 gcc45 gcc46 gcc47 gcc48 |
--------------------------------------------------+------------------------
Changes (by jeremyhu@…):
* status: reopened => closed
* resolution: => fixed
Comment:
Replying to [comment:19 help@…]:
> You misunderstood me, I didn't say gcc46 failed to build, I said
building _with_ it is broken.
>
> This is not a separate bug, as I said just removing dylib isn't enough,
you have to make sure that compiler uses C++ headers that actually match
the library version you want it to link against.
I understand where you're coming from since that is very much where *I*
was coming from when I brought this to the engineers here at Apple who
work on the C++ runtime.
I was told that most of the C++ API is actually implemented as templates
in the headers, so even newer versions of the C++ headers should work with
the older runtimes. This seemed suspicious to me, but it was what I went
with.
Based on your comment, it seems that libstdc++ seems to have changed in an
incompatible way which makes that not necessarilary the case. If you
really want libstdc++ over libc++ as your runtime, you will need to
provide a new port to provide a single libstdc++ runtime rather than one
per compiler. Furthermore, this runtime will need to be compatible with
the host's runtime which means it will need to use libc++abi.dylib. You
will need to look at the changes that Apple made to libstdc++.dylib in
Lion and Mountain Lion and merge those changes into GCC.
As GCC is GPL-3, I will not be doing any of that work.
*This* issue is closed. Please open a new one if you wish to do the work
of creating a libstdc++ port.
--
Ticket URL: <https://trac.macports.org/ticket/35770#comment:23>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list