[AstroPy] error building astropy on Lion
Jean-Claude Passy
jcpassy at gmail.com
Wed Jun 20 13:05:38 EDT 2012
Sorry, when I sent the first email I had used 'gcc'. I then specified
$CC, and still got the same error even though it was picking the correct
one this time (see below).
Cheers,
JC
----------------------------------------------------------------------------------------------------------------------------------
/usr/bin/gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -DECHO -DWCSTRIG_MACRO -DASTROPY_WCS_BUILD
-D_GNU_SOURCE -DWCSVERSION=4.10 -DNDEBUG -UDEBUG
-I/Users/jcpassy/Work/yt-x86_64/lib/python2.7/site-packages/numpy/core/include
-Iastropy/wcs/src/wcslib/C -Iastropy/wcs/include
-I/Users/jcpassy/Work/yt-x86_64/include/python2.7 -c
astropy/wcs/src/wcslib/C/wcserr.c -o
build/temp.macosx-10.4-x86_64-2.7/astropy/wcs/src/wcslib/C/wcserr.o
astropy/wcs/src/wcslib/C/wcserr.c:160: internal compiler error:
Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
error: command '/usr/bin/gcc' failed with exit status 1
----------------------------------------
Command /Users/jcpassy/Work/yt-x86_64/bin/python2.7 -c "import
setuptools;__file__='/Users/jcpassy/Work/build/astropy/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --single-version-externally-managed
--record
/var/folders/t8/81q6fg4d1fz49ylm0ycp3k2h0000gp/T/pip-S6j7of-record/install-record.txt
failed with error code 1 in /Users/jcpassy/Work/build/astropy
Exception information:
Traceback (most recent call last):
File
"/Users/jcpassy/Work/yt-x86_64/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py",
line 104, in main
status = self.run(options, args)
File
"/Users/jcpassy/Work/yt-x86_64/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py",
line 250, in run
requirement_set.install(install_options, global_options)
File
"/Users/jcpassy/Work/yt-x86_64/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py",
line 1133, in install
requirement.install(install_options, global_options)
File
"/Users/jcpassy/Work/yt-x86_64/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py",
line 577, in install
cwd=self.source_dir, filter_stdout=self._filter_install,
show_stdout=False)
File
"/Users/jcpassy/Work/yt-x86_64/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py",
line 256, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command /Users/jcpassy/Work/yt-x86_64/bin/python2.7
-c "import
setuptools;__file__='/Users/jcpassy/Work/build/astropy/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --single-version-externally-managed
--record
/var/folders/t8/81q6fg4d1fz49ylm0ycp3k2h0000gp/T/pip-S6j7of-record/install-record.txt
failed with error code 1 in /Users/jcpassy/Work/build/astropy
----------------------------------------------------------------------------------------------------------------------------------
On 6/20/12 12:50 PM, Tim Jenness wrote:
> On Wed, Jun 20, 2012 at 9:41 AM, Jean-Claude Passy <jcpassy at gmail.com> wrote:
>
>> ----------------------------------------------------------------- [12:36:08]
>> Astrobook2:$ /usr/bin/gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC)
>> 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
>> -----------------------------------------------------------------
>> and
>>
>> ----------------------------------------------------------------- [12:37:14]
>> Astrobook2:$ which gcc /opt/mesasdk/bin/gcc [12:37:17] Astrobook2:$ gcc
>> --version gcc (GCC) 4.7.0 20111114 (experimental)
>> -----------------------------------------------------------------
>> The gcc 4.7 is part of a package I had to install for another code. This is
>> why I used $CC to specify which compiler to use.
>>
> but the compile line says it's using plain "gcc" rather than
> "/usr/bin/gcc" so it seems to be picking up your experimental
> compiler. If you remove /opt/mesasdk/bin from your path do things
> build ok?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20120620/dcbdc974/attachment.html>
More information about the AstroPy
mailing list