[MacPorts] #64577: advice on macports-gcc-10 errors on 10.5.8

MacPorts noreply at macports.org
Wed Feb 2 19:42:35 UTC 2022


#64577: advice on macports-gcc-10 errors on 10.5.8
---------------------------+-------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  request       |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  powerpc, Leopard, ppc64
      Port:  gcc10         |
---------------------------+-------------------------------------

Comment (by barracuda156):

 Ok, so it looks that `gcc` itself works, while `g++` and `gfortran` do
 not. (Weren't they supposed to be used to rebuild gcc itself on stage 2?
 How they can succeed there but fail otherwise?)

 {{{
 36-47:Dev svacchanda$ /opt/local/bin/g++-mp-10
 /Users/svacchanda/Dev/hw.cpp -o hello
 ld: library not found for -lgcc_s.1.1
 collect2: error: ld returned 1 exit status
 36-47:Dev svacchanda$ /opt/local/bin/gcc-mp-10
 /Users/svacchanda/Dev/hello.c -o hello
 36-47:Dev svacchanda$ /Users/svacchanda/Dev/hello
 Hello, World
 }}}

 I have just built mpich-gcc10, however only after disabling CXX and
 Fortran. Otherwise configure tests were failing.

 {{{
 36-47:~ svacchanda$ port -v installed mpich-gcc10
 The following ports are currently installed:
   mpich-gcc10 @3.4.2_0 (active) requested_variants='-universal'
 platform='darwin 9' archs='ppc' date='2022-02-03T03:40:23+0800'
 }}}

 What did I do wrong this time? Why `gcc` works, but not `g++` and
 `gfortran`?

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


More information about the macports-tickets mailing list