[petsc-users] ex19: Segmentation Violation when run with MUMPS on MacOS (arm64)

Zongze Yang yangzongze at gmail.com
Mon Apr 1 12:43:16 CDT 2024


Thank you for your update.

I found some links that suggest this issue is related to the Apple linker, which is causing problems with Fortran linking.

1. https://urldefense.us/v3/__https://github.com/open-mpi/ompi/issues/12427__;!!G_uCfscf7eWS!bHY4uqpTfwl0jKopATQs3gw--TZSBmDp0Lb1gzDBeEu4ZB_zTph-jfw49yIr3jvPx0YEhQbk1PjYbGYVpjjms6Wb$ 
2. https://urldefense.us/v3/__https://x.com/science_dot/status/1768667417553547635?s=46__;!!G_uCfscf7eWS!bHY4uqpTfwl0jKopATQs3gw--TZSBmDp0Lb1gzDBeEu4ZB_zTph-jfw49yIr3jvPx0YEhQbk1PjYbGYVptASYXS2$  

Best wishes,
Zongze

> On 2 Apr 2024, at 01:15, Satish Balay <balay at mcs.anl.gov> wrote:
> 
> On Mon, 1 Apr 2024, Zongze Yang wrote:
> 
>> 
>> I noticed this in the config.log of OpenMPI:
>> ```
>> configure:30230: checking to see if mpifort compiler needs additional linker flags
>> configure:30247: gfortran -o conftest -fPIC -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -g -O0 -fallow-argument-mismatch  -Wl,-flat_namespace -Wl,-commons,use_dylibs  conftest.f90  >&5
>> ld: warning: -commons use_dylibs is no longer supported, using error treatment instead
>> configure:30247: $? = 0
>> configure:30299: result: -Wl,-commons,use_dylibs
>> ```
>> So, I find it odd that this flag isn't picked up on your platform, as it only checked the exit value.
> 
> I get:
> 
> configure:30247: gfortran -o conftest -fPIC -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -g -O0 -fallow-argument-mismatch  -Wl,-flat_namespace -Wl,-commons,use_dylibs  conftest.f90  >&5
> ld: unknown options: -commons 
> collect2: error: ld returned 1 exit status
> configure:30247: $? = 1
> configure: failed program was:
> | program test
> |     integer :: i
> | end program
> configure:30299: result: none
> 
> Note, I have and older xcode-15/CLT version:
> 
> petsc at npro ~ % clang --version
> Apple clang version 15.0.0 (clang-1500.1.0.2.5)
> Target: arm64-apple-darwin23.3.0
> Thread model: posix
> InstalledDir: /Library/Developer/CommandLineTools/usr/bin
> 
> Satish

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240402/62df75d4/attachment.html>


More information about the petsc-users mailing list