|
From: Joshua L. <dis...@gm...> - 2008-04-08 12:31:11
|
Hello all,
I'v been trying to get the same python module setup in 10.5 qorking
that I had going in 10.4, and so far I've been unable to install
matplotlib from svn on my own. I've managed to use an installer
(easy_install I think...) in the mean time, but I'd really like to be
able to keep more up-to-date. When I run python setup.py build, I get
the following output:
BUILDING MATPLOTLIB
matplotlib: 0.98pre
python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
4.0.1 (Apple Computer, Inc. build 5363)]
platform: darwin
REQUIRED DEPENDENCIES
numpy: 1.0.5.dev4951
freetype2: 9.16.3
OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.22
Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
wxPython: 2.8.7.1
* WxAgg extension not required for wxPython >= 2.8
Gtk+: no
* Building for Gtk+ requires pygtk; you must be able
* to "import gtk" in your build/install environment
Qt: no
Qt4: no
Cairo: no
OPTIONAL DATE/TIMEZONE DEPENDENCIES
datetime: present, version unknown
dateutil: 1.4
pytz: 2008a
OPTIONAL USETEX DEPENDENCIES
dvipng: 1.9
ghostscript: 8.57
latex: 3.141592
EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
configobj: matplotlib will provide
enthought.traits: matplotlib will provide
[Edit setup.cfg to suppress the above messages]
============================================================================
running build
running build_py
copying lib/matplotlib/cbook.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
copying lib/matplotlib/collections.py ->
build/lib.macosx-10.4-fat-2.5/matplotlib
copying lib/matplotlib/lines.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
copying lib/matplotlib/rcsetup.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
copying lib/matplotlib/backends/backend_qt4agg.py ->
build/lib.macosx-10.4-fat-2.5/matplotlib/backends
copying lib/matplotlib/backends/backend_qtagg.py ->
build/lib.macosx-10.4-fat-2.5/matplotlib/backends
copying lib/matplotlib/mpl-data/matplotlibrc ->
build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
copying lib/matplotlib/mpl-data/matplotlib.conf ->
build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
running build_ext
building 'matplotlib.backends._backend_agg' extension
gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -O3
-I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
-I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
-I/usr/X11R6/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
-Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
-I/opt/gtk/include -I/usr/local/include -I/usr/include
-I/usr/X11R6/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
src/_image.cpp: In member function 'Py::Object
_image_module::from_images(const Py::Tuple&)':
src/_image.cpp:842: error: insn does not satisfy its constraints:
(insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
(mem:QI (plus:SI (reg/f:SI 6 bp)
(const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8])
(reg:QI 5 di)) 56 {*movqi_1} (nil)
(nil))
src/_image.cpp:842: internal compiler error: in
reload_cse_simplify_operands, at postreload.c:391
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
error: command 'gcc' failed with exit status 1
I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer
tools, so I really am not sure exactly of what's going on here. I know
this has (obviously) been built for OS X 10.5 before, and I'm
wondering if anyone else has run into this and knows how to get around
it.
Thanks,
Josh
|
|
From: Jeff W. <js...@fa...> - 2008-04-08 16:06:48
|
Joshua Lippai wrote:
> Hello all,
>
> I'v been trying to get the same python module setup in 10.5 qorking
> that I had going in 10.4, and so far I've been unable to install
> matplotlib from svn on my own. I've managed to use an installer
> (easy_install I think...) in the mean time, but I'd really like to be
> able to keep more up-to-date. When I run python setup.py build, I get
> the following output:
>
> BUILDING MATPLOTLIB
> matplotlib: 0.98pre
> python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
> 4.0.1 (Apple Computer, Inc. build 5363)]
> platform: darwin
>
> REQUIRED DEPENDENCIES
> numpy: 1.0.5.dev4951
> freetype2: 9.16.3
>
> OPTIONAL BACKEND DEPENDENCIES
> libpng: 1.2.22
> Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
> wxPython: 2.8.7.1
> * WxAgg extension not required for wxPython >= 2.8
> Gtk+: no
> * Building for Gtk+ requires pygtk; you must be able
> * to "import gtk" in your build/install environment
> Qt: no
> Qt4: no
> Cairo: no
>
> OPTIONAL DATE/TIMEZONE DEPENDENCIES
> datetime: present, version unknown
> dateutil: 1.4
> pytz: 2008a
>
> OPTIONAL USETEX DEPENDENCIES
> dvipng: 1.9
> ghostscript: 8.57
> latex: 3.141592
>
> EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
> configobj: matplotlib will provide
> enthought.traits: matplotlib will provide
>
> [Edit setup.cfg to suppress the above messages]
> ============================================================================
> running build
> running build_py
> copying lib/matplotlib/cbook.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
> copying lib/matplotlib/collections.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib
> copying lib/matplotlib/lines.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
> copying lib/matplotlib/rcsetup.py -> build/lib.macosx-10.4-fat-2.5/matplotlib
> copying lib/matplotlib/backends/backend_qt4agg.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> copying lib/matplotlib/backends/backend_qtagg.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> copying lib/matplotlib/mpl-data/matplotlibrc ->
> build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> copying lib/matplotlib/mpl-data/matplotlib.conf ->
> build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> running build_ext
> building 'matplotlib.backends._backend_agg' extension
> gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
> -fno-common -dynamic -DNDEBUG -g -O3
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
> -I/usr/X11R6/include -I.
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
> -I/opt/gtk/include -I/usr/local/include -I/usr/include
> -I/usr/X11R6/include -I.
> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
> src/_image.cpp: In member function 'Py::Object
> _image_module::from_images(const Py::Tuple&)':
> src/_image.cpp:842: error: insn does not satisfy its constraints:
> (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
> (mem:QI (plus:SI (reg/f:SI 6 bp)
> (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8])
> (reg:QI 5 di)) 56 {*movqi_1} (nil)
> (nil))
> src/_image.cpp:842: internal compiler error: in
> reload_cse_simplify_operands, at postreload.c:391
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://developer.apple.com/bugreporter> for instructions.
> error: command 'gcc' failed with exit status 1
>
> I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer
> tools, so I really am not sure exactly of what's going on here. I know
> this has (obviously) been built for OS X 10.5 before, and I'm
> wondering if anyone else has run into this and knows how to get around
> it.
>
> Thanks,
> Josh
>
>
Josh: I've been able to work around this by installing the gcc 4.2 beta
from Apple. You then have to manually symlink gcc to gcc-4.2 in
/usr/bin, and edit the Makefile buried within the python installation to
remove the -Wno-long-double compiler flag (since it doesn't work with
gcc-4.2). I believe the Makefile is located in
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config.
-Jeff
|
|
From: Joshua L. <dis...@gm...> - 2008-04-08 20:57:37
|
Thanks, Jeff. But is there a downside to removing the Wno-long-double
flag I should know about?
Josh
On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...> wrote:
>
> Joshua Lippai wrote:
>
> > Hello all,
> >
> > I'v been trying to get the same python module setup in 10.5 qorking
> > that I had going in 10.4, and so far I've been unable to install
> > matplotlib from svn on my own. I've managed to use an installer
> > (easy_install I think...) in the mean time, but I'd really like to be
> > able to keep more up-to-date. When I run python setup.py build, I get
> > the following output:
> >
> > BUILDING MATPLOTLIB
> > matplotlib: 0.98pre
> > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
> > 4.0.1 (Apple Computer, Inc. build 5363)]
> > platform: darwin
> >
> > REQUIRED DEPENDENCIES
> > numpy: 1.0.5.dev4951
> > freetype2: 9.16.3
> >
> > OPTIONAL BACKEND DEPENDENCIES
> > libpng: 1.2.22
> > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
> > wxPython: 2.8.7.1
> > * WxAgg extension not required for wxPython >= 2.8
> > Gtk+: no
> > * Building for Gtk+ requires pygtk; you must be
> able
> > * to "import gtk" in your build/install environment
> > Qt: no
> > Qt4: no
> > Cairo: no
> >
> > OPTIONAL DATE/TIMEZONE DEPENDENCIES
> > datetime: present, version unknown
> > dateutil: 1.4
> > pytz: 2008a
> >
> > OPTIONAL USETEX DEPENDENCIES
> > dvipng: 1.9
> > ghostscript: 8.57
> > latex: 3.141592
> >
> > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
> > configobj: matplotlib will provide
> > enthought.traits: matplotlib will provide
> >
> > [Edit setup.cfg to suppress the above messages]
> >
> ============================================================================
> > running build
> > running build_py
> > copying lib/matplotlib/cbook.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib
> > copying lib/matplotlib/collections.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib
> > copying lib/matplotlib/lines.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib
> > copying lib/matplotlib/rcsetup.py ->
> build/lib.macosx-10.4-fat-2.5/matplotlib
> > copying lib/matplotlib/backends/backend_qt4agg.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > copying lib/matplotlib/backends/backend_qtagg.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > copying lib/matplotlib/mpl-data/matplotlibrc ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > copying lib/matplotlib/mpl-data/matplotlib.conf ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > running build_ext
> > building 'matplotlib.backends._backend_agg' extension
> > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
> > -fno-common -dynamic -DNDEBUG -g -O3
> >
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
> > -I/usr/X11R6/include -I.
> >
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
> > -I/opt/gtk/include -I/usr/local/include -I/usr/include
> > -I/usr/X11R6/include -I.
> > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
> > src/_image.cpp: In member function 'Py::Object
> > _image_module::from_images(const Py::Tuple&)':
> > src/_image.cpp:842: error: insn does not satisfy its constraints:
> > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
> > (mem:QI (plus:SI (reg/f:SI 6 bp)
> > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8])
> > (reg:QI 5 di)) 56 {*movqi_1} (nil)
> > (nil))
> > src/_image.cpp:842: internal compiler error: in
> > reload_cse_simplify_operands, at postreload.c:391
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <URL:http://developer.apple.com/bugreporter> for instructions.
> > error: command 'gcc' failed with exit status 1
> >
> > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer
> > tools, so I really am not sure exactly of what's going on here. I know
> > this has (obviously) been built for OS X 10.5 before, and I'm
> > wondering if anyone else has run into this and knows how to get around
> > it.
> >
> > Thanks,
> > Josh
> >
> >
> >
> Josh: I've been able to work around this by installing the gcc 4.2 beta
> from Apple. You then have to manually symlink gcc to gcc-4.2 in /usr/bin,
> and edit the Makefile buried within the python installation to remove the
> -Wno-long-double compiler flag (since it doesn't work with gcc-4.2). I
> believe the Makefile is located in
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config.
>
> -Jeff
>
>
|
|
From: Joshua L. <dis...@gm...> - 2008-04-08 21:17:49
|
Also, I assume I should also take out the no-cpp-precomp flag since
that doesn't work with GCC 4.2 either? Or does it not matter?
Josh
On Tue, Apr 8, 2008 at 1:57 PM, Joshua Lippai <dis...@gm...> wrote:
> Thanks, Jeff. But is there a downside to removing the Wno-long-double
> flag I should know about?
>
> Josh
>
>
>
> On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...> wrote:
> >
> > Joshua Lippai wrote:
> >
> > > Hello all,
> > >
> > > I'v been trying to get the same python module setup in 10.5 qorking
> > > that I had going in 10.4, and so far I've been unable to install
> > > matplotlib from svn on my own. I've managed to use an installer
> > > (easy_install I think...) in the mean time, but I'd really like to be
> > > able to keep more up-to-date. When I run python setup.py build, I get
> > > the following output:
> > >
> > > BUILDING MATPLOTLIB
> > > matplotlib: 0.98pre
> > > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
> > > 4.0.1 (Apple Computer, Inc. build 5363)]
> > > platform: darwin
> > >
> > > REQUIRED DEPENDENCIES
> > > numpy: 1.0.5.dev4951
> > > freetype2: 9.16.3
> > >
> > > OPTIONAL BACKEND DEPENDENCIES
> > > libpng: 1.2.22
> > > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
> > > wxPython: 2.8.7.1
> > > * WxAgg extension not required for wxPython >= 2.8
> > > Gtk+: no
> > > * Building for Gtk+ requires pygtk; you must be
> > able
> > > * to "import gtk" in your build/install environment
> > > Qt: no
> > > Qt4: no
> > > Cairo: no
> > >
> > > OPTIONAL DATE/TIMEZONE DEPENDENCIES
> > > datetime: present, version unknown
> > > dateutil: 1.4
> > > pytz: 2008a
> > >
> > > OPTIONAL USETEX DEPENDENCIES
> > > dvipng: 1.9
> > > ghostscript: 8.57
> > > latex: 3.141592
> > >
> > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
> > > configobj: matplotlib will provide
> > > enthought.traits: matplotlib will provide
> > >
> > > [Edit setup.cfg to suppress the above messages]
> > >
> > ============================================================================
> > > running build
> > > running build_py
> > > copying lib/matplotlib/cbook.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > copying lib/matplotlib/collections.py ->
> > > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > copying lib/matplotlib/lines.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > copying lib/matplotlib/rcsetup.py ->
> > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > copying lib/matplotlib/backends/backend_qt4agg.py ->
> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > > copying lib/matplotlib/backends/backend_qtagg.py ->
> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > > copying lib/matplotlib/mpl-data/matplotlibrc ->
> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > > copying lib/matplotlib/mpl-data/matplotlib.conf ->
> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > > running build_ext
> > > building 'matplotlib.backends._backend_agg' extension
> > > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> > > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
> > > -fno-common -dynamic -DNDEBUG -g -O3
> > >
> > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
> > > -I/usr/X11R6/include -I.
> > >
> > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
> > > -I/opt/gtk/include -I/usr/local/include -I/usr/include
> > > -I/usr/X11R6/include -I.
> > > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> > > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
> > > src/_image.cpp: In member function 'Py::Object
> > > _image_module::from_images(const Py::Tuple&)':
> > > src/_image.cpp:842: error: insn does not satisfy its constraints:
> > > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
> > > (mem:QI (plus:SI (reg/f:SI 6 bp)
> > > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8])
> > > (reg:QI 5 di)) 56 {*movqi_1} (nil)
> > > (nil))
> > > src/_image.cpp:842: internal compiler error: in
> > > reload_cse_simplify_operands, at postreload.c:391
> > > Please submit a full bug report,
> > > with preprocessed source if appropriate.
> > > See <URL:http://developer.apple.com/bugreporter> for instructions.
> > > error: command 'gcc' failed with exit status 1
> > >
> > > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer
> > > tools, so I really am not sure exactly of what's going on here. I know
> > > this has (obviously) been built for OS X 10.5 before, and I'm
> > > wondering if anyone else has run into this and knows how to get around
> > > it.
> > >
> > > Thanks,
> > > Josh
> > >
> > >
> > >
> > Josh: I've been able to work around this by installing the gcc 4.2 beta
> > from Apple. You then have to manually symlink gcc to gcc-4.2 in /usr/bin,
> > and edit the Makefile buried within the python installation to remove the
> > -Wno-long-double compiler flag (since it doesn't work with gcc-4.2). I
> > believe the Makefile is located in
> > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config.
> >
> > -Jeff
> >
> >
>
|
|
From: Jeff W. <js...@fa...> - 2008-04-08 22:11:12
|
Joshua Lippai wrote:
> Also, I assume I should also take out the no-cpp-precomp flag since
> that doesn't work with GCC 4.2 either? Or does it not matter?
>
Josh: Apparently it just ignores that flag.
> Josh
>
> On Tue, Apr 8, 2008 at 1:57 PM, Joshua Lippai <dis...@gm...> wrote:
>
>> Thanks, Jeff. But is there a downside to removing the Wno-long-double
>> flag I should know about?
>>
>> Josh
>>
No idea.
-Jeff
>>
>>
>> On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...> wrote:
>> >
>> > Joshua Lippai wrote:
>> >
>> > > Hello all,
>> > >
>> > > I'v been trying to get the same python module setup in 10.5 qorking
>> > > that I had going in 10.4, and so far I've been unable to install
>> > > matplotlib from svn on my own. I've managed to use an installer
>> > > (easy_install I think...) in the mean time, but I'd really like to be
>> > > able to keep more up-to-date. When I run python setup.py build, I get
>> > > the following output:
>> > >
>> > > BUILDING MATPLOTLIB
>> > > matplotlib: 0.98pre
>> > > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC
>> > > 4.0.1 (Apple Computer, Inc. build 5363)]
>> > > platform: darwin
>> > >
>> > > REQUIRED DEPENDENCIES
>> > > numpy: 1.0.5.dev4951
>> > > freetype2: 9.16.3
>> > >
>> > > OPTIONAL BACKEND DEPENDENCIES
>> > > libpng: 1.2.22
>> > > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
>> > > wxPython: 2.8.7.1
>> > > * WxAgg extension not required for wxPython >= 2.8
>> > > Gtk+: no
>> > > * Building for Gtk+ requires pygtk; you must be
>> > able
>> > > * to "import gtk" in your build/install environment
>> > > Qt: no
>> > > Qt4: no
>> > > Cairo: no
>> > >
>> > > OPTIONAL DATE/TIMEZONE DEPENDENCIES
>> > > datetime: present, version unknown
>> > > dateutil: 1.4
>> > > pytz: 2008a
>> > >
>> > > OPTIONAL USETEX DEPENDENCIES
>> > > dvipng: 1.9
>> > > ghostscript: 8.57
>> > > latex: 3.141592
>> > >
>> > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
>> > > configobj: matplotlib will provide
>> > > enthought.traits: matplotlib will provide
>> > >
>> > > [Edit setup.cfg to suppress the above messages]
>> > >
>> > ============================================================================
>> > > running build
>> > > running build_py
>> > > copying lib/matplotlib/cbook.py ->
>> > build/lib.macosx-10.4-fat-2.5/matplotlib
>> > > copying lib/matplotlib/collections.py ->
>> > > build/lib.macosx-10.4-fat-2.5/matplotlib
>> > > copying lib/matplotlib/lines.py ->
>> > build/lib.macosx-10.4-fat-2.5/matplotlib
>> > > copying lib/matplotlib/rcsetup.py ->
>> > build/lib.macosx-10.4-fat-2.5/matplotlib
>> > > copying lib/matplotlib/backends/backend_qt4agg.py ->
>> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
>> > > copying lib/matplotlib/backends/backend_qtagg.py ->
>> > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
>> > > copying lib/matplotlib/mpl-data/matplotlibrc ->
>> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
>> > > copying lib/matplotlib/mpl-data/matplotlib.conf ->
>> > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
>> > > running build_ext
>> > > building 'matplotlib.backends._backend_agg' extension
>> > > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> > > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
>> > > -fno-common -dynamic -DNDEBUG -g -O3
>> > >
>> > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
>> > > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
>> > > -I/usr/X11R6/include -I.
>> > >
>> > -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
>> > > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
>> > > -I/opt/gtk/include -I/usr/local/include -I/usr/include
>> > > -I/usr/X11R6/include -I.
>> > > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>> > > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
>> > > src/_image.cpp: In member function 'Py::Object
>> > > _image_module::from_images(const Py::Tuple&)':
>> > > src/_image.cpp:842: error: insn does not satisfy its constraints:
>> > > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
>> > > (mem:QI (plus:SI (reg/f:SI 6 bp)
>> > > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0 S1 A8])
>> > > (reg:QI 5 di)) 56 {*movqi_1} (nil)
>> > > (nil))
>> > > src/_image.cpp:842: internal compiler error: in
>> > > reload_cse_simplify_operands, at postreload.c:391
>> > > Please submit a full bug report,
>> > > with preprocessed source if appropriate.
>> > > See <URL:http://developer.apple.com/bugreporter> for instructions.
>> > > error: command 'gcc' failed with exit status 1
>> > >
>> > > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode Developer
>> > > tools, so I really am not sure exactly of what's going on here. I know
>> > > this has (obviously) been built for OS X 10.5 before, and I'm
>> > > wondering if anyone else has run into this and knows how to get around
>> > > it.
>> > >
>> > > Thanks,
>> > > Josh
>> > >
>> > >
>> > >
>> > Josh: I've been able to work around this by installing the gcc 4.2 beta
>> > from Apple. You then have to manually symlink gcc to gcc-4.2 in /usr/bin,
>> > and edit the Makefile buried within the python installation to remove the
>> > -Wno-long-double compiler flag (since it doesn't work with gcc-4.2). I
>> > believe the Makefile is located in
>> > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config.
>> >
>> > -Jeff
>> >
>> >
>>
>>
|
|
From: Joshua L. <dis...@gm...> - 2008-04-09 00:07:18
|
Perfect, this works like a charm. And if so desired, this could also
be done without changing the symlink by just changing the Python
Makefile to use gcc-4.2 and g++-4.2. Thanks!
Josh
On Tue, Apr 8, 2008 at 3:11 PM, Jeff Whitaker <js...@fa...> wrote:
> Joshua Lippai wrote:
>
> > Also, I assume I should also take out the no-cpp-precomp flag since
> > that doesn't work with GCC 4.2 either? Or does it not matter?
> >
> >
>
> Josh: Apparently it just ignores that flag.
>
>
> > Josh
> >
> > On Tue, Apr 8, 2008 at 1:57 PM, Joshua Lippai <dis...@gm...>
> wrote:
> >
> >
> > > Thanks, Jeff. But is there a downside to removing the Wno-long-double
> > > flag I should know about?
> > >
> > > Josh
> > >
> > >
> >
>
> No idea.
>
> -Jeff
>
>
>
> >
> > >
> > >
> > > On Tue, Apr 8, 2008 at 9:06 AM, Jeff Whitaker <js...@fa...>
> wrote:
> > > >
> > > > Joshua Lippai wrote:
> > > >
> > > > > Hello all,
> > > > >
> > > > > I'v been trying to get the same python module setup in 10.5 qorking
> > > > > that I had going in 10.4, and so far I've been unable to install
> > > > > matplotlib from svn on my own. I've managed to use an installer
> > > > > (easy_install I think...) in the mean time, but I'd really like to
> be
> > > > > able to keep more up-to-date. When I run python setup.py build, I
> get
> > > > > the following output:
> > > > >
> > > > > BUILDING MATPLOTLIB
> > > > > matplotlib: 0.98pre
> > > > > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
> [GCC
> > > > > 4.0.1 (Apple Computer, Inc. build 5363)]
> > > > > platform: darwin
> > > > >
> > > > > REQUIRED DEPENDENCIES
> > > > > numpy: 1.0.5.dev4951
> > > > > freetype2: 9.16.3
> > > > >
> > > > > OPTIONAL BACKEND DEPENDENCIES
> > > > > libpng: 1.2.22
> > > > > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
> > > > > wxPython: 2.8.7.1
> > > > > * WxAgg extension not required for wxPython
> >= 2.8
> > > > > Gtk+: no
> > > > > * Building for Gtk+ requires pygtk; you must
> be
> > > > able
> > > > > * to "import gtk" in your build/install
> environment
> > > > > Qt: no
> > > > > Qt4: no
> > > > > Cairo: no
> > > > >
> > > > > OPTIONAL DATE/TIMEZONE DEPENDENCIES
> > > > > datetime: present, version unknown
> > > > > dateutil: 1.4
> > > > > pytz: 2008a
> > > > >
> > > > > OPTIONAL USETEX DEPENDENCIES
> > > > > dvipng: 1.9
> > > > > ghostscript: 8.57
> > > > > latex: 3.141592
> > > > >
> > > > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
> > > > > configobj: matplotlib will provide
> > > > > enthought.traits: matplotlib will provide
> > > > >
> > > > > [Edit setup.cfg to suppress the above messages]
> > > > >
> > > >
> ============================================================================
> > > > > running build
> > > > > running build_py
> > > > > copying lib/matplotlib/cbook.py ->
> > > > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > > > copying lib/matplotlib/collections.py ->
> > > > > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > > > copying lib/matplotlib/lines.py ->
> > > > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > > > copying lib/matplotlib/rcsetup.py ->
> > > > build/lib.macosx-10.4-fat-2.5/matplotlib
> > > > > copying lib/matplotlib/backends/backend_qt4agg.py ->
> > > > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > > > > copying lib/matplotlib/backends/backend_qtagg.py ->
> > > > > build/lib.macosx-10.4-fat-2.5/matplotlib/backends
> > > > > copying lib/matplotlib/mpl-data/matplotlibrc ->
> > > > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > > > > copying lib/matplotlib/mpl-data/matplotlib.conf ->
> > > > > build/lib.macosx-10.4-fat-2.5/matplotlib/mpl-data
> > > > > running build_ext
> > > > > building 'matplotlib.backends._backend_agg' extension
> > > > > gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> > > > > -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
> -mno-fused-madd
> > > > > -fno-common -dynamic -DNDEBUG -g -O3
> > > > >
> > > >
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > > > > -I/opt/gtk/include/libpng12 -I/usr/local/include -I/usr/include
> > > > > -I/usr/X11R6/include -I.
> > > > >
> > > >
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> > > > > -Isrc -Iagg24/include -I. -I/opt/gtk/include/freetype2
> > > > > -I/opt/gtk/include -I/usr/local/include -I/usr/include
> > > > > -I/usr/X11R6/include -I.
> > > > >
> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
> > > > > -c src/_image.cpp -o build/temp.macosx-10.4-fat-2.5/src/_image.o
> > > > > src/_image.cpp: In member function 'Py::Object
> > > > > _image_module::from_images(const Py::Tuple&)':
> > > > > src/_image.cpp:842: error: insn does not satisfy its constraints:
> > > > > (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set
> > > > > (mem:QI (plus:SI (reg/f:SI 6 bp)
> > > > > (const_int -280 [0xfffffffffffffee8])) [0 SR.2969+0
> S1 A8])
> > > > > (reg:QI 5 di)) 56 {*movqi_1} (nil)
> > > > > (nil))
> > > > > src/_image.cpp:842: internal compiler error: in
> > > > > reload_cse_simplify_operands, at postreload.c:391
> > > > > Please submit a full bug report,
> > > > > with preprocessed source if appropriate.
> > > > > See <URL:http://developer.apple.com/bugreporter> for instructions.
> > > > > error: command 'gcc' failed with exit status 1
> > > > >
> > > > > I'm using Apple's GCC 4.0.1 that gets installed by the Xcode
> Developer
> > > > > tools, so I really am not sure exactly of what's going on here. I
> know
> > > > > this has (obviously) been built for OS X 10.5 before, and I'm
> > > > > wondering if anyone else has run into this and knows how to get
> around
> > > > > it.
> > > > >
> > > > > Thanks,
> > > > > Josh
> > > > >
> > > > >
> > > > >
> > > > Josh: I've been able to work around this by installing the gcc 4.2
> beta
> > > > from Apple. You then have to manually symlink gcc to gcc-4.2 in
> /usr/bin,
> > > > and edit the Makefile buried within the python installation to remove
> the
> > > > -Wno-long-double compiler flag (since it doesn't work with gcc-4.2).
> I
> > > > believe the Makefile is located in
> > > >
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config.
> > > >
> > > > -Jeff
> > > >
> > > >
> > >
> > >
> > >
> >
>
>
|