Opened 4 years ago
Closed 3 years ago
#61700 closed defect (fixed)
OpenBLAS @0.3.12: No rule to make target `../kernel/arm64/amin.S', needed by `samin_k.o'
Reported by: | Gregory-Gelfond (Gregory Gelfond) | Owned by: | NicosPavlov |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | arm64 | Cc: | michaelld (Michael Dickens), radarhere (Andrew Murray), mascguy (Christopher Nielsen) |
Port: | OpenBLAS |
Description
sudo port install py38-matplotlib +cairo +ghostscript +latex +tkinter +webagg
fails when attempting to build openblas:
---> Fetching archive for OpenBLAS ---> Attempting to fetch OpenBLAS-0.3.12_0+gccdevel+lapack.darwin_20.arm64.tbz2 from https://packages.macports.org/OpenBLAS ---> Attempting to fetch OpenBLAS-0.3.12_0+gccdevel+lapack.darwin_20.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/OpenBLAS/OpenBLAS ---> Attempting to fetch OpenBLAS-0.3.12_0+gccdevel+lapack.darwin_20.arm64.tbz2 from https://mse.uk.packages.macports.org/OpenBLAS ---> Building OpenBLAS Error: Failed to build OpenBLAS: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_OpenBLAS/OpenBLAS/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port py38-matplotlib failed
I've attached the main.log for reference.
Attachments (3)
Change History (16)
Changed 4 years ago by Gregory-Gelfond (Gregory Gelfond)
comment:1 Changed 4 years ago by mf2k (Frank Schima)
Cc: | NicosPavlov removed |
---|---|
Keywords: | arm64 added; bigsur arm664 removed |
Owner: | set to NicosPavlov |
Status: | new → assigned |
comment:3 Changed 4 years ago by radarhere (Andrew Murray)
Cc: | radarhere added |
---|
comment:4 Changed 4 years ago by radarhere (Andrew Murray)
If it's helpful to anyone, I found that port install OpenBLAS +native
works for me.
comment:5 Changed 4 years ago by michaelld (Michael Dickens)
Changed 4 years ago by jmroot (Joshua Root)
Attachment: | Portfile-WIP.diff added |
---|
Partly complete fix
comment:6 Changed 4 years ago by jmroot (Joshua Root)
The attached patch should be a start at least. It should also be safe to commit as long as the set blas_arch "???"
is not uncommented. At minimum, someone needs to figure out the correct arch name to use there, and of course test it.
comment:7 Changed 4 years ago by mascguy (Christopher Nielsen)
It looks like OpenBLAS is being built with the following variants on ARM Macs, when implicitly installed as a dependency: +gccdevel+lapack+native
. And that's causing oodles of buildbot failures.
Does anyone know why those specific variants are selected ONLY for an ARM build? Is ARM support only included in the development version of GCC at the moment...?
comment:8 Changed 4 years ago by mascguy (Christopher Nielsen)
Cc: | mascguy added |
---|
comment:9 Changed 4 years ago by mascguy (Christopher Nielsen)
This may be causing a downstream issue, when generating Python bindings for opencv4
:
issue:62744 - py39-opencv4 4.5.2: staging into destroot fails
comment:10 Changed 4 years ago by mascguy (Christopher Nielsen)
Many changes have been made over the past few weeks, and OpenBLAS is now building on our buildbot.
Gregory, can you try reinstalling?
comment:11 Changed 4 years ago by NicosPavlov
Also, based on other reports, OpenBLAS for M1 chips can be built with different targets: https://github.com/danielchalef/openblas-benchmark-m1. However, it should fall down to ARMV8 or VORTEX (they are equivalent in the current code). If someone is willing to test the fact of checking the architecture in the Portfile (see diff attached), that would be really helpful.
Changed 4 years ago by NicosPavlov
Attachment: | patch-Portfile-ARM.diff added |
---|
comment:12 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Port: | OpenBLAS added; openblas removed |
---|---|
Summary: | OpenBlas fails to build on macOS BigSur (Apple Silicon) → OpenBLAS @0.3.12: No rule to make target `../kernel/arm64/amin.S', needed by `samin_k.o' |
comment:13 Changed 3 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
OpenBLAS is at 0.3.15 and about to be upgraded to 0.3.16. This issue is about 0.3.12, which is somewhat old now. I'm closing this as "fixed" since it probably has been in the interim. If anybody has this issue still, please update us with the new build log and we'll see what we can do.