[Numpy-discussion] OS X - Universal MacPython - numpy install failure

Ted Horst ted.horst at earthlink.net
Fri Mar 24 18:25:13 CST 2006


I could be wrong, but I don't think 10.3.9 supports universal  
binaries or 10.4 sdk.  I think you need a different pythn install.

Ted

On Mar 24, 2006, at 13:16, James Boyle wrote:

> I am running OX 10.3.9. I installed python 2.4.2 using Universal  
> MacPython 2.4.2.dmg.
> I am on a PowerPC G4. The Universal build is designed to install on  
> the Mac PPC and Intel machines.
>
> When I run the numpy 0.9.6 install it apparently fails on the  
> configure. The whole trace back is at the end of this posting.
> One thing that I noted  was the line:
>
> gcc options: '-arch ppc -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'
>
> It appears that the configure routines think that I have two  
> architectures - ppc and i386.
> At my low level of understanding, all I can do is speculate that  
> the Universal install generates some confusion as to the actual cpu.
> Somewhere numpy is keying on information that is ambiguous in the  
> universal install.
>
> I have installed Numeric, matplotlib and other packages without a  
> problem.
>
> --Jim
>
>
> The trace back from >python setup.py build:
>
> Running from numpy source directory.
> Warning: not existing path in numpy/distutils: site.cfg
> F2PY Version 2_2236
> blas_opt_info:
>   FOUND:
>     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
>     define_macros = [('NO_ATLAS_INFO', 3)]
>     extra_compile_args = ['-faltivec', '-I/System/Library/ 
> Frameworks/vecLib.framework/Headers']
>
> lapack_opt_info:
>   FOUND:
>     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
>     define_macros = [('NO_ATLAS_INFO', 3)]
>     extra_compile_args = ['-faltivec']
>
> running build
> running config_fc
> running build_src
> building py_modules sources
> creating build
> creating build/src
> creating build/src/numpy
> creating build/src/numpy/distutils
> building extension "numpy.core.multiarray" sources
> creating build/src/numpy/core
> Generating build/src/numpy/core/config.h
> customize NAGFCompiler
> customize AbsoftFCompiler
> customize IbmFCompiler
> customize GnuFCompiler
> customize GnuFCompiler
> customize GnuFCompiler using config
> gcc options: '-arch ppc -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'
> compile options: '-I/Library/Frameworks/Python.framework/Versions/ 
> 2.4/include/python2.4 -Inumpy/core/src -Inumpy/core/include -I/ 
> Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
> gcc: _configtest.c
> gcc: cannot specify -o with -c or -S and multiple compilations
> gcc: cannot specify -o with -c or -S and multiple compilations
> failure.
> removing: _configtest.c _configtest.o
> Traceback (most recent call last):
>   File "setup.py", line 76, in ?
>     setup_package()
>   File "setup.py", line 69, in setup_package
>     setup( **config.todict() )
>   File "/Volumes/IBM1/macPython/numpy-0.9.6/numpy/distutils/ 
> core.py", line 85, in setup
>     return old_setup(**new_attr)
>   File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ 
> python2.4/distutils/core.py", line 149, in setup
>     dist.run_commands()
>   File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ 
> python2.4/distutils/dist.py", line 946, in run_commands
>     self.run_command(cmd)
>   File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ 
> python2.4/distutils/dist.py", line 966, in run_command
>     cmd_obj.run()
>   File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ 
> python2.4/distutils/command/build.py", line 112, in run
>     self.run_command(cmd_name)
>   File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ 
> python2.4/distutils/cmd.py", line 333, in run_command
>     self.distribution.run_command(command)
>   File "/Library/Frameworks/Python.framework/Versions/2.4//lib/ 
> python2.4/distutils/dist.py", line 966, in run_command
>     cmd_obj.run()
>   File "/Volumes/IBM1/macPython/numpy-0.9.6/numpy/distutils/command/ 
> build_src.py", line 84, in run
>     self.build_sources()
>   File "/Volumes/IBM1/macPython/numpy-0.9.6/numpy/distutils/command/ 
> build_src.py", line 99, in build_sources
>     self.build_extension_sources(ext)
>   File "/Volumes/IBM1/macPython/numpy-0.9.6/numpy/distutils/command/ 
> build_src.py", line 209, in build_extension_sources
>     sources = self.generate_sources(sources, ext)
>   File "/Volumes/IBM1/macPython/numpy-0.9.6/numpy/distutils/command/ 
> build_src.py", line 267, in generate_sources
>     source = func(extension, build_dir)
>   File "numpy/core/setup.py", line 37, in generate_config_h
>     raise "ERROR: Failed to test configuration"
> ERROR: Failed to test configuration





More information about the Numpy-discussion mailing list