Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

error: command 'clang' failed with exit status 1 while installing 'kwant' #2

Open
tlvdberg opened this issue May 24, 2015 · 4 comments

Comments

@tlvdberg
Copy link

Hi I tried to install kwant, but this gives an error:
I reinstalled gcc, I installed cython.

Don't know what it is.

Here's information from the terminal.
Thanks for helping

brew install kwant
==> Installing kwant from michaelwimmer/homebrew-kwant
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Building with an alternative Fortran compiler
This is unsupported.
Warning: No Fortran optimization information was provided. You may want to consider
setting FCFLAGS and FFLAGS or pass the --default-fortran-flags option to
brew install if your compiler is compatible with GCC.

If you like the default optimization level of your compiler, ignore this
warning.
==> Downloading downloads.kwant-project.org/kwant/kwant-1.0.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/kwant-1.0.2.tar.gz
==> Patching
patching file build.conf
==> python setup.py install --prefix=/usr/local/Cellar/kwant/1.0.2
Build configuration was:
User-configured LAPACK and BLAS
User-configured MUMPS


error: command 'clang' failed with exit status 1

@michaelwimmer
Copy link
Collaborator

Can you give me a bit more feedback on your system? What is the version of MacOSX that you are using?

@tlvdberg
Copy link
Author

Hi,
Thanks for answering.
I'm on Yosemite 10.10.3. I installed python etc. via brew (not pip) as was suggested on the kwant website (i installed gcc, because gfortran is not provided separately anymore).

When I do 'brew doctor' I get:

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
/usr/local/lib/libhistory.6.1.dylib
/usr/local/lib/libreadline.6.1.dylib

But when I do 'rm', it says:
rm /usr/local/lib/libhistory.6.1.dylib
override r-xr-xr-x tvdberg/wheel for /usr/local/lib/libhistory.6.1.dylib? n

Should I say yes? Anyway, I don't think this has anything to do with it.

Thanks again.

@michaelwimmer
Copy link
Collaborator

Hi, sorry it took a while. The bug was a bit tricky, for some reasons distutils did not process the numpy include path correctly. This sees to be a bug of python or homebrew, actually.

I created a workaround. b286627 should fix the problem.

@tlvdberg
Copy link
Author

tlvdberg commented Jul 3, 2015

Hi,
Thank you so much.
I'm traveling right now, but I'll try the fix a.s.a.p.
All the best,
Tineke

On Thu, Jul 2, 2015 at 11:39 PM, Michael Wimmer [email protected]
wrote:

Hi, sorry it took a while. The bug was a bit tricky, for some reasons
distutils did not process the numpy include path correctly. This sees to be
a bug of python or homebrew, actually.

I created a workaround. b286627
michaelwimmer@b286627
should fix the problem.


Reply to this email directly or view it on GitHub
https://github.com/michaelwimmer/homebrew-kwant/issues/2#issuecomment-118176024
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants