<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=""><br class=""></div><div class=""> Blaise,</div><div class=""><br class=""></div> Thanks, can you try cd src/snes/tutorials and then cut and paste the huge line that you sent earlier that begins with mpif90 -Wl,-bind_at_load ..... and add at the end -lgcc and see if that line successfully links the Fortran code?<div class=""><br class=""></div><div class=""> Thanks</div><div class=""><br class=""></div><div class=""> Barry</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 6, 2021, at 12:22 PM, Blaise A Bourdin <<a href="mailto:bourdin@lsu.edu" class="">bourdin@lsu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;">Hi Barry,<div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; line-break: after-white-space;"><div class=""><br class=""></div> Please send configure.log </div></div></blockquote>See attached</div><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; line-break: after-white-space;"><div class=""><br class=""></div><div class=""> It would also be helpful if you could run </div><div class=""><br class=""></div><div class=""> nm -o /usr/lib/lib* | grep <span class="" style="font-family: "Fira Code";">muldc3 </span></div></div></div></blockquote><div class=""><br class=""></div><div class="">That is uneventful (I have no idea how these broken symbolic link got there and can’t delete them because of SIP)…</div><div class=""><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;"><b class="">SiMini</b>:lib $ nm -o /usr/lib/lib* | grep muldc3 </span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm:<span class="Apple-converted-space"> </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(180, 36, 25);"><b class="">error:<span class="Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/lib/libhunspell-1.2.0.dylib: No such file or directory.</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm:<span class="Apple-converted-space"> </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(180, 36, 25);"><b class="">error:<span class="Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/lib/libhunspell-1.2.dylib: No such file or directory.</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm:<span class="Apple-converted-space"> </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(180, 36, 25);"><b class="">error:<span class="Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/lib/libiodbc.2.dylib: No such file or directory.</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm:<span class="Apple-converted-space"> </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(180, 36, 25);"><b class="">error:<span class="Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/lib/libiodbc.dylib: No such file or directory.</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm:<span class="Apple-converted-space"> </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(180, 36, 25);"><b class="">error:<span class="Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/lib/libiodbcinst.2.dylib: No such file or directory.</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm:<span class="Apple-converted-space"> </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(180, 36, 25);"><b class="">error:<span class="Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/lib/libiodbcinst.dylib: No such file or directory.</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm:<span class="Apple-converted-space"> </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(180, 36, 25);"><b class="">error:<span class="Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/lib/libstdc++.6.dylib: No such file or directory.</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm:<span class="Apple-converted-space"> </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(180, 36, 25);"><b class="">error:<span class="Apple-converted-space"> </span></b></span><span class="" style="font-variant-ligatures: no-common-ligatures;">/usr/lib/libstdc++.dylib: No such file or directory.</span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;">Blaise</span></div><div class=""></div></div></div></div></div><div class="" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;"><div class=""><div class=""><div class=""><div class=""></div><div class=""><br class=""></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div></div><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; line-break: after-white-space;"><div class=""><br class=""></div><div class=""> Our cross language linker tests are not adding all the libraries they need to add when using Fortran for linking.</div><div class=""><br class=""></div><div class=""> Barry</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Apr 6, 2021, at 11:00 AM, Matthew Knepley <<a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:</div><br class="x_Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">On Tue, Apr 6, 2021 at 11:04 AM Blaise A Bourdin <<a href="mailto:bourdin@lsu.edu" class="">bourdin@lsu.edu</a>> wrote:<br class=""></div><div class="x_gmail_quote"><blockquote class="x_gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div 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<span class="Apple-converted-space"> </span><a href="https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.mcs.anl.gov%2Fpetsc%2Fdocumentation%2Ffaq.html&data=04%7C01%7Cbourdin%40lsu.edu%7C1caa897a3d29406a847a08d8f91e2437%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C637533255143763999%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=jUhAyI70WckpP44KmDOnEFll%2FU4LAJXxjShso6agevU%3D&reserved=0" originalsrc="http://www.mcs.anl.gov/petsc/documentation/faq.html" shash="ax+5sTEI7IMGS1nTlbODmLXQdY8MvkdZecYSvOzFoF2YDxxOuGezzfEvYVC0v13o/9nUPU2WSsmm9uPXZAoa/fdPXbZo+gxSn78du77Ev+Kf2lxPc7I43NUXSiI3N/euyXo/RENdrH6lAMbORiHK8C+hrWRvLaUFBmCBbMRpxfc=" target="_blank" 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 </font><span class="" style="font-family: "Fira Code"; font-variant-ligatures: no-common-ligatures;">muldc3</span><font color="#ff2600" class=""><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 class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;"><b class="">SiMini</b>:petsc-main (main)$ grep -ri muldc3 bigsur-gcc10.2-arm64-reallybasic-g/*</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">Binary file bigsur-gcc10.2-arm64-reallybasic-g/lib/libpetsc.3.015.0.dylib matches</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">Binary file bigsur-gcc10.2-arm64-reallybasic-g/lib/libpetsc.3.015.dylib matches</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">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 class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">Binary file bigsur-gcc10.2-arm64-reallybasic-g/lib/libpetsc.dylib matches</span></div><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;">Binary file bigsur-gcc10.2-arm64-reallybasic-g/obj/vec/is/sf/impls/basic/sfpack.o matches</span></div></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><div class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;"><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 class="" style="margin: 0px; font-stretch: normal; line-height: normal; font-family: "Fira Code";"><span class="" style="font-variant-ligatures: no-common-ligatures;"> U ___muldc3</span></div></span></div></div></blockquote><div class=""><br class=""></div><div class="">Google tells me it is a gcc thing for complex multiplication. Ah, I think this is the problem:</div><div class=""><br class=""></div><div class=""> <a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.mcs.anl.gov%2Fpipermail%2Fmpich-discuss%2F2012-August%2F012920.html&data=04%7C01%7Cbourdin%40lsu.edu%7C1caa897a3d29406a847a08d8f91e2437%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C637533255143773979%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=iLqpods%2FmSEBegdedaR6yWdR3ZZlDqjG%2Fz3195gQOas%3D&reserved=0" originalsrc="https://lists.mcs.anl.gov/pipermail/mpich-discuss/2012-August/012920.html" shash="KThTAPvu3qHNWEBmVY91vFZxv9N2PLbbTmpKtTCD0+zf8+tzduHEmzI3pzhq3ryXx4p7fg9gCQcSrNJMbELyH/MZ4FZw0o+AfunsuX/lyP9v5rtjBVYV3hWz7JWLjE39fPMShYMCeZlqAAiAxYzwI4QEeh9X5jx/XvkV1FT71TE=" class="">https://lists.mcs.anl.gov/pipermail/mpich-discuss/2012-August/012920.html</a></div><div class=""><br class=""></div><div class="">It is in the C library and you are linking from Fortran, so the compatibility libraries are not correct.</div><div class=""><br class=""></div><div class=""> Thanks,</div><div class=""><br class=""></div><div class=""> Matt</div><div class=""> </div><blockquote class="x_gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div class=""><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;">Any idea?</span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;">Blaise</span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class=""><span class="" style="font-variant-ligatures: no-common-ligatures;"><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" target="_blank" class="">http://www.math.lsu.edu/~bourdin</a></div><br class=""></div></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div dir="ltr" class="x_gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener</div><div class=""><br class=""></div><div class=""><a href="https://nam04.safelinks.protection.outlook.com/?url=http:%2F%2Fwww.cse.buffalo.edu%2F~knepley%2F&data=04%7C01%7Cbourdin%40lsu.edu%7C1caa897a3d29406a847a08d8f91e2437%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C637533255143773979%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2FiiOZhkY8XtRtWjkhddZhf9dUHf06c%2BtbEfcYueecbI%3D&reserved=0" originalsrc="http://www.cse.buffalo.edu/~knepley/" shash="fSc8hg81wqMOPYMBFXAvTCA4eCleyQENo3W4XEIZOrJ7+aH0KsGBhHKsN2Oe8vYKo+eSqZVarSbkgoz2Ow/1yjjv7fwHAx16l3cd24f6fVnoaC44jpD7khT4yBiZLaJlGZfDAB35zdR/z7YLT3kR/DH5b5K2NFqrmKT7456o/bg=" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class=""></div></div></div></div></div></div></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""><div class=""><div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;"><div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;"><div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;"><span class="x_Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-east-asian: normal; line-height: normal; border-spacing: 0px;"><div class="" style="word-wrap: break-word; line-break: after-white-space;"><span class="x_Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px;"><div class="" style="word-wrap: break-word; line-break: after-white-space;"><span class="x_Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px;"><div class="" style="word-wrap: break-word; line-break: after-white-space;"><span class="x_Apple-style-span" style="border-collapse: separate; border-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;"><div class="" style="word-wrap: break-word; line-break: after-white-space;"><div class="" style="margin: 0px;">-- </div><div class="" style="margin: 0px;">A.K. & Shirley Barton Professor of Mathematics</div><div class="" style="margin: 0px;">Adjunct Professor of Mechanical Engineering</div><div class="" style="margin: 0px;">Adjunct of the Center for Computation & Technology</div><div class="" style="margin: 0px;">Louisiana State University, <span class="">Lockett Hall Room 344, </span><span class="">Baton Rouge, LA 70803, USA</span></div><div class="" style="margin: 0px;"><span class="">Tel. +1 (225) 578 1612, Fax +1 (225) 578 4276 Web </span><span class=""><a href="http://www.math.lsu.edu/~bourdin" class="">http://www.math.lsu.edu/~bourdin</a></span></div></div></span></div></span></div></span></div></span></div></div></div></div><br class=""></div></div><span id="cid:CB72AC8B60511146987B3120C2E8A695@namprd06.prod.outlook.com"><configure.log></span></div></blockquote></div><br class=""></div></div></body></html>