On Fri, May 30, 2008 at 8:10 AM, Anand Patil < [EMAIL PROTECTED]> wrote:
> Hi all, > This languished on comp.lang.python, sorry about the cross-post. I'm > getting the following error: > > distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET > mismatch: now "10.3" but "10.5" during configure > > on Leopard using system Python when trying to compile some third-party > modules but not others. I've set MACOSX_DEPLOYMENT_TARGET to 10.5 to no > avail. It looks like lots of people have seen similar problems, but the > fixes seem to involve running configure, which means a new Python build. Is > it possible to fix the problem and still use the system Python? > > Thanks, > Anand Patil > Just to check, I downloaded the Python.org 2.5.2 distribution. Now when I try to compile numpy I get the following. It works with gcc 4.0 but not gcc 4.2... but I need to use gcc 4.2 later on, so I want to get Python to play nicely with it. How can I do that? Thanks, Anand sihpc03:numpy anand$ python setup.py build Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2_5245 blas_opt_info: FOUND: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3)] extra_compile_args = ['-msse3', '-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 = ['-msse3'] running build running scons customize UnixCCompiler Found executable /usr/bin/gcc customize NAGFCompiler Could not locate executable f95 customize AbsoftFCompiler Could not locate executable f90 Could not locate executable f77 customize IBMFCompiler Could not locate executable xlf90 Could not locate executable xlf customize IntelFCompiler Could not locate executable ifort Could not locate executable ifc customize GnuFCompiler Could not locate executable g77 customize Gnu95FCompiler Found executable /usr/local/bin/gfortran customize Gnu95FCompiler customize UnixCCompiler customize UnixCCompiler using scons running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src building py_modules sources creating build creating build/src.macosx-10.3-i386-2.5 creating build/src.macosx-10.3-i386-2.5/numpy creating build/src.macosx-10.3-i386-2.5/numpy/distutils building extension "numpy.core.multiarray" sources creating build/src.macosx-10.3-i386-2.5/numpy/core Generating build/src.macosx-10.3-i386-2.5/numpy/core/config.h customize NAGFCompiler customize AbsoftFCompiler customize IBMFCompiler customize IntelFCompiler customize GnuFCompiler customize Gnu95FCompiler customize Gnu95FCompiler customize Gnu95FCompiler using config C compiler: gcc -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 -O3 compile options: '-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -Inumpy/core/src -Inumpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c' gcc: _configtest.c powerpc-apple-darwin9-gcc-4.2.1: unrecognized option '-no-cpp-precomp' cc1: error: unrecognized command line option "-Wno-long-double" i686-apple-darwin9-gcc-4.2.1: unrecognized option '-no-cpp-precomp' cc1: error: unrecognized command line option "-Wno-long-double" lipo: can't figure out the architecture type of: /var/folders/y4/y4M-NZ0GELKlXr2RyIgYgU+++TI/-Tmp-//ccwKb2oD.out powerpc-apple-darwin9-gcc-4.2.1: unrecognized option '-no-cpp-precomp' cc1: error: unrecognized command line option "-Wno-long-double" i686-apple-darwin9-gcc-4.2.1: unrecognized option '-no-cpp-precomp' cc1: error: unrecognized command line option "-Wno-long-double" lipo: can't figure out the architecture type of: /var/folders/y4/y4M-NZ0GELKlXr2RyIgYgU+++TI/-Tmp-//ccwKb2oD.out failure. removing: _configtest.c _configtest.o Traceback (most recent call last): File "setup.py", line 96, in <module> setup_package() File "setup.py", line 89, in setup_package configuration=configuration ) File "/Users/anand/working copies/numpy/numpy/distutils/core.py", line 184, in setup return old_setup(**new_attr) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 151, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 974, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command cmd_obj.run() File "/Users/anand/working copies/numpy/numpy/distutils/command/build.py", line 40, in run old_build.run(self) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build.py", line 112, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py", line 333, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command cmd_obj.run() File "/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py", line 130, in run self.build_sources() File "/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py", line 147, in build_sources self.build_extension_sources(ext) File "/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py", line 250, in build_extension_sources sources = self.generate_sources(sources, ext) File "/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py", line 307, in generate_sources source = func(extension, build_dir) File "numpy/core/setup.py", line 83, in generate_config_h raise SystemError,"Failed to test configuration. "\ SystemError: Failed to test configuration. See previous error messages for more information. sihpc03:numpy anand$
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig