Opened 12 years ago

Closed 12 years ago

#37069 closed defect (fixed)

py27-matplotlib @1.2.0 Install error - build failure

Reported by: juanaus@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: leopard Cc: petrrr
Port: py27-matplotlib

Description

I have been trying to install the port py27-matplotlib @1.2.0 but the installation failed on a a mac os x 10.5.8 + Xcode 3.1 The following is the content of the main.log relevant to the error.

:info:build ============================================================================
:info:build BUILDING MATPLOTLIB
:info:build             matplotlib: 1.2.0
:info:build                 python: 2.7.3 (default, Oct 23 2012, 20:26:23)  [GCC 4.0.1
:info:build                         (Apple Inc. build 5493)]
:info:build               platform: darwin
:info:build 
:info:build REQUIRED DEPENDENCIES
:info:build                  numpy: 1.6.2
:info:build              freetype2: 15.0.9
:info:build 
:info:build OPTIONAL BACKEND DEPENDENCIES
:info:build                 libpng: 1.5.13
:info:build                Tkinter: Tkinter: 81008, Tk: 8.5, Tcl: 8.5
:info:build                   Gtk+: gtk+: 2.24.13, glib: 2.34.2, pygtk: 2.22.0,
:info:build                         pygobject: 2.26.0
:info:build        Mac OS X native: yes
:info:build                     Qt: no
:info:build                    Qt4: no
:info:build                 PySide: no
:info:build                  Cairo: no
:info:build 
:info:build OPTIONAL DATE/TIMEZONE DEPENDENCIES
:info:build               dateutil: 1.5
:info:build                   pytz: 2012h
:info:build 
:info:build OPTIONAL USETEX DEPENDENCIES
:info:build                 dvipng: no
:info:build            ghostscript: no
:info:build                  latex: no
:info:build                pdftops: 0.20.5
:info:build 
:info:build [Edit setup.cfg to suppress the above messages]
:info:build ============================================================================
:info:build pymods ['pylab']
:info:build packages ['matplotlib', 'matplotlib.backends', 'matplotlib.backends.qt4_editor', 'matplotlib.projections', 'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri', 'matplotlib.delaunay']
:info:build running build
:info:build running build_py
:info:build copying lib/matplotlib/mpl-data/matplotlibrc -> build/lib.macosx-10.5-i386-2.7/matplotlib/mpl-data
:info:build running build_ext
:info:build building 'matplotlib._image' extension
:info:build /usr/bin/gcc-4.0 -DNDEBUG -g -fwrapv -O3 -Wall -arch i386 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/opt/local/include -I/opt/local/include/python/opt/local -I. -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -Isrc -Iagg24/include -I. -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/image.cpp -o build/temp.macosx-10.5-i386-2.7/src/image.o
:info:build src/image.cpp: In member function ‘Py::Object Image::resize(const Py::Tuple&, const Py::Dict&)’:
:info:build src/image.cpp:443: warning: comparison between signed and unsigned integer expressions
:info:build src/image.cpp:443: warning: comparison between signed and unsigned integer expressions
:info:build agg24/include/agg_rasterizer_scanline_aa.h:190: warning: ‘x’ may be used uninitialized in this function
:info:build agg24/include/agg_rasterizer_scanline_aa.h:191: warning: ‘y’ may be used uninitialized in this function
:info:build src/image.cpp:569: error: insn does not satisfy its constraints:
:info:build (insn 6747 1266 1267 139 agg24/include/agg_color_rgba.h:268 (set (mem:QI (plus:SI (reg/f:SI 6 bp)
:info:build                 (const_int -1768 [0xfffffffffffff918])) [0 SR.4381+0 S1 A8])
:info:build         (reg:QI 4 si)) 56 {*movqi_1} (nil)
:info:build     (nil))
:info:build src/image.cpp:569: internal compiler error: in reload_cse_simplify_operands, at postreload.c:391
:info:build Please submit a full bug report,
:info:build with preprocessed source if appropriate.
:info:build See <URL:http://developer.apple.com/bugreporter> for instructions.
:info:build error: command '/usr/bin/gcc-4.0' 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-1.2.0" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
:info:build Exit code: 1
:error:build org.macports.build for port py27-matplotlib returned: command execution failed
:debug:build Error code: CHILDSTATUS 73634 1
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for py27-matplotlib: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port py27-matplotlib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-matplotlib/py27-matplotlib/main.log

