[Pythonmac-SIG] Problems installing Numpy using Universal MacPython
Ronald Oussoren
ronaldoussoren at mac.com
Mon Mar 27 19:07:28 CEST 2006
On 27-mrt-2006, at 18:00, James Boyle wrote:
> I posted this to the numpy mailing list - I am re-posting here
> since it is a more complete description of the situation than my
> previous post to this list.
>
> 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.
The problem is that gcc 3.3 on 10.3.9 doesn't support some of these
options. Specifcally it doesn't know '-isysroot' and also doesn't
support the i386 architecture. I'm pretty sure that I had implemented
support for stripping these arguments on a 10.3 system. Hopefully
I'll have time to boot into 10.3 tomorrow.
Ronald
>
> 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_______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
More information about the Pythonmac-SIG
mailing list