[MacPorts] #54215: gcc7: broken on powerpc
MacPorts
noreply at macports.org
Wed Sep 6 16:59:07 UTC 2017
#54215: gcc7: broken on powerpc
---------------------+----------------------
Reporter: mojca | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: haspatch
Port: gcc7 |
---------------------+----------------------
Comment (by ccorn):
Both {{{gcc7}}} and its subport {{{libgcc}}} get built successfully with
the mentioned [https://gcc.gnu.org/bugzilla/attachment.cgi?id=42124 patch-
darwin-ppc-2017-01-msg02971.diff]
which comprises Iain Sandoe's Darwin/PPC patches.
A tiny bit of ad-hoc testing reveals no more than the ages-old problem (at
least on my apple-darwin9-powerpc G5) that C++ programs indirectly linked
to both GCC's and the native C++ runtime libs tend to crash on exit. E.g.
{{{octave-gui}}}. That can be avoided by using {{{-static-libgcc}}} when
linking. There used to be an ancient patchfile for the GCC ports forcing
that, but it was controversial and removed from the GCC 4.7+ ports if I
recall correctly. I have kept the patch in a private git branch of the
ports tree and applied it without problems ever since.
(If you folks have no such problems, I'd like to hear about that.)
I have now applied that force-static-libgcc patch to the GCC7 port. Both
{{{libgcc}}} and {{{gcc7}}} still build fine; and {{{octave-gui}}} does
not crash on exit any longer.
Furthermore, my handful of C++11 feature tests works.
The {{{boost}}} port (privately patched to allow GCC) also builds fine,
and my few tests with {{{Boost.Threads}}} work. Superficially, things look
nice.
--
Ticket URL: <https://trac.macports.org/ticket/54215#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list