Opened 9 years ago

Closed 4 years ago

#48941 closed defect (fixed)

py27-astropy: Compiler specified by CC environment variable will fail to compile astropy

Reported by: shj.wallstrom@… Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: py-astropy

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I've been trying to install py27-astropy for days now but I get the following error:

Error: org.macports.build for port py27-astropy returned: command execution failed
Please see the log file for port py27-astropy for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-astropy/py27-astropy/main.log

Checking this log file tells me (eventually):

:info:build Compiler specified by CC environment variable
:info:build                     (/usr/bin/llvm-gcc-4.2:i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
:info:build Copyright (C) 2007 Free Software Foundation, Inc.
:info:build This is free software; see the source for copying conditions.  There is NO
:info:build warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.) will fail to compile astropy.
:info:build                     Please set CC=clang and try again.
:info:build                     You can do this, for example, by running:
:info:build 
:info:build                         CC=clang python setup.py <command>
:info:build 
:info:build                     where <command> is the command you ran.
:info:build 
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-astropy/py27-astropy/work/astropy-1.0.4" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg --offline --no-git build --use-system-cfitsio --use-system-expat --use-system-wcslib --use-system-erfa

from which I gather that the compiler clang is necessary. I did not appear to have this compiler, so I installed it via macports (clang-3.4), but still get the same error trying to install astropy. I cannot find any info about how to tell macports to use a different compiler here.

Attachments (1)

main.log (58.5 KB) - added by shj.wallstrom@… 9 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to robitaille@…
Port: py27-astropy added

Has duplicate #48942.

Please attach the main.log file.

Changed 9 years ago by shj.wallstrom@…

Attachment: main.log added

comment:2 Changed 5 years ago by kurthindenburg (Kurt Hindenburg)

Owner: robitaille@… deleted
Status: newassigned

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to Schamschula
Port: py-astropy added; py27-astropy removed
Summary: Compiler error trying to install Astropypy27-astropy: Compiler specified by CC environment variable will fail to compile astropy

So *llvm-gcc42 needs to be added to compiler.blacklist.

comment:4 Changed 4 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In 1714ea52ff5cf63fc5352b2f097d98a8cafa8413/macports-ports (master):

py-astropy: blacklist *llvm-gcc42

Closes: #48941

Note: See TracTickets for help on using tickets.