On Mon, Apr 19, 2010 at 10:55 PM, Patrick Marsh <patrickmars...@gmail.com>wrote:
> Greetings, > > Per my previous email, I'm trying to setup the release process for Numpy on > my MacBook Pro. When trying to build Numpy 1.4.1r3 with Python 2.5.4 I get > a broken toolchain error (below). I do not get this error when trying to > build Numpy with Python 2.6.5 - and there is nothing fundamentally different > (that I know of) between my Python 2.5.4 and Python 2.6.5 environments. To > address a previous suggestion I received offline, I do have sufficient > permissions (I've even tried using sudo, just to make sure) and I do have > setuptools installed. > > Any help, would be appreciated. > Try "export CC=/usr/bin/gcc-4.0" before running the build. I had a similar problem last night for scipy where it picks up the right gcc for many modules and then calls plain gcc, which defaults to 4.2 (and that's bad). Cheers, Ralf > > > Patrick > > > ======================================================================== > compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core > -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath > -Inumpy/core/include > -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c' > gcc: _configtest.c > cc1: error: unrecognized command line option "-Wno-long-double" > cc1: error: unrecognized command line option "-Wno-long-double" > lipo: can't figure out the architecture type of: /var/tmp//ccjTUva4.out > cc1: error: unrecognized command line option "-Wno-long-double" > cc1: error: unrecognized command line option "-Wno-long-double" > lipo: can't figure out the architecture type of: /var/tmp//ccjTUva4.out > failure. > removing: _configtest.c _configtest.o > Traceback (most recent call last): > File "setup.py", line 187, in <module> > setup_package() > File "setup.py", line 180, in setup_package > configuration=configuration ) > File "/Users/pmarsh/git/numpy.release/numpy/distutils/core.py", line 186, > 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/pmarsh/git/numpy.release/numpy/distutils/command/build.py", > line 37, 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/pmarsh/git/numpy.release/numpy/distutils/command/build_src.py", line > 152, in run > self.build_sources() > File > "/Users/pmarsh/git/numpy.release/numpy/distutils/command/build_src.py", line > 163, in build_sources > self.build_library_sources(*libname_info) > File > "/Users/pmarsh/git/numpy.release/numpy/distutils/command/build_src.py", line > 298, in build_library_sources > sources = self.generate_sources(sources, (lib_name, build_info)) > File > "/Users/pmarsh/git/numpy.release/numpy/distutils/command/build_src.py", line > 385, in generate_sources > source = func(extension, build_dir) > File "numpy/core/setup.py", line 657, in get_mathlib_info > raise RuntimeError("Broken toolchain: cannot link a simple C program") > RuntimeError: Broken toolchain: cannot link a simple C program > > > > -- > Patrick Marsh > Ph.D. Student / NSSL Liaison to the HWT > School of Meteorology / University of Oklahoma > Cooperative Institute for Mesoscale Meteorological Studies > National Severe Storms Laboratory > http://www.patricktmarsh.com > > > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion > >
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion