Opened 7 years ago

Closed 3 years ago

#55529 closed defect (fixed)

py-matplotlib @2.1.1_0 fails building on 10.5.8

Reported by: udbraumann Owned by: reneeotten (Renee Otten)
Priority: Normal Milestone:
Component: ports Version:
Keywords: powerpc Cc:
Port: py-matplotlib

Description

While upgrading py27-matplotlib from 2.1.0_2 to 2.1.1_0 building stopped here:

...
:info:build building 'matplotlib.backends._macosx' extension
:info:build /usr/bin/gcc-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -arch ppc -I/opt/local/include -I. -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/_macosx.m -o build/temp.macosx-10.5-ppc-2.7/src/_macosx.o
:info:build src/_macosx.m: In function ‘NavigationToolbar_get_active’:
:info:build src/_macosx.m:1313: error: ‘for’ loop initial declaration used outside C99 mode
:info:build error: command '/usr/bin/gcc-4.2' failed with exit status 1
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-matplotlib/py27-matplotlib/work/matplotlib-2.1.1" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build
:info:build Exit code: 1
...

Any ideas?

Attachments (1)

main.log.gz (7.9 KB) - added by udbraumann 7 years ago.

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by udbraumann

Attachment: main.log.gz added

comment:1 Changed 7 years ago by seanfarley (Sean Farley)

error: ‘for’ loop initial declaration used outside C99 mode

Is 10.5 even supported for matplotlib anymore?

comment:2 Changed 7 years ago by udbraumann

Why not? I think some compiler switch like -std=c99 should solve the issue.

comment:3 Changed 7 years ago by kencu (Ken)

Let us know if that works!

comment:4 Changed 7 years ago by seanfarley (Sean Farley)

If you can make a patch that works, I can try to get it committed. Unfortunately, I have no way to test this on 10.5 nor on a PPC.

comment:5 Changed 6 years ago by mf2k (Frank Schima)

Cc: sean@… removed
Owner: set to seanfarley
Status: newassigned

comment:6 Changed 6 years ago by mf2k (Frank Schima)

Owner: seanfarley deleted

comment:7 Changed 5 years ago by jmroot (Joshua Root)

Owner: set to reneeotten

comment:8 Changed 3 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

this ticket is regarding a rather old matploblib version... with this commit we do not build the macosx backend anymore on systems below 10.6 since the indeed cannot be compiled there.

Note: See TracTickets for help on using tickets.