OpenBLAS fails to compile

Ryan Schmidt ryandesign at macports.org
Sun Jan 19 00:24:02 UTC 2020



On Jan 18, 2020, at 17:20, Uli Wienands wrote:

> This is on OS-X 10.6.8, Macports 2.6.1.

Please "sudo port selfupdate" to get MacPorts 2.6.2.


> I am trying to get py37-numpy installed. One dependency is OpenBLAS which fails to build. It looks like I am running into the same error Ken already reported:58832. This has to do with 64-bit mode.
> 
> Per the stats on the Macports website, open BLAS does build in 32-bit mode on 10.6.

Be aware that those stats are not necessarily up to date and so are not a reliable indicator of whether something currently works. See

https://github.com/macports/macports-webapp/issues/135

Right now, https://ports.macports.org/port/OpenBLAS/summary shows that OpenBLAS has a green status on 10.6 i386, but if you click on it to get more info, you'll see that that refers to version 0.3.6_1, not the current version 0.3.7. However, if we check https://packages.macports.org/OpenBLAS/, it does show a package exists for 0.3.7 for 10.6 i386, so it looks like that is indeed available.


> Soo... how do I make it do that?? I don't see any variant that looks like that. Also, I assume that the whole of numpy  has to be 32 bit for this to work... or?
> 
> The thing is: I have numpy working with python 3.6 (well, it imports & a very cursory test suggests it is not totally broken). So there does seem to be a way to build it on this system.

You can't just decide to build one port or the other 32-bit. If you want to make your entire MacPorts installation 32-bit, you can uninstall all ports, change build_arch to i386 in macports.conf, and then reinstall the ports you want. We do have a 32-bit buildbot worker for 10.6, so hopefully you will be able to get most ports as binaries, just as you can on 64-bit 10.6. But it is possible / likely that some other ports will fail to build in this configuration. (If so, please file bug reports as usual.)

I don't really recommend trying that. It would be better to fix OpenBLAS to work on 10.6 x86_64. Ken says in the ticket that he already figured out a fix. It also says that OpenBLAS-devel already works on 10.6 x86_64, so I recommend you use that instead of OpenBLAS until OpenBLAS is fixed.

sudo port install OpenBLAS-devel




More information about the macports-users mailing list