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

OpenBLAS fails to build on macOS Sierra #22112

Closed
NathanDunfield opened this issue Dec 30, 2016 · 7 comments
Closed

OpenBLAS fails to build on macOS Sierra #22112

NathanDunfield opened this issue Dec 30, 2016 · 7 comments

Comments

@NathanDunfield
Copy link

The package openblas-0.2.19.p0 in SageMath 7.5rc1 fails to compile on a Mac Pro running macOS Sierra with Xcode 8.2.1. See attached log for details.

CC: @vbraun @kiwifb @jpflori

Component: build

Keywords: OpenBLAS

Reviewer: Nathan Dunfield

Issue created by migration from https://trac.sagemath.org/ticket/22112

@kiwifb
Copy link
Member

kiwifb commented Dec 30, 2016

comment:1

Attachment: openblas-0.2.19.p0.log

Hum... Curious, I have re-tested on my macbook running the latest sierra and xcode (8.2.1 here too) and I don't have that problem. The only real obvious difference is sandybridge for you and halswell for me.
Was it a build from scratch or an incremental upgrade from an older sage? From the fact you are downloading openblas I would say the later.
Could you find the file osx.def in the build folder and post it please.

@NathanDunfield
Copy link
Author

Attachment: osx.def.gz

@NathanDunfield
Copy link
Author

comment:2

Attachment: config.log

Replying to @kiwifb:

Was it a build from scratch or an incremental upgrade from an older sage?

It was build from scratch in a brand new clone of the development branch from the git repo. I have uploaded the file you requested, as well as the global config.log in case that is helpful. The CPU on this machine is a Xeon E5-1680 v2.

@kiwifb
Copy link
Member

kiwifb commented Dec 30, 2016

comment:3

Ouch, you have brew on your system. It seems that you have things set up to use clang from the system and gfortran from brew, but usually the presence of brew in its default location brings trouble.
I now that brew recommends installing itself in /usr/local so it just works out of the box. But the reality of it, is that installing it there means that it will interfere with competing systems or stuff that doesn't expect it.

@NathanDunfield
Copy link
Author

comment:4

Replying to @kiwifb:

Ouch, you have brew on your system. It seems that you have things set up to use clang from the system and gfortran from brew.

So I removed brew's copy of gfortran (in fact, it's entire copy of gcc) and now openblas builds! I'm not sure why openblas was finding the wrong gfortran since even during the initial build I had:

% ./sage -sh
Note: SAGE_ROOT=/pkgs/sage-git
> which gfortran
/pkgs/sage-git/local/bin/gfortran

Regardless, many thanks. What's the right was of closing this ticket in this situation?

@kiwifb
Copy link
Member

kiwifb commented Dec 30, 2016

comment:5

Put your name in the reviewer field and give it a positive review now.

@kiwifb kiwifb removed this from the sage-7.5 milestone Dec 30, 2016
@NathanDunfield
Copy link
Author

Reviewer: Nathan Dunfield

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

No branches or pull requests

3 participants