[MacPorts] #59706: libgcc7 @7.5.0 does not bild on PPC Mac OS X 10.5.8, Leopard, because of internal compiler error

MacPorts noreply at macports.org
Sat Dec 14 21:01:41 UTC 2019


#59706: libgcc7 @7.5.0 does not bild on PPC Mac OS X 10.5.8, Leopard, because of
internal compiler error
------------------------+---------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:  fixed      |   Keywords:  leopard
      Port:  libgcc7    |
------------------------+---------------------

Comment (by kencu):

 This issue is a classic c++ standard lib mixup, exactly what we have
 always feared and tried our best to avoid on MacPorts.

 Objects are being created using `/usr/lib/libstdc++.dylib` and then (in
 this case) attempt to be deleted by `/opt/local/lib/libstdc++.dylib` and
 they are not matching up, so errors are happening.

 We've discussed this exact situation for years, but until now, it has not
 happened.

 Solutions are tricky. Upstream is trying to see if they can tweak libgcc7
 7.5.0 to not error out, like libgcc7 7.4.x did not error out. Maybe that
 might work. Dunno.

 We can set the DYLD_LIBRARY_PATH to point to `/opt/local/lib/libgcc/` and
 so software will look there first. That should work -- haven't tried it
 yet though.

 You can set up a `chroot` environment, and run your software there -- good
 luck -- if you know how to do that, you're probably not trying to run
 libgcc7 on a 15 year old PowerMac.

 Or -- get ready for it -- we can update the libgcc in `/usr/lib` to a
 current one, like the one from `libgcc7` with some kind of installer that
 we supply (and maintain, and and and). I can hear the groans now.

 We could, perhaps, get libc++ working on PowerMac, and use that -- it
 would, naturally, have no such interaction with `/usr/lib/libstdc++.dylib`
 and therefore problem solved.

 So -- working on it. For now, libgcc7 7.4.x is magically immune, it
 appears, at least so far as we know, for now.

-- 
Ticket URL: <https://trac.macports.org/ticket/59706#comment:38>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list