[MacPorts] #59832: cmake 3.16.0: does not build on PPC Mac OS X 10.5.8, "Bus Error"

MacPorts noreply at macports.org
Mon Mar 9 20:03:22 UTC 2020


#59832: cmake 3.16.0: does not build on PPC Mac OS X 10.5.8, "Bus Error"
--------------------------+-----------------------
  Reporter:  timishimuni  |      Owner:  michaelld
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.2
Resolution:               |   Keywords:  leopard
      Port:  cmake        |
--------------------------+-----------------------

Comment (by kencu):

 something like this is the fix we need (untested as yet)
 <https://github.com/kencu/macports-
 ports/commit/34b21f883477e43fd03134e76dafb19e2f27547c>

 {{{
 From 34b21f883477e43fd03134e76dafb19e2f27547c Mon Sep 17 00:00:00 2001
 From: Ken Cunningham <kencu at macports.org>
 Date: Mon, 9 Mar 2020 12:59:30 -0700
 Subject: [PATCH] gcc7/libgcc7: roll back to 7.4.0 on older systems

 there is a c++ standard library conflict occurring
 with libgcc 7.5.0 at present. This has been looked into
 upstream, but to date (three months) there is no
 solution available.

 libgcc7 will need to stay pegged at 7.4.0 until this is
 addressed upstream.
 ---
  lang/gcc7/Portfile | 20 ++++++++++++++++++--
  1 file changed, 18 insertions(+), 2 deletions(-)

 diff --git a/lang/gcc7/Portfile b/lang/gcc7/Portfile
 index ccd3d3cf2be..cf5df63984d 100644
 --- a/lang/gcc7/Portfile
 +++ b/lang/gcc7/Portfile
 @@ -30,13 +30,29 @@ master_sites
 ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/re
                      ftp://gcc.gnu.org/pub/gcc/releases/gcc-${version}/ \
                      gnu:gcc/gcc-${version}

 -distname            gcc-${version}
 -use_xz              yes

  checksums           rmd160  91d46ec088badec75f41a2ad2a0ba228a6715107 \
                      sha256
 b81946e7f01f90528a1f7352ab08cc602b9ccc05d4e44da4bd501c5a189ee661 \
                      size    62783088

 +if { ${os.platform} eq "darwin" && ${os.major} < 10 } {
 +
 +    # roll gcc7 back to version 7.4.0 as 7.5.0 does not play nicely with
 +    # the system /usr/lib/libstdc++.dylib at present. This is being
 looked at upstream.
 +    # we bump the epoch to roll back, but will also bump the revisions to
 4 to avoid confusion
 +
 +    epoch           4
 +    version         7.4.0
 +    revision        4
 +    subport libgcc7 {revision 4}
 +    checksums       rmd160  77d3cdafe7df748fa484a300e9513acb3ee2c2e1 \
 +                    sha256
 eddde28d04f334aec1604456e536416549e9b1aa137fc69204e65eb0c009fe51 \
 +                    size    62601888
 +}
 +
 +distname            gcc-${version}
 +use_xz              yes
 +
  # Check if this is the last supported gcc version for this system.
  # If it is, libgcc7 installs a full runtime, otherwise it only installs
  # what is missing from newer libgccX builds.
 }}}

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


More information about the macports-tickets mailing list