Opened 3 years ago

Closed 3 years ago

#63032 closed defect (worksforme)

OpenBLAS @0.3.15_5+gcc10+lapack+native

Reported by: petrvokac Owned by: NicosPavlov
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: michaelld (Michael Dickens)
Port: OpenBLAS

Description (last modified by reneeotten (Renee Otten))

:info:build ld: warning: dylib (/opt/local/lib/gcc10/libgfortran.dylib) was built for newer macOS version (11.3) than being linked (11.0)
...
:info:build OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 ./sblat3 < ./sblat3.dat
:info:build dyld: Library not loaded: @rpath/libgfortran.5.dylib
:info:build   Referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_OpenBLAS/OpenBLAS/work/xianyi-OpenBLAS-904f9a2/test/./sblat1
:info:build   Reason: image not found
:info:build make[1]: *** [level1] Abort trap: 6
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build dyld: Library not loaded: @rpath/libgfortran.5.dylib

uname -a Darwin pmm.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 arm64

Attachments (1)

main.log (5.8 MB) - added by petrvokac 3 years ago.

Change History (4)

Changed 3 years ago by petrvokac

Attachment: main.log added

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

Cc: michaelld added
Description: modified (diff)
Owner: set to NicosPavlov
Port: OpenBLAS added
Status: newassigned

comment:2 Changed 3 years ago by NicosPavlov

The issues with @rpath should in principle be fixed (see #62856 and #62727). Just to be sure, are the ports up-to-date?

Also, is there a specific reason to use gcc10? The default variant is currently gcc11. If not, you can install OpenBLAS with the default compiler with:

sudo port install OpenBLAS +native

In case you want to forgo the build, it is also possible to drop the native variant, and a pre-build binary should be available, the port builds fine on the buildbot, but possibly at the expense of some performance. This does not solve the exact problem, but can work as a workaround.

comment:3 Changed 3 years ago by NicosPavlov

Resolution: worksforme
Status: assignedclosed

Posting the answer from the user received by email for reference:

No, I do not know why it is build with gcc10.

So I did:

sudo port uninstall OpenBLAS

sudo port clean OpenBLAS

sudo port rev-upgrade

and it was successful.

I always do "port clean" when something goes wrong. But in this case it was necessary to uninstall the package in order to allow new variant to apply. I would just suggest that "port upgrade outdated" should do this automatically.

Closing the ticket as worksforme considering that the default compiler is working.

Note: See TracTickets for help on using tickets.