Attachments (4)

main.log (61.4 KB) - added by juanaus@… 12 years ago.
mail.log
main.2.log (110.4 KB) - added by juanaus@… 12 years ago.
gcc42 main.log
py-matplotlib.gcc40.main.log (302.6 KB) - added by petrrr 12 years ago.
logfile using gcc-4.0
py-matplotlib.gcc42.main.log (2.1 MB) - added by petrrr 12 years ago.
logfile using gcc-4.2

Change History (20)

Changed 12 years ago by juanaus@…

Attachment: main.log added

mail.log

comment:1 Changed 12 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to ram@…
Port: py27-matplotlib added

Please remember to fill in the Port field and Cc the maintainer.

comment:2 Changed 12 years ago by skymoo (Adam Mercer)

I don't have access to a Leopard Machine to try and reproduce but it seems to be a compiler bug:

:info:build src/image.cpp:569: internal compiler error: in reload_cse_simplify_operands, at postreload.c:391
:info:build Please submit a full bug report,
:info:build with preprocessed source if appropriate.
:info:build See <URL:http://developer.apple.com/bugreporter> for instructions.
:info:build error: command '/usr/bin/gcc-4.0' failed with exit status 1

Can you try using gcc-4.2:

sudo port install py27-matplotlib configure.compiler=apple-gcc-4.2

comment:3 Changed 12 years ago by skymoo (Adam Mercer)

Status: newassigned

comment:4 Changed 12 years ago by juanaus@…

Thanks for all your help, I try your suggestion but unfortunately it cannot build matplotlib. Here is what I get:

comp:gcc-5666.3 oliveros$ sudo port install py27-matplotlib configure.compiler=apple-gcc-4.2
--->  Computing dependencies for py27-matplotlib
--->  Fetching archive for py27-matplotlib
--->  Attempting to fetch py27-matplotlib-1.2.0_0+tkinter.darwin_9.i386.tbz2 from http://packages.macports.org/py27-matplotlib
--->  Attempting to fetch py27-matplotlib-1.2.0_0+tkinter.darwin_9.i386.tbz2 from http://lil.fr.packages.macports.org/py27-matplotlib
--->  Attempting to fetch py27-matplotlib-1.2.0_0+tkinter.darwin_9.i386.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-matplotlib
--->  Fetching distfiles for py27-matplotlib
--->  Verifying checksum(s) for py27-matplotlib
--->  Extracting py27-matplotlib
--->  Applying patches to py27-matplotlib
--->  Configuring py27-matplotlib
--->  Building py27-matplotlib
Error: org.macports.build for port py27-matplotlib returned: command execution failed
Please see the log file for port py27-matplotlib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-matplotlib/py27-matplotlib/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-matplotlib failed

The error in the main.log looks like this:

:info:build running build_ext
:info:build building 'matplotlib.ft2font' extension
:info:build creating build/temp.macosx-10.5-i386-2.7
:info:build creating build/temp.macosx-10.5-i386-2.7/src
:info:build creating build/temp.macosx-10.5-i386-2.7/CXX
:info:build /opt/local/bin/gcc-apple-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -arch i386 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/python/opt/local -I. -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/ft2font.cpp -o build/temp.macosx-10.5-i386-2.7/src/ft2font.o
:info:build unable to execute /opt/local/bin/gcc-apple-4.2: No such file or directory
:info:build error: command '/opt/local/bin/gcc-apple-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-1.2.0" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
:info:build Exit code: 1
:error:build org.macports.build for port py27-matplotlib returned: command execution failed
:debug:build Error code: CHILDSTATUS 77544 1
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for py27-matplotlib: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port py27-matplotlib for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-matplotlib/py27-matplotlib/main.log

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

The error implies that you do not have the apple gcc 4.2 port installed. What is the output of the following?

port installed apple-gcc42

comment:6 in reply to:  5 Changed 12 years ago by juanaus@…

