[MacPorts] #56511: gcc49 @4.9.4_2: build fails with Xcode 9 on macOS 10.12

MacPorts noreply at macports.org
Fri Dec 7 16:58:07 UTC 2018


#56511: gcc49 @4.9.4_2: build fails with Xcode 9 on macOS 10.12
-----------------------+--------------------
  Reporter:  mopihopi  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  gcc49     |
-----------------------+--------------------

Comment (by kencu):

 I backported fixes to build gcc49 and gcc48 with Xcode 9, but there were a
 significantly increased number of errors particularly in the c++ test
 suite that would have possibly been an issue. Some of that work is in this
 ticket [ticket:56996].

 As there really seems to be no reason to use any gcc before gcc5 any more,
 especially on these newer OS versions, nobody had any enthusiasm for
 digging in on these test suite build failures, and I don't think anyone
 ever will.

 Don't paste up your huge log -- we've seen it before.

 I think you should try to get gcc49 out of your system. The issue seems to
 be your atlas installation, that was configured with a gcc49 variant at
 some point in the past. I have mine built against clang37, but by default
 it builds against gcc5. gcc5 builds OK on newer systems:
 {{{
 $ port -v installed atlas
 The following ports are currently installed:
   atlas @3.10.2_2+mpclang37-gcc5 (active) platform='darwin 10'
 archs='x86_64' date='2016-09-29T06:14:45-0700'

 }}}

 So... you would do something like
 {{{
 sudo port uninstall gcc49
 sudo port uninstall atlas
 }}}
 and when it tells you things will break, just say OK. Then once that is
 done, you should just be able to install the default atlas to get the gcc5
 version:
 {{{
 $ port variants atlas
 atlas has the variants:
    gcc49: build using macports-gcc-4.9
      * conflicts with gcc5 mpclang37 perf
 [+]gcc5: build using macports-gcc-5
      * conflicts with gcc49 mpclang37 perf
    mpclang37: use mp-clang-3.7 and gfortran
      * conflicts with gcc49 gcc5 perf
    nofortran: Forgo use of fortran compiler
    universal: Build for multiple architectures
 }}}
 {{{
 sudo port -v install atlas
 }}}

 please let me know if that doesn't work out for you.

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


More information about the macports-tickets mailing list