<div class="gmail_quote">On Fri, May 30, 2008 at 8:10 AM, Anand Patil <<a href="mailto:anand.prabhakar.patil@gmail.com" target="_blank">anand.prabhakar.patil@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<div><br></div><div>This languished on comp.lang.python, sorry about the cross-post. I'm getting the following error:</div><div><span style="font-family:Helvetica;font-size:12px"><br>
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure<br><br>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?</span><br>
</div><div><span style="font-family:Helvetica;font-size:12px"><br></span></div><div><span style="font-family:Helvetica;font-size:12px">Thanks,</span></div><div><span style="font-family:Helvetica;font-size:12px">Anand Patil</span></div>
</blockquote></div><br>
<div>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?</div>
<div><br></div><div>Thanks,</div><div>Anand</div><div><br></div><div><div>sihpc03:numpy anand$ python setup.py build</div><div>Running from numpy source directory.</div><div>non-existing path in 'numpy/distutils': 'site.cfg'</div>
<div>F2PY Version 2_5245</div><div>blas_opt_info:</div><div> FOUND:</div><div> extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']</div><div> define_macros = [('NO_ATLAS_INFO', 3)]</div><div>
extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']</div><div><br></div><div>lapack_opt_info:</div><div> FOUND:</div><div> extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']</div>
<div> define_macros = [('NO_ATLAS_INFO', 3)]</div><div> extra_compile_args = ['-msse3']</div><div><br></div><div>running build</div><div>running scons</div><div>customize UnixCCompiler</div><div>Found executable /usr/bin/gcc</div>
<div>customize NAGFCompiler</div><div>Could not locate executable f95</div><div>customize AbsoftFCompiler</div><div>Could not locate executable f90</div><div>Could not locate executable f77</div><div>customize IBMFCompiler</div>
<div>Could not locate executable xlf90</div><div>Could not locate executable xlf</div><div>customize IntelFCompiler</div><div>Could not locate executable ifort</div><div>Could not locate executable ifc</div><div>customize GnuFCompiler</div>
<div>Could not locate executable g77</div><div>customize Gnu95FCompiler</div><div>Found executable /usr/local/bin/gfortran</div><div>customize Gnu95FCompiler</div><div>customize UnixCCompiler</div><div>customize UnixCCompiler using scons</div>
<div>running config_cc</div><div>unifing config_cc, config, build_clib, build_ext, build commands --compiler options</div><div>running config_fc</div><div>unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options</div>
<div>running build_src</div><div>building py_modules sources</div><div>creating build</div><div>creating build/src.macosx-10.3-i386-2.5</div><div>creating build/src.macosx-10.3-i386-2.5/numpy</div><div>creating build/src.macosx-10.3-i386-2.5/numpy/distutils</div>
<div>building extension "numpy.core.multiarray" sources</div><div>creating build/src.macosx-10.3-i386-2.5/numpy/core</div><div>Generating build/src.macosx-10.3-i386-2.5/numpy/core/config.h</div><div>customize NAGFCompiler</div>
<div>customize AbsoftFCompiler</div><div>customize IBMFCompiler</div><div>customize IntelFCompiler</div><div>customize GnuFCompiler</div><div>customize Gnu95FCompiler</div><div>customize Gnu95FCompiler</div><div>customize Gnu95FCompiler using config</div>
<div>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</div><div><br></div><div>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'</div>
<div>gcc: _configtest.c</div><div>powerpc-apple-darwin9-gcc-4.2.1: unrecognized option '-no-cpp-precomp'</div><div>cc1: error: unrecognized command line option "-Wno-long-double"</div><div>i686-apple-darwin9-gcc-4.2.1: unrecognized option '-no-cpp-precomp'</div>
<div>cc1: error: unrecognized command line option "-Wno-long-double"</div><div>lipo: can't figure out the architecture type of: /var/folders/y4/y4M-NZ0GELKlXr2RyIgYgU+++TI/-Tmp-//ccwKb2oD.out</div><div>powerpc-apple-darwin9-gcc-4.2.1: unrecognized option '-no-cpp-precomp'</div>
<div>cc1: error: unrecognized command line option "-Wno-long-double"</div><div>i686-apple-darwin9-gcc-4.2.1: unrecognized option '-no-cpp-precomp'</div><div>cc1: error: unrecognized command line option "-Wno-long-double"</div>
<div>lipo: can't figure out the architecture type of: /var/folders/y4/y4M-NZ0GELKlXr2RyIgYgU+++TI/-Tmp-//ccwKb2oD.out</div><div>failure.</div><div>removing: _configtest.c _configtest.o</div><div>Traceback (most recent call last):</div>
<div> File "setup.py", line 96, in <module></div><div> setup_package()</div><div> File "setup.py", line 89, in setup_package</div><div> configuration=configuration )</div><div> File "/Users/anand/working copies/numpy/numpy/distutils/core.py", line 184, in setup</div>
<div> return old_setup(**new_attr)</div><div> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 151, in setup</div><div> dist.run_commands()</div><div> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 974, in run_commands</div>
<div> self.run_command(cmd)</div><div> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command</div><div> cmd_obj.run()</div><div> File "/Users/anand/working copies/numpy/numpy/distutils/command/build.py", line 40, in run</div>
<div> old_build.run(self)</div><div> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build.py", line 112, in run</div><div> self.run_command(cmd_name)</div><div> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py", line 333, in run_command</div>
<div> self.distribution.run_command(command)</div><div> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 994, in run_command</div><div> cmd_obj.run()</div><div>
File "/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py", line 130, in run</div><div> self.build_sources()</div><div> File "/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py", line 147, in build_sources</div>
<div> self.build_extension_sources(ext)</div><div> File "/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py", line 250, in build_extension_sources</div><div> sources = self.generate_sources(sources, ext)</div>
<div> File "/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py", line 307, in generate_sources</div><div> source = func(extension, build_dir)</div><div> File "numpy/core/setup.py", line 83, in generate_config_h</div>
<div> raise SystemError,"Failed to test configuration. "\</div><div>SystemError: Failed to test configuration. See previous error messages for more information.</div><div>sihpc03:numpy anand$ </div><div><br></div>
</div>