#62856 closed defect (fixed)
OpenBLAS dyld error on Big Sur M1
Reported by: | diekhans (Mark Diekhans) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | NicosPavlov, michaelld (Michael Dickens), Schamschula (Marius Schamschula) | |
Port: | OpenBLAS |
Description
port install OpenBLAS +native
gets error: "Library not loaded: @rpath/libgfortran.5.dylib"
when building OpenBLAS on Big Sur M1, however the file is there
/opt/local/lib/gcc-devel/libgfortran.5.dylib: Mach-O 64-bit dynamically linked shared library arm64 /opt/local/lib/libgcc/libgfortran.5.dylib: Mach-O 64-bit dynamically linked shared library arm64 /opt/local/lib/libgfortran.5.dylib: Mach-O 64-bit dynamically linked shared library arm64 /opt/local/lib/gcc10/libgfortran.5.dylib: Mach-O 64-bit dynamically linked shared library arm64
: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 :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/./sblat2 :info:build Reason: image not found :info:build /bin/sh: line 1: 4444 Abort trap: 6 OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 ./sblat2 < ./sblat2.dat
Attachments (1)
Change History (6)
Changed 4 years ago by diekhans (Mark Diekhans)
comment:1 Changed 4 years ago by kencu (Ken)
comment:2 Changed 3 years ago by diekhans (Mark Diekhans)
thanks!!
It seems like gcc10 is providing a symlink to the gcc-devel version:
% ls -l /opt/local/lib/*/libgfortran.5.dylib lrwxr-xr-x 1 root admin 41 Apr 22 09:31 /opt/local/lib/gcc-devel/libgfortran.5.dylib@ -> /opt/local/lib/libgcc/libgfortran.5.dylib lrwxr-xr-x 1 root admin 41 Apr 29 04:34 /opt/local/lib/gcc10/libgfortran.5.dylib@ -> /opt/local/lib/libgcc/libgfortran.5.dylib -rwxr-xr-x 1 root admin 1095424 Apr 22 08:54 /opt/local/lib/libgcc/libgfortran.5.dylib* % port provides /opt/local/lib/*/libgfortran.5.dylib /opt/local/lib/gcc-devel/libgfortran.5.dylib is provided by: gcc-devel /opt/local/lib/gcc10/libgfortran.5.dylib is provided by: gcc10 /opt/local/lib/libgcc/libgfortran.5.dylib is provided by: libgcc-devel
will uninstall all and see what happens.
comment:3 Changed 3 years ago by diekhans (Mark Diekhans)
removing libgcc-devel gcc10 now produxes
% ls -l /opt/local/lib/*/libgfortran.5.dylib lrwxr-xr-x 1 root admin 41 Apr 29 04:34 /opt/local/lib/gcc10/libgfortran.5.dylib@ -> /opt/local/lib/libgcc/libgfortran.5.dylib -rwxr-xr-x 1 root admin 1094864 Apr 29 04:08 /opt/local/lib/libgcc/libgfortran.5.dylib* % port provides /opt/local/lib/*/libgfortran.5.dylib /opt/local/lib/gcc10/libgfortran.5.dylib is provided by: gcc10 /opt/local/lib/libgcc/libgfortran.5.dylib is provided by: libgcc10
seems like libgcc-develop will overwrite libgcc10
comment:4 Changed 3 years ago by NicosPavlov
Resolution: | → fixed |
---|---|
Status: | new → closed |
Should be fixed with changes made in ticket #62727.
comment:5 Changed 3 years ago by Schamschula (Marius Schamschula)
Cc: | Schamschula added |
---|
Note: See
TracTickets for help on using
tickets.
This was an issue with gcc/libgcc-devel, but these deps were switched to gcc/libcc10 which does not show this issue.
at least, that should be the current defaulting, assuming nothing is broken there.