Replying to macsforever2000@…:

The error implies that you do not have the apple gcc 4.2 port installed. What is the output of the following?

port installed apple-gcc42

Hi, yes I did notice that after I sent my comment. So, I tried installing apple-gcc42 and just gcc42 with the following outcome:

--->  Building gcc42
Error: org.macports.build for port gcc42 returned: command execution failed
Please see the log file for port gcc42 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc42/gcc42/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gcc42 failed

Changed 12 years ago by juanaus@…

Attachment: main.2.log added

gcc42 main.log

comment:7 Changed 12 years ago by mf2k (Frank Schima)

Keywords: leopard added

That's a totally different error for a totally different port. Please file a new ticket for that.

comment:8 Changed 12 years ago by jmroot (Joshua Root)

You shouldn't need to install apple-gcc42, since Apple's gcc-4.2 is included with Xcode 3.1. You definitely don't want gcc42 since that is the "vanilla" FSF version without any of Apple's patches.

So ram's suggested command in comment:2 wasn't quite right; it should have been:

sudo port install py27-matplotlib configure.compiler=gcc-4.2

comment:9 in reply to:  8 Changed 12 years ago by juanaus@…

Replying to jmr@…:

You shouldn't need to install apple-gcc42, since Apple's gcc-4.2 is included with Xcode 3.1. You definitely don't want gcc42 since that is the "vanilla" FSF version without any of Apple's patches.

So ram's suggested command in comment:2 wasn't quite right; it should have been:

sudo port install py27-matplotlib configure.compiler=gcc-4.2

Thank you! I think that made the trick. Now matplotlib is working again, it shows some leaking warnings while plotting but in general is working. Thank you again for all your help.

comment:10 Changed 12 years ago by skymoo (Adam Mercer)

Great! Just to clarify, is it Xcode-3.1 you have or Xcode-3.1.4?

comment:11 in reply to:  10 Changed 12 years ago by juanaus@…

Replying to ram@…:

Great! Just to clarify, is it Xcode-3.1 you have or Xcode-3.1.4?

Xcode Version 3.1.3

comment:12 Changed 12 years ago by skymoo (Adam Mercer)

Any chance you could upgrade to 3.1.4 and try the build again?

comment:13 Changed 12 years ago by petrrr

Cc: Peter.Danecek@… added

I observed the same build problem on my Mac OS X 10.5.8, while updating to 1.2.0. I am using python26 (py26-matplotlib).

proposal: change py27-matplotlib to py-matplotlib

XCode 3.1.4

With gcc-4.2 it builds fine:

sudo port -v upgrade py26-matplotlib configure.compiler=gcc-4.2
Last edited 12 years ago by petrrr (previous) (diff)

comment:14 in reply to:  13 ; Changed 12 years ago by skymoo (Adam Mercer)

Replying to Peter.Danecek@…:

proposal: change py27-matplotlib to py-matplotlib

I don't understand this statement. matplotlib-1.2.0 dropped support for python24 and python26 and as such python27 was made the default version, therefore py-matplotlib and py27-matplotlib are the same?

XCode 3.1.4

With gcc-4.2 it builds fine

Does it still fail with Xcode-3.1.4 when using gcc-4.0?

Last edited 12 years ago by skymoo (Adam Mercer) (previous) (diff)

comment:15 in reply to:  14 ; Changed 12 years ago by petrrr

Replying to ram@…:

Replying to Peter.Danecek@…:

proposal: change py27-matplotlib to py-matplotlib

I don't understand this statement. matplotlib-1.2.0 dropped support for python24 and python26 and as such python27 was made the default version, therefore py-matplotlib and py27-matplotlib are the same?

XCode 3.1.4

With gcc-4.2 it builds fine

Does it still fail with Xcode-3.1.4 when using gcc-4.0?

Yes, it fails with gcc-4.0 (logfile: py-matplotlib.gcc40.main.log), while it builds with gcc-4.2 (logfile: py-matplotlib.gcc42.main.log).

Changed 12 years ago by petrrr

logfile using gcc-4.0

Changed 12 years ago by petrrr

logfile using gcc-4.2

comment:16 in reply to:  15 Changed 12 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.