{"action":"created","issue":{"url":"https://api.github.com/repos/LLNL/spack/issues/568","repository_url":"https://api.github.com/repos/LLNL/spack","labels_url":"https://api.github.com/repos/LLNL/spack/issues/568/labels{/name}","comments_url":"https://api.github.com/repos/LLNL/spack/issues/568/comments","events_url":"https://api.github.com/repos/LLNL/spack/issues/568/events","html_url":"https://github.com/LLNL/spack/issues/568","id":141824165,"number":568,"title":"Mix Clang and GNU Fortran on OS-X","user":{"login":"davydden","id":8023934,"avatar_url":"https://avatars.githubusercontent.com/u/8023934?v=3","gravatar_id":"","url":"https://api.github.com/users/davydden","html_url":"https://github.com/davydden","followers_url":"https://api.github.com/users/davydden/followers","following_url":"https://api.github.com/users/davydden/following{/other_user}","gists_url":"https://api.github.com/users/davydden/gists{/gist_id}","starred_url":"https://api.github.com/users/davydden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davydden/subscriptions","organizations_url":"https://api.github.com/users/davydden/orgs","repos_url":"https://api.github.com/users/davydden/repos","events_url":"https://api.github.com/users/davydden/events{/privacy}","received_events_url":"https://api.github.com/users/davydden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-18T10:08:58Z","updated_at":"2016-03-25T17:16:40Z","closed_at":null,"body":"Spack correctly finds compilers on El Capitan\r\n```\r\n$ ./spack compilers\r\n==> Available compilers\r\n-- gcc ----------------------------------------------------------\r\ngcc@5.3.0  gcc@4.2.1\r\n\r\n-- clang --------------------------------------------------------\r\nclang@7.0.2-apple\r\n```\r\nand the `compilers.yaml` looks all right\r\n```\r\ncompilers:\r\n  darwin-x86_64:\r\n    clang@7.0.2-apple:\r\n      cc: /usr/bin/clang\r\n      cxx: /usr/bin/clang++\r\n      f77: null\r\n      fc: null\r\n    gcc@4.2.1:\r\n      cc: /usr/bin/gcc\r\n      cxx: /usr/bin/g++\r\n      f77: null\r\n      fc: null\r\n    gcc@5.3.0:\r\n      cc: null\r\n      cxx: null\r\n      f77: /usr/local/bin/gfortran\r\n      fc: /usr/local/bin/gfortran\r\n```\r\nTo use this on OS-X, one really need a way to specify the usage of \r\n```\r\ncc: /usr/bin/clang\r\ncxx: /usr/bin/clang++\r\n``` \r\ntogether with\r\n```\r\nf77: /usr/local/bin/gfortran\r\nfc: /usr/local/bin/gfortran\r\n```\r\nwhen building, say, OpenMPI with fortran support. That also includes changing the installation prefix `darwin-x86_64/gcc-5.3.0/` to something like `darwin-x86_64/gcc-5.3.0-clang-7.0.2/`.\r\n\r\nAs a current workaround I guess one can edit `compilers.yaml` manually to something like\r\n```\r\ncompilers:\r\n  darwin-x86_64:\r\n    clang@7.0.2-apple:\r\n      cc: /usr/bin/clang\r\n      cxx: /usr/bin/clang++\r\n      f77: /usr/local/bin/gfortran\r\n      fc: /usr/local/bin/gfortran\r\n```\r\nand then make `clang` default."},"comment":{"url":"https://api.github.com/repos/LLNL/spack/issues/comments/201374621","html_url":"https://github.com/LLNL/spack/issues/568#issuecomment-201374621","issue_url":"https://api.github.com/repos/LLNL/spack/issues/568","id":201374621,"user":{"login":"davydden","id":8023934,"avatar_url":"https://avatars.githubusercontent.com/u/8023934?v=3","gravatar_id":"","url":"https://api.github.com/users/davydden","html_url":"https://github.com/davydden","followers_url":"https://api.github.com/users/davydden/followers","following_url":"https://api.github.com/users/davydden/following{/other_user}","gists_url":"https://api.github.com/users/davydden/gists{/gist_id}","starred_url":"https://api.github.com/users/davydden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davydden/subscriptions","organizations_url":"https://api.github.com/users/davydden/orgs","repos_url":"https://api.github.com/users/davydden/repos","events_url":"https://api.github.com/users/davydden/events{/privacy}","received_events_url":"https://api.github.com/users/davydden/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T17:16:40Z","updated_at":"2016-03-25T17:16:40Z","body":"> I'm not sure how I feel about dropping %compiler and compilers.yaml though. I guess this would make them obsolete.\r\n\r\nI think dropping `%` would make it difficult (if not impossible) to specify different compilers to be used for different dependencies. I would keep `%` and also `compilers.yaml` file."}}