[Numpy-discussion] recompiling needed for binary module after numpy 1.0

Robert Kern robert.kern at gmail.com
Mon Jan 8 03:51:24 EST 2007


Erin Sheldon wrote:
> I just got a new MacBook Pro, core 2 duo.  There is no
> numpy/scipy fink distro for the intels yet so I tried out
> Robert's suggestions above.  I installed python 2.5 as
> the base.  I can confirm that all is working well for
> numpy and scipy.
> 
> Matplotlib compiled, but gave some odd warnings such
> as
> 
> /usr/bin/ld: warning fat file: /usr/local/lib/libgcc_s.10.4.dylib does
> not contain an architecture that matches the specified -arch flag: ppc
> (file ignored)

Hmm. That is a bit odd. That library comes from the gfortran install and is a
standard gcc runtime library. It's probably getting picked up for the extension
modules that use -L/usr/local/lib . Not great, but shouldn't be harmful unless
if you really want Universal binaries that will run on PPC Macs, too.

> And when I run a "import pylab" with either wxAgg or TkAgg as
> my backend it just segfaults.  Any ideas? The
> only way I differed from Robert's suggestions was I used fink
> to install jpeg,png,freetype.
>   fink install libjpeg
>   fink install libpng3
>   fink install freetype2
> And I did not alter the setupext.py file.

I don't know. Try running it under gdb to get a C stacktrace so we can tell
where the segfault comes from. The lines starting with (gdb) are prompts where
you should enter the lines I give below:


[~]$ gdb pythonw
GNU gdb 6.3.50-20050815 (Apple version gdb-573) (Fri Oct 20 15:50:43 GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared
libraries .. done

(gdb) run
Starting program: /usr/local/bin/pythonw
Reading symbols for shared libraries . done

Program received signal SIGTRAP, Trace/breakpoint trap.
0x8fe01010 in __dyld__dyld_start ()
(gdb) continue
Continuing.
Reading symbols for shared libraries . done
Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Reading symbols for shared libraries .. done
>>> from matplotlib.pylab import *
Reading symbols for shared libraries .... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ........ done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries
........................................................... done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .................. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
>>>

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list