<!DOCTYPE html>
<!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">
On my Mac at configure time I get clang: error: linker command failed with exit code 1 (use -v to see invocation) Possible ERROR while running linker: exit code 1 when trying to link a test case against the lapack libraries. I cannot generate
</div>
<!-- Preheader Text : END -->
<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerStart</div>
<!--[if ((ie)|(mso))]>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 16px 0px 16px 0px; direction: ltr" ><tr><td>
<table border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%; border-radius:4px; border-top:4px solid #90a4ae;background-color:#D0D8DC;"><tr><td valign="top">
<table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px">
<tr><td style="color:#000000; font-family: 'Arial', sans-serif; font-weight:bold; font-size:14px; direction: ltr">
This Message Is From an External Sender
</td></tr>
<tr><td style="color:#000000; font-weight:normal; font-family: 'Arial', sans-serif; font-size:12px; direction: ltr">
This message came from outside your organization.
</td></tr>
</table>
</td></tr></table>
</td></tr></table>
<![endif]-->
<![if !((ie)|(mso))]>
<div dir="ltr" id="pfptBannerze6rwfr" style="all: revert !important; display:block !important; text-align: left !important; margin:16px 0px 16px 0px !important; padding:8px 16px 8px 16px !important; border-radius: 4px !important; min-width: 200px !important; background-color: #D0D8DC !important; background-color: #D0D8DC; border-top: 4px solid #90a4ae !important; border-top: 4px solid #90a4ae;">
<div id="pfptBannerze6rwfr" style="all: unset !important; float:left !important; display:block !important; margin: 0px 0px 1px 0px !important; max-width: 600px !important;">
<div id="pfptBannerze6rwfr" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-weight:bold !important; font-weight:bold; font-size:14px !important; line-height:18px !important; line-height:18px">
This Message Is From an External Sender
</div>
<div id="pfptBannerze6rwfr" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-weight:normal; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-size:12px !important; line-height:18px !important; line-height:18px; margin-top:2px !important;">
This message came from outside your organization.
</div>
</div>
<div style="clear: both !important; display: block !important; visibility: hidden !important; line-height: 0 !important; font-size: 0.01px !important; height: 0px"> </div>
</div>
<![endif]>
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerEnd</div>
<!-- Email Banner : END -->
<!-- BaNnErBlUrFlE-BoDy-end -->
<html>
<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
#pfptBannerze6rwfr { all: revert !important; display: block !important;
visibility: visible !important; opacity: 1 !important;
background-color: #D0D8DC !important;
max-width: none !important; max-height: none !important }
.pfptPrimaryButtonze6rwfr:hover, .pfptPrimaryButtonze6rwfr:focus {
background-color: #b4c1c7 !important; }
.pfptPrimaryButtonze6rwfr:active {
background-color: #90a4ae !important; }
</style>
<!-- BaNnErBlUrFlE-HeAdEr-end -->
<meta charset="utf-8"></head><body><pre style="font-family: sans-serif; font-size: 100%; white-space: pre-wrap; word-wrap: break-word">
On my Mac at configure time I get
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Possible ERROR while running linker: exit code 1
when trying to link a test case against the lapack libraries. I cannot generate an error message showing what error has occurred
> On Mar 30, 2024, at 2:59 PM, Satish Balay <balay@mcs.anl.gov> wrote:
>
> I'll just note - I can reproduce with:
>
> petsc@npro petsc.x % ./configure --download-mpich --download-mumps --download-scalapack && make && make check
>
> And then - the following work fine for me:
>
> petsc@npro petsc.x % ./configure --download-mpich --download-mumps --download-scalapack COPTFLAGS=-O0 FOPTFLAGS=-O0 LDFLAGS=-Wl,-ld_classic && make && make check
> <snip>
> CLINKER arch-darwin-c-debug/lib/libpetsc.3.021.0.dylib
> DSYMUTIL arch-darwin-c-debug/lib/libpetsc.3.021.0.dylib
> =========================================
> Now to check if the libraries are working do:
> make PETSC_DIR=/Users/petsc/petsc.x PETSC_ARCH=arch-darwin-c-debug check
> =========================================
> Running PETSc check examples to verify correct installation
> Using PETSC_DIR=/Users/petsc/petsc.x and PETSC_ARCH=arch-darwin-c-debug
> C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process
> C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes
> C/C++ example src/snes/tutorials/ex19 run successfully with MUMPS
> Fortran example src/snes/tutorials/ex5f run successfully with 1 MPI process
> Completed PETSc check examples
> petsc@npro petsc.x %
>
> petsc@npro petsc.z % ./configure --download-openmpi=<a href="https://urldefense.us/v3/__https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.3rc1.tar.bz2__;!!G_uCfscf7eWS!ZCdX8VX2WwwopcGzGQq5RpwHmqiuIiIb1r4zByAJVKyH9howYTVO-FFqVMGMbc8fUX6bC9Jsln49TEDpvn4TyIo$">https://urldefense.us/v3/__https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.3rc1.tar.bz2__;!!G_uCfscf7eWS!ZCdX8VX2WwwopcGzGQq5RpwHmqiuIiIb1r4zByAJVKyH9howYTVO-FFqVMGMbc8fUX6bC9Jsln49TEDpvn4TyIo$</a> --download-mumps --download-scalapack && make && make check
> <snip>
> DSYMUTIL arch-darwin-c-debug/lib/libpetsc.3.021.0.dylib
> =========================================
> Now to check if the libraries are working do:
> make PETSC_DIR=/Users/petsc/petsc.z PETSC_ARCH=arch-darwin-c-debug check
> =========================================
> Running PETSc check examples to verify correct installation
> Using PETSC_DIR=/Users/petsc/petsc.z and PETSC_ARCH=arch-darwin-c-debug
> C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process
> C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes
> C/C++ example src/snes/tutorials/ex19 run successfully with MUMPS
> Fortran example src/snes/tutorials/ex5f run successfully with 1 MPI process
> Completed PETSc check examples
> petsc@npro petsc.z %
>
> [however parmmg and pastix are failing to build with openmpi]
>
> And I thought this worked for me yesterday - but I see failures now.
>
> ./configure --download-bison --download-chaco --download-ctetgen --download-eigen --download-fftw --download-hdf5 --download-hpddm --download-hwloc --download-hwloc-configure-arguments=--disable-opencl --download-hypre --download-libpng --download-metis --download-mmg --download-mpich --download-mpich-configure-arguments=--disable-opencl --download-mumps --download-netcdf --download-openblas --download-openblas-make-options="'USE_THREAD=0 USE_LOCKING=1 USE_OPENMP=0'" --download-parmmg --download-pastix --download-pnetcdf --download-pragmatic --download-ptscotch --download-scalapack --download-slepc --download-suitesparse --download-superlu_dist --download-tetgen --download-triangle --with-c2html=0 --with-debugging=1 --with-fortran-bindings=0 --with-shared-libraries=1 --with-x=0 --with-zlib --COPTFLAGS=-O0 --FOPTFLAGS=-O0 --LDFLAGS=-Wl,-ld_classic --with-clean
>
> Satish
>
> On Sat, 30 Mar 2024, Barry Smith wrote:
>
>>
>> Can you check the value of IRHSCOMP in the debugger? Using gdb as the debugger may work better for this.
>>
>> Barry
>>
>>
>>> On Mar 30, 2024, at 3:46 AM, zeyu xia <xiazeyu01@gmail.com> wrote:
>>>
>>> This Message Is From an External Sender
>>> This message came from outside your organization.
>>> Hi! Thanks for your reply.
>>>
>>> There still exist some problems, as seen in the files 'configure.log', 'make check3.txt', and 'debug.txt' in the attachment. Particularly, the file 'debug.txt' contains the output of bt command of lldb.
>>>
>>> Thanks for your attention.
>>>
>>> Best regards,
>>> Zeyu Xia
>>>
>>>
>>> Satish Balay <balay@mcs.anl.gov <mailto:balay@mcs.anl.gov>> 于2024年3月30日周六 02:52写道:
>>>> I'm able to reproduce this error on a slightly older xcode [but don't know why this issue comes up]
>>>>
>>>>> Apple clang version 15.0.0 (clang-1500.1.0.2.5)
>>>>
>>>> Can you try using the additional configure options (along with LDFLAGS=-Wl,-ld_classic) and see if it works?
>>>>
>>>> COPTFLAGS=-O0 FOPTFLAGS=-O0
>>>>
>>>> Satish
>>>>
>>>> On Fri, 29 Mar 2024, zeyu xia wrote:
>>>>
>>>>> Hi! I am grateful for your prompt response.
>>>>>
>>>>> I follow your suggestions, and however, it still does not work. For the
>>>>> related information please find the files 'make check2.txt' and
>>>>> 'configure.log' in the attachment.
>>>>>
>>>>> If possible, please do me a favor again. Thanks for your patience.
>>>>>
>>>>> Best wishes,
>>>>> Zeyu Xia
>>>>>
>>>>>
>>>>> Satish Balay <balay@mcs.anl.gov <mailto:balay@mcs.anl.gov>> 于2024年3月29日周五 23:48写道:
>>>>>
>>>>>> Could you:
>>>>>>
>>>>>> - reinstall brew after the xcode upgrade (not just update)
>>>>>> <a href="https://urldefense.us/v3/__https://petsc.org/main/install/install/*installing-on-macos__;Iw!!G_uCfscf7eWS!dGItos-D58VSJn4kOlKy2TEX-PWhflbWfNuM0zqhEXbGniD5S13iWCxgBmg9wYk4OrSwaP6jjzANIHN1ZHATKXE$
>>>>>>">https://urldefense.us/v3/__https://petsc.org/main/install/install/*installing-on-macos__;Iw!!G_uCfscf7eWS!dGItos-D58VSJn4kOlKy2TEX-PWhflbWfNuM0zqhEXbGniD5S13iWCxgBmg9wYk4OrSwaP6jjzANIHN1ZHATKXE$
>>>>>></a>- not use --LDFLAGS=-Wl,-ld_classic
>>>>>>
>>>>>> And see if the problem persists?
>>>>>>
>>>>>> Satish
>>>>>>
>>>>>> On Fri, 29 Mar 2024, zeyu xia wrote:
>>>>>>
>>>>>>> Dear PETSc team:
>>>>>>>
>>>>>>> Recently I installed firedrake on MacOS (arm64) with the latest
>>>>>>> Xcode, and there seems some error with mumps. I ran two times of the
>>>>>>> command `make check`. The first time it just output wrong results, and
>>>>>> the
>>>>>>> second time it raised an error with Segmentation Violation. Please see
>>>>>> the
>>>>>>> files “make check.txt” and “configure.log” in the attachment.
>>>>>>>
>>>>>>> I will certainly be happy and grateful if you can take some time
>>>>>> to
>>>>>>> deal with this problem. Thanks for your patience.
>>>>>>>
>>>>>>> Best wishes,
>>>>>>> Zeyu Xia
>>>>>>>
>>>>>>
>>>>>
>>> <make check3.txt><configure.tar.gz><debug.txt>
>>
</pre></body></html>