Opened 18 months ago
Last modified 18 months ago
#67491 new defect
py-matplotlib fails to build with gcc: cc1obj: error: '-Werror=unguarded-availability': no option '-Wunguarded-availability'
Reported by: | barracuda156 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | ||
Port: | py-matplotlib |
Description
building 'matplotlib.backends._macosx' extension creating build/temp.macosx-10.6-ppc-cpython-311/matplotlib.backends._macosx creating build/temp.macosx-10.6-ppc-cpython-311/matplotlib.backends._macosx/src /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-matplotlib/py311-matplotlib/work/compwrap/cc/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/_macosx.m -o build/temp.macosx-10.6-ppc-cpython-311/matplotlib.backends._macosx/src/_macosx.o -Werror=unguarded-availability -arch ppc -isysroot/ -fvisibility=hidden cc1obj: error: -Werror=unguarded-availability: No option -Wunguarded-availability error: command '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-matplotlib/py311-matplotlib/work/compwrap/cc/usr/bin/gcc-4.2' failed with exit code 1
Both gcc-4.2 and gcc12 fail likewise.
Note: See
TracTickets for help on using
tickets.
The code is hopelessly broken.
That macOS extension, FWIW, should be just disabled when built with GCC.