<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div><div>   "I have tried the options ex5f, but getting the same error."</div><div><br>   So you did </div><div><br></div><div>    cd src/snes/tutorials/</div><div>    make ex5f</div><div><br></div><div>    and got some errors? Please cut and paste all the output from make ex5f and sent it here.</div><div><br></div><div><br></div><div><br><blockquote type="cite"><div>On Aug 4, 2025, at 11:15 AM, kiran hegde <kiranhegde75@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr"><div>Hi Satish,</div><div><br></div><div>I have tried the options ex5f, but getting the same error.</div><div>The code was running without any issues long back and I was using  petsc ver 3.9 using gcc 12.X.X.</div><div>My makefile flags are :</div><div><br></div><div>FFLAGS = -march=native -O3 -pipe -ffree-form -cpp -ffree-line-length-none \<br>                        -Wall -Wextra -Wtabs -Wintrinsics-std -Wsurprising -Waliasing \<br>                        -Wno-unused-parameter -Wno-unused-dummy-argument \<br>                        -D$(MODEL) \<br>                        -DVERSION=\"$(GIT_VERSION)\" \<br>                        -I$(PETSC_DIR)/include<br>FPPFLAGS = -cpp -E -dM -C -P -D$(MODEL)<br>LDFLAGS = -lpetsc -L$(PETSC_DIR)/lib</div><div>LDFLAGS += -Wl,-rpath=$(PETSC_DIR)/lib</div><div><br></div><div>Have i missed anything? </div><div><br></div><div><br></div><div>Regards,</div><div>Kiran</div><div><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Aug 3, 2025 at 9:56 PM Satish Balay <<a href="mailto:balay.anl@fastmail.org">balay.anl@fastmail.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 3 Aug 2025, kiran hegde wrote:<br>
<br>
> Hi,<br>
> <br>
> Please find the attached configure.log file.<br>
> PETSC installation successfully completes with make check, without any<br>
> error.<br>
> But, when compiling fortan codes with   petsc  library+include in the<br>
> makefile i get this error.<br>
<br>
Then likely your compile command is missing some options. you can:<br>
<br>
- compile a petsc example - say:<br>
cd src/snes/tutorials<br>
make ex5f<br>
<br>
- now compile your application<br>
<br>
- And compare the compile commands and see if there are any differences (missing options, wrong order of include files etc..)<br>
<br>
Satish<br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Regards,<br><br>Kiran Hegde<br>Mobile:+91 9972600235<br></div></div></div>
</div></blockquote></div><br></body></html>