Opened 6 years ago

Closed 6 years ago

#22112 closed defect (invalid)

OpenBLAS fails to build on macOS Sierra

Reported by: Nathan Dunfield Owned by:
Priority: blocker Milestone: sage-duplicate/invalid/wontfix
Component: build Keywords: OpenBLAS
Cc: Volker Braun, François Bissey, Jean-Pierre Flori Merged in:
Authors: Reviewers: Nathan Dunfield
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

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.

Attachments (3)

openblas-0.2.19.p0.log (1.9 MB) - added by Nathan Dunfield 6 years ago.
osx.def (61.2 KB) - added by Nathan Dunfield 6 years ago.
config.log (39.0 KB) - added by Nathan Dunfield 6 years ago.

Download all attachments as: .zip

Change History (10)

Changed 6 years ago by Nathan Dunfield

Attachment: openblas-0.2.19.p0.log added

comment:1 Changed 6 years ago by François Bissey

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.

Changed 6 years ago by Nathan Dunfield

Attachment: osx.def added

Changed 6 years ago by Nathan Dunfield

Attachment: config.log added

comment:2 in reply to:  1 Changed 6 years ago by Nathan Dunfield

Replying to fbissey:

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.

comment:3 Changed 6 years ago by François Bissey

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.

comment:4 in reply to:  3 Changed 6 years ago by Nathan Dunfield

Replying to fbissey:

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?

comment:5 Changed 6 years ago by François Bissey

Milestone: sage-7.5sage-duplicate/invalid/wontfix
Status: newneeds_review

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

comment:6 Changed 6 years ago by Nathan Dunfield

Reviewers: Nathan Dunfield
Status: needs_reviewpositive_review

comment:7 Changed 6 years ago by Volker Braun

Resolution: invalid
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.