[MacPorts] #65989: wannier90 @3.1.0_0+gcc12+openblas / @3.1.0_0+accelerate+gcc12: Compile using libwannier.a fails on Apple M1 macbook

MacPorts noreply at macports.org
Thu Oct 13 17:31:47 UTC 2022


#65989: wannier90 @3.1.0_0+gcc12+openblas / @3.1.0_0+accelerate+gcc12: Compile
using libwannier.a fails on Apple M1 macbook
-------------------------+-----------------------
 Reporter:  8rinG-Yrrej  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.7.2
 Keywords:  arm64        |       Port:  wannier90
-------------------------+-----------------------
 wannier90 @3.1.0_0+gcc12+openblas / @3.1.0_0+accelerate+gcc12: Compile
 using libwannier.a fails on Apple M1 macbook

 Compilations using the Wannier90 example program, under official
 distribution "test-suite/library-mode-test/test_library.F90", with
 "libwannier.a" installed by macport fails in different ways for the two
 variants reported. The executables "*.x" works fine. It seems that
 "make.inc" for wannier90 is not setup properly, because I can compile
 wannier90 myself with macport's gfortran-mp-12 and everything works fine.
 Below are more detailed symptoms for the two variants.

 For @3.1.0_0+gcc12+openblas, the compilation succeeds, but at runtime the
 program segfaults. The compilation command is
 "gfortran-mp-12 test_library.F90 /opt/local/lib/libwannier.a -llapack
 -lblas -o test_library_serial.x"
 And the runtime error, occured upon calling "wannier_run" in the program,
 is
 "Program received signal SIGSEGV: Segmentation fault - invalid memory
 reference."

 For @3.1.0_0+accelerate+gcc12, the compilation fails due to symbols not
 found for arm64. The compilation command is
 "gfortran-mp-12  test_library.F90 -ff2c /opt/local/lib/libwannier.a
 -framework Accelerate -o test_library_serial.x"
 The error is mostly
 "Undefined symbols for architecture arm64: __wannier_run__ ...
 __wannier_setup__ "

 Thanks.

-- 
Ticket URL: <https://trac.macports.org/ticket/65989>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list