[MacPorts] #60711: py38-numpy @1.19.0 does not build on PPC Tiger, Mac OS X 10.4.11, because error: #pragma GCC diagnostic not allowed inside functions?

MacPorts noreply at macports.org
Fri Jun 26 13:55:53 UTC 2020


#60711: py38-numpy @1.19.0 does not build on PPC Tiger, Mac OS X 10.4.11, because
error: #pragma GCC diagnostic not allowed inside functions?
------------------------+-----------------------
  Reporter:  ballapete  |      Owner:  michaelld
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.2
Resolution:             |   Keywords:  tiger
      Port:  py-numpy   |
------------------------+-----------------------

Comment (by michaelld):

 Would anybody care if I just specify c++11 compliant compilers (C and C++)
 for NumPy & SciPy? That will take care of this issue and probably some
 others. I'm testing this right now ... adding in the following ... for now
 just for PPC:
 {{{
 # on PPC, do not use apple GCC; just specify C++11 since that will work
 if {${build_arch} eq "ppc" || ${build_arch} eq "ppc64"} {
     compiler.cxx_standard 2011
     compiler.c_standard 2011
 }
 }}}
 I'm not sure if I need both C and C++ ... will review the build log once
 it's done.

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


More information about the macports-tickets mailing list