kwant-project / homebrew-kwant

Homebrew repository for installing kwant
0 stars 2 forks source link

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

Open tlvdberg opened 9 years ago

tlvdberg commented 9 years ago

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 commented 9 years ago

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

tlvdberg commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 notifications@github.com 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 https://github.com/michaelwimmer/homebrew-kwant/commit/b286627d3d3cf9a18ef660e7e03a9e93ea18e393 should fix the problem.

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