Opened 2 years ago

Last modified 2 years ago

#65989 closed defect

wannier90 @3.1.0_0+gcc12+openblas / @3.1.0_0+accelerate+gcc12: Compile using libwannier.a fails on Apple M1 macbook — at Initial Version

Reported by: 8rinG-Yrrej (Yang Ge) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: arm64 Cc: dstrubbe (David Strubbe)
Port: wannier90

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.