<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Hi,</div>
<div class=""><br class="">
</div>
<div class="">I am having the following warning when compiling any fortran example (currently on main, but  it’s been going on for a little while) on a ARM mac.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">*******************Error detected during compile or link!*******************</div>
See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" class="">http://www.mcs.anl.gov/petsc/documentation/faq.html</a><br class="">
/opt/HPC/petsc-main/src/snes/tutorials ex5f<br class="">
*********************************************************<br class="">
mpif90 -Wl,-bind_at_load -Wl,-multiply_defined,suppress -Wl,-multiply_defined -Wl,suppress -Wl,-commons,use_dylibs -Wl,-search_paths_first -Wl,-no_compact_unwind -ffree-line-length-none -fallow-argument-mismatch -fPIC -g   -ffree-line-length-none -fallow-argument-mismatch
 -fPIC -g    -I/opt/HPC/petsc-main/include -I/opt/HPC/petsc-main/bigsur-gcc10.2-arm64-reallybasic-g/include -I/opt/X11/include     ex5f.F90  -Wl,-rpath,/opt/HPC/petsc-main/bigsur-gcc10.2-arm64-reallybasic-g/lib -L/opt/HPC/petsc-main/bigsur-gcc10.2-arm64-reallybasic-g/lib
 -Wl,-rpath,/opt/X11/lib -L/opt/X11/lib -Wl,-rpath,/opt/homebrew/Cellar/mpich/3.4.1_2/lib -L/opt/homebrew/Cellar/mpich/3.4.1_2/lib -Wl,-rpath,/opt/homebrew/Cellar/gcc/10.2.0_4/lib/gcc/10/gcc/aarch64-apple-darwin20/10.2.1 -L/opt/homebrew/Cellar/gcc/10.2.0_4/lib/gcc/10/gcc/aarch64-apple-darwin20/10.2.1
 -Wl,-rpath,/opt/homebrew/Cellar/gcc/10.2.0_4/lib/gcc/10 -L/opt/homebrew/Cellar/gcc/10.2.0_4/lib/gcc/10 -lpetsc -llapack -lblas -lX11 -lc++ -ldl -lmpifort -lmpi -lpmpi -lgfortran -lemutls_w -lm -lc++ -ldl -o ex5f<br class="">
<font color="#ff2600" class="">warning: (arm64)  could not find object file symbol for symbol ___muldc3<br class="">
</font>Fortran example src/snes/tutorials/ex5f run successfully with 1 MPI process<br class="">
<br class="">
<div class=""><br class="">
</div>
<div class="">For reference, here is how I configured petsc:</div>
<div class="">./configure     --CFLAGS='-Wimplicit-function-declaration'    --FFLAGS="-ffree-line-length-none -fallow-argument-mismatch"            --with-debugging=1                    --with-shared-libraries=1             --with-x11=1</div>
<div class=""><br class="">
</div>
<div class="">It looks like this symbol is referenced in: sfpack.o</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">SiMini</b>:petsc-main (main)$ grep -ri muldc3 bigsur-gcc10.2-arm64-reallybasic-g/*</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Binary file bigsur-gcc10.2-arm64-reallybasic-g/lib/libpetsc.3.015.0.dylib matches</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Binary file bigsur-gcc10.2-arm64-reallybasic-g/lib/libpetsc.3.015.dylib matches</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">bigsur-gcc10.2-arm64-reallybasic-g/lib/petsc/conf/check.log:warning: (arm64)  could not find object file symbol for symbol ___muldc3</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Binary file bigsur-gcc10.2-arm64-reallybasic-g/lib/libpetsc.dylib matches</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Binary file bigsur-gcc10.2-arm64-reallybasic-g/obj/vec/is/sf/impls/basic/sfpack.o matches</span></div>
</div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">SiMini</b>:petsc-main (main)$ nm bigsur-gcc10.2-arm64-reallybasic-g/obj/vec/is/sf/impls/basic/sfpack.o | grep muldc3</span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                 U ___muldc3</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Any idea?</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Blaise</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
</span></div>
<div class="">-- <br class="">
A.K. & Shirley Barton Professor of  Mathematics<br class="">
Adjunct Professor of Mechanical Engineering<br class="">
Adjunct of the Center for Computation & Technology<br class="">
Louisiana State University, Lockett Hall Room 344, Baton Rouge, LA 70803, USA<br class="">
Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276 Web <a href="http://www.math.lsu.edu/~bourdin" class="">http://www.math.lsu.edu/~bourdin</a></div>
<br class="">
</body>
</html>