<div class="gmail_quote">On Fri, May 30, 2008 at 8:10 AM, Anand Patil &lt;<a href="mailto:anand.prabhakar.patil@gmail.com" target="_blank">anand.prabhakar.patil@gmail.com</a>&gt; 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&#39;m getting the following error:</div><div><span style="font-family:Helvetica;font-size:12px"><br>
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now &quot;10.3&quot; but &quot;10.5&quot; during configure<br><br>on Leopard using system Python when trying to compile some third-party modules but not others. I&#39;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 &#39;numpy/distutils&#39;: &#39;site.cfg&#39;</div>
<div>F2PY Version 2_5245</div><div>blas_opt_info:</div><div>&nbsp;&nbsp;FOUND:</div><div>&nbsp;&nbsp; &nbsp;extra_link_args = [&#39;-Wl,-framework&#39;, &#39;-Wl,Accelerate&#39;]</div><div>&nbsp;&nbsp; &nbsp;define_macros = [(&#39;NO_ATLAS_INFO&#39;, 3)]</div><div>
&nbsp;&nbsp; &nbsp;extra_compile_args = [&#39;-msse3&#39;, &#39;-I/System/Library/Frameworks/vecLib.framework/Headers&#39;]</div><div><br></div><div>lapack_opt_info:</div><div>&nbsp;&nbsp;FOUND:</div><div>&nbsp;&nbsp; &nbsp;extra_link_args = [&#39;-Wl,-framework&#39;, &#39;-Wl,Accelerate&#39;]</div>
<div>&nbsp;&nbsp; &nbsp;define_macros = [(&#39;NO_ATLAS_INFO&#39;, 3)]</div><div>&nbsp;&nbsp; &nbsp;extra_compile_args = [&#39;-msse3&#39;]</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 &quot;numpy.core.multiarray&quot; 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: &#39;-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&#39;</div>
<div>gcc: _configtest.c</div><div>powerpc-apple-darwin9-gcc-4.2.1: unrecognized option &#39;-no-cpp-precomp&#39;</div><div>cc1: error: unrecognized command line option &quot;-Wno-long-double&quot;</div><div>i686-apple-darwin9-gcc-4.2.1: unrecognized option &#39;-no-cpp-precomp&#39;</div>
<div>cc1: error: unrecognized command line option &quot;-Wno-long-double&quot;</div><div>lipo: can&#39;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 &#39;-no-cpp-precomp&#39;</div>
<div>cc1: error: unrecognized command line option &quot;-Wno-long-double&quot;</div><div>i686-apple-darwin9-gcc-4.2.1: unrecognized option &#39;-no-cpp-precomp&#39;</div><div>cc1: error: unrecognized command line option &quot;-Wno-long-double&quot;</div>
<div>lipo: can&#39;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>&nbsp;&nbsp;File &quot;setup.py&quot;, line 96, in &lt;module&gt;</div><div>&nbsp;&nbsp; &nbsp;setup_package()</div><div>&nbsp;&nbsp;File &quot;setup.py&quot;, line 89, in setup_package</div><div>&nbsp;&nbsp; &nbsp;configuration=configuration )</div><div>&nbsp;&nbsp;File &quot;/Users/anand/working copies/numpy/numpy/distutils/core.py&quot;, line 184, in setup</div>
<div>&nbsp;&nbsp; &nbsp;return old_setup(**new_attr)</div><div>&nbsp;&nbsp;File &quot;/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py&quot;, line 151, in setup</div><div>&nbsp;&nbsp; &nbsp;dist.run_commands()</div><div>&nbsp;&nbsp;File &quot;/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py&quot;, line 974, in run_commands</div>
<div>&nbsp;&nbsp; &nbsp;self.run_command(cmd)</div><div>&nbsp;&nbsp;File &quot;/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py&quot;, line 994, in run_command</div><div>&nbsp;&nbsp; &nbsp;cmd_obj.run()</div><div>&nbsp;&nbsp;File &quot;/Users/anand/working copies/numpy/numpy/distutils/command/build.py&quot;, line 40, in run</div>
<div>&nbsp;&nbsp; &nbsp;old_build.run(self)</div><div>&nbsp;&nbsp;File &quot;/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build.py&quot;, line 112, in run</div><div>&nbsp;&nbsp; &nbsp;self.run_command(cmd_name)</div><div>&nbsp;&nbsp;File &quot;/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py&quot;, line 333, in run_command</div>
<div>&nbsp;&nbsp; &nbsp;self.distribution.run_command(command)</div><div>&nbsp;&nbsp;File &quot;/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py&quot;, line 994, in run_command</div><div>&nbsp;&nbsp; &nbsp;cmd_obj.run()</div><div>
&nbsp;&nbsp;File &quot;/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py&quot;, line 130, in run</div><div>&nbsp;&nbsp; &nbsp;self.build_sources()</div><div>&nbsp;&nbsp;File &quot;/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py&quot;, line 147, in build_sources</div>
<div>&nbsp;&nbsp; &nbsp;self.build_extension_sources(ext)</div><div>&nbsp;&nbsp;File &quot;/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py&quot;, line 250, in build_extension_sources</div><div>&nbsp;&nbsp; &nbsp;sources = self.generate_sources(sources, ext)</div>
<div>&nbsp;&nbsp;File &quot;/Users/anand/working copies/numpy/numpy/distutils/command/build_src.py&quot;, line 307, in generate_sources</div><div>&nbsp;&nbsp; &nbsp;source = func(extension, build_dir)</div><div>&nbsp;&nbsp;File &quot;numpy/core/setup.py&quot;, line 83, in generate_config_h</div>
<div>&nbsp;&nbsp; &nbsp;raise SystemError,&quot;Failed to test configuration. &quot;\</div><div>SystemError: Failed to test configuration. See previous error messages for more information.</div><div>sihpc03:numpy anand$&nbsp;</div><div><br></div>
</div>