Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No environment variable FC in OS X #739

Open
chvillanuevap opened this issue May 1, 2015 · 1 comment
Open

No environment variable FC in OS X #739

chvillanuevap opened this issue May 1, 2015 · 1 comment

Comments

@chvillanuevap
Copy link
Contributor

I tried to build BLAS from source in OS X. I know I can use the Accelerate version, but I did this for testing purposes. I got the following error:

2015/04/30 18:33:38 - INFO: [package:run_job] -- The Fortran compiler identification is unknown
2015/04/30 18:33:38 - INFO: [package:run_job] CMake Error at CMakeLists.txt:2 (project):
2015/04/30 18:33:38 - INFO: [package:run_job]   No CMAKE_Fortran_COMPILER could be found.
2015/04/30 18:33:38 - INFO: [package:run_job]
2015/04/30 18:33:38 - INFO: [package:run_job]   Tell CMake where to find the compiler by setting either the environment
2015/04/30 18:33:38 - INFO: [package:run_job]   variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
2015/04/30 18:33:38 - INFO: [package:run_job]   path to the compiler, or to the compiler name if it is in the PATH.
2015/04/30 18:33:38 - INFO: [package:run_job]
2015/04/30 18:33:38 - INFO: [package:run_job]
2015/04/30 18:33:38 - INFO: [package:run_job] -- Configuring incomplete, errors occurred!
2015/04/30 18:33:38 - INFO: [package:run_job] See also "/Users/lindseybugbee/.hashdist/tmp/blas-lfhzsgupjjp6/CMakeFiles/CMakeOutput.log".
2015/04/30 18:33:38 - INFO: [package:run_job] See also "/Users/lindseybugbee/.hashdist/tmp/blas-lfhzsgupjjp6/CMakeFiles/CMakeError.log".
2015/04/30 18:33:38 - ERROR: [package:run_job] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1
2015/04/30 18:33:38 - ERROR: [package:run_job] command failed (code=1); raising

It seems from the build log that OS X does not set the environment variable FC. This is troublesome not only for BLAS, but for any library that depends on gfortran.

I believe gfortran does not come bundled with XCode anymore; however, the package is available through Homebrew. I'm opening this issue because I do not know what is the best way to solve the dependency on gfortran. I could set FC to gfortran in the prologue but that would be a profile dependent fix.

@certik
Copy link
Member

certik commented May 1, 2015

You have to set FC in your profile. After we fix hashdist/hashdist#328, setting compilers will become a bit easier, but one way or another, you need to have a working Fortran compiler to build these.

Now when #727 is fixed, we should use Hashdist to build the compiler, and then use it.

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

No branches or pull requests

2 participants