[petsc-users] Question about correctly catching fp_trap
Sajid Ali
sajidsyed2021 at u.northwestern.edu
Fri Jan 4 11:57:24 CST 2019
I asked in the spack-slack channel and was told to include the explicitly
link the gfortran associated with the gcc version I build petsc with.
Following that advice, I'm using gcc at 7.3.0, linking gcc at 7.3.0/lib64 in
FFLAGS and setting -g option to CFLAGS in my makefile.
Yet, somehow the executable still picks up the system gfortran (It picks
both libgfortran.so.4 and libgfortran.so.3). Anything else I missed trying?
PS: My makefile looks like this:
[sajid at xrm free_space]$ cat makefile
ALL:
CFLAGS = -g
FFLAGS =
-L/raid/home/sajid/packages/spack/opt/spack/linux-rhel7-x86_64/gcc-4.8.5/gcc-7.3.0-qrjpi76aeo4bysagruwwfii6oneh56lj/lib64/
CPPFLAGS =
FPPFLAGS =
CLEANFILES = ex_matlab
include ${PETSC_DIR}/lib/petsc/conf/variables
include ${PETSC_DIR}/lib/petsc/conf/rules
# your targets if any
include ${PETSC_DIR}/lib/petsc/conf/test
I've looked into the superludist and can confirm that it is indeed linked
to the system gfortran due to it's build error and since it's a petsc
dependency, it might be that this is where the system gfortran is coming in
instead of the newer gfortran associated with gcc-7.3.0 but I'm not sure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190104/da959a42/attachment.html>
More information about the petsc-users
mailing list