[MacPorts] #61757: py38-matplotlib @3.3.3 does not build on PPC Leopard, Mac OS X 10.5.8, because of "cc1obj: error: -Werror=unguarded-availability: No option -Wunguarded-availability"

MacPorts noreply at macports.org
Sun Dec 6 10:45:01 UTC 2020


#61757: py38-matplotlib @3.3.3 does not build on PPC Leopard, Mac OS X 10.5.8,
because of "cc1obj: error: -Werror=unguarded-availability: No option
-Wunguarded-availability"
------------------------------+---------------------
  Reporter:  ballapete        |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.6.4
Resolution:                   |   Keywords:  leopard
      Port:  py38-matplotlib  |
------------------------------+---------------------

Comment (by ballapete):

 A new failure comes up that might not be resolvable on elder systems:

 {{{
 /usr/bin/g++-4.2 -bundle -undefined dynamic_lookup -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch ppc -arch ppc -isysroot/
 build/temp.macosx-10.5-ppc-3.8/src/_ttconv.o
 build/temp.macosx-10.5-ppc-3.8/extern/ttconv/pprdrv_tt.o
 build/temp.macosx-10.5-ppc-3.8/extern/ttconv/pprdrv_tt2.o
 build/temp.macosx-10.5-ppc-3.8/extern/ttconv/ttutil.o -o
 build/lib.macosx-10.5-ppc-3.8/matplotlib/_ttconv.cpython-38-darwin.so
 building 'matplotlib.backends._macosx' extension
 /usr/bin/gcc-4.2 -fno-strict-aliasing -Wsign-compare -fno-common -dynamic
 -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -arch ppc -isysroot/
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -c src/_macosx.m -o build/temp.macosx-10.5-ppc-3.8/src/_macosx.o
 -fvisibility=hidden
 src/_macosx.m:202: error: cannot find protocol declaration for
 ‘NSWindowDelegate’
 src/_macosx.m: In function ‘lazy_init’:
 src/_macosx.m:272: error: ‘NSApplicationActivationPolicyRegular’
 undeclared (first use in this function)
 src/_macosx.m:272: error: (Each undeclared identifier is reported only
 once
 src/_macosx.m:272: error: for each function it appears in.)
 src/_macosx.m:272: warning: no ‘-setActivationPolicy:’ method found
 src/_macosx.m:272: warning: (Messages without a matching method signature
 src/_macosx.m:272: warning: will be assumed to return ‘id’ and accept
 src/_macosx.m:272: warning: ‘...’ as arguments.)
 src/_macosx.m: In function ‘choose_save_file’:
 src/_macosx.m:1345: warning: ‘NSSavePanel’ may not respond to
 ‘-setNameFieldStringValue:’
 error: command '/usr/bin/gcc-4.2' failed with exit status 1
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 matplotlib/py38-matplotlib/work/matplotlib-3.3.3" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
 setup.py --no-user-cfg build
 Exit code: 1
 Error: Failed to build py38-matplotlib: command execution failed
 }}}

 It might be useful to offer `py3?-nltk` with and without dependencies… (at
 least for elder systems)

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


More information about the macports-tickets mailing list