[petsc-users] petsc-users Digest, Vol 200, Issue 3
Barry Smith
bsmith at petsc.dev
Thu Aug 7 20:09:07 CDT 2025
Please send (cut and paste) all the output of
make ex5f (should succeed)
and
make "your code"
we need to see the exact calls for both codes and the exact error message.
> On Aug 5, 2025, at 12:44 AM, kiran hegde <kiranhegde75 at gmail.com> wrote:
>
> Hi,
>
> Sorry, the tutorial case run succeeded. No errors reported. When i used the makefile file flags in my code, my code is still reported error.
>
> Regards,
>
> Kiran Hegde
> Mobile:+91 9972600235
>
> On Tue, Aug 5, 2025, 6:11 AM Barry Smith <bsmith at petsc.dev <mailto:bsmith at petsc.dev>> wrote:
>>
>> "I have tried the options ex5f, but getting the same error."
>>
>> So you did
>>
>> cd src/snes/tutorials/
>> make ex5f
>>
>> and got some errors? Please cut and paste all the output from make ex5f and sent it here.
>>
>>
>>
>>> On Aug 4, 2025, at 11:15 AM, kiran hegde <kiranhegde75 at gmail.com <mailto:kiranhegde75 at gmail.com>> wrote:
>>>
>>> Hi Satish,
>>>
>>> I have tried the options ex5f, but getting the same error.
>>> The code was running without any issues long back and I was using petsc ver 3.9 using gcc 12.X.X.
>>> My makefile flags are :
>>>
>>> FFLAGS = -march=native -O3 -pipe -ffree-form -cpp -ffree-line-length-none \
>>> -Wall -Wextra -Wtabs -Wintrinsics-std -Wsurprising -Waliasing \
>>> -Wno-unused-parameter -Wno-unused-dummy-argument \
>>> -D$(MODEL) \
>>> -DVERSION=\"$(GIT_VERSION)\" \
>>> -I$(PETSC_DIR)/include
>>> FPPFLAGS = -cpp -E -dM -C -P -D$(MODEL)
>>> LDFLAGS = -lpetsc -L$(PETSC_DIR)/lib
>>> LDFLAGS += -Wl,-rpath=$(PETSC_DIR)/lib
>>>
>>> Have i missed anything?
>>>
>>>
>>> Regards,
>>> Kiran
>>>
>>>
>>>
>>>
>>> On Sun, Aug 3, 2025 at 9:56 PM Satish Balay <balay.anl at fastmail.org <mailto:balay.anl at fastmail.org>> wrote:
>>>> On Sun, 3 Aug 2025, kiran hegde wrote:
>>>>
>>>> > Hi,
>>>> >
>>>> > Please find the attached configure.log file.
>>>> > PETSC installation successfully completes with make check, without any
>>>> > error.
>>>> > But, when compiling fortan codes with petsc library+include in the
>>>> > makefile i get this error.
>>>>
>>>> Then likely your compile command is missing some options. you can:
>>>>
>>>> - compile a petsc example - say:
>>>> cd src/snes/tutorials
>>>> make ex5f
>>>>
>>>> - now compile your application
>>>>
>>>> - And compare the compile commands and see if there are any differences (missing options, wrong order of include files etc..)
>>>>
>>>> Satish
>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Kiran Hegde
>>> Mobile:+91 9972600235
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250807/fe4b91a6/attachment.html>
More information about the petsc-users
mailing list