[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
Wed Nov 27 01:52:54 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:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:             |   Keywords:  leopard
      Port:  libgcc7    |
------------------------+---------------------

Comment (by kencu):

 so the suggestion from upstream was to try a non-MacPorts gcc7 build and
 see how that works. It's still building, but it looks like it will finish
 on 10.5 PPC. So it's going to be something in the MacPorts setup that is
 making the gcc build fail, it appears.

 If you want to build gcc7 yourself and help get this sorted out, you can
 do this:

 In a writeable folder, like /tmp, make a dir. I used /tmp/gcc7build. Then
 obtain and decompress the following in that folder:
 {{{
 gcc-7.5.0               gmp-6.1.2               isl-0.21
 mpc-1.1.0               mpfr-4.0.2
 gcc-7.5.0.tar.xz        gmp-6.1.2.tar.bz2       isl-0.21.tar.bz2
 mpc-1.1.0.tar.gz        mpfr-4.0.2.tar.xz
 }}}
 then move into the gcc-7.5.0 folder, and symlink the parts in.
 {{{
 cd gcc-7.5.0
 ln -s ../gmp-6.1.2 gmp
 ln -s ../isl-0.21 isl
 ln -s ../mpc-1.1.0 mpc
 ln -s ../mpfr-4.0.2 mpfr
 }}}
 and then build away, with a command something like this (gcc-dev
 recommended, but this does not match what we are doing on MacPorts exactly
 right now)
 {{{
 CC=/usr/bin/gcc-4.2 CXX=/usr/bin/g++-4.2
 /tmp/gcc7build/gcc-7.5.0/configure --prefix=/opt/ken/powerpc-apple-
 darwin9/gcc-7-5a --target=powerpc-apple-darwin9 --host=powerpc-apple-
 darwin9 --build=powerpc-apple-darwin9 --disable-nls --enable-version-
 specific-runtime-libs --enable-languages=all,obj-c++

 make -j 2
 }}}
 and then go for a long long long walk.

 BTW, I think it's about time we made a fully cross-compiling gcc7 that can
 build +universal again, but that's another topic...

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


More information about the macports-tickets mailing list