[petsc-dev] libpetsc.so: undefined references

Matthew Knepley knepley at gmail.com
Sat Oct 2 12:46:09 CDT 2021


On Sat, Oct 2, 2021 at 12:14 PM Antonio T. sagitter <
sagitter at fedoraproject.org> wrote:

> Yes, i noted. Previous PETSc's versions worked with that flag, but the
> 3.16.0 no longer.
>

Antonio, you are correct. I added support for C++ demangling in viewer
output, but my configure check was
inadequate. I did not manage to fix this by release time. I will have it
fixed in the next point release.

  Thanks,

     Matt


> On 10/2/21 17:48, Stefano Zampini wrote:
> > The issue is that you have --with-cxxlib-autodetect=0 in your configure
> > log, so PETSc skip appending lstdc++ to the list of libraries used to
> > link the shared library.
> > If you don't care, just remove the configure flag
> >
>
> I'm removing '-std=[c/gnu]++17'
>
> On 10/2/21 17:38, Jacob Faibussowitsch wrote:
>  > Can you try the following?
>  >
>  > In $PETSC_DIR/$PETSC_ARCH/lib/petsc/conf/petscvariables there are two
>  > variables, PETSC_EXTERNAL_LIB_BASIC and PETSC_WITH_EXTERNAL_LIB. Append
>  > -lstdc++ to both of them and re-run your make command with verbose
> output:
>  >
>  > $ make all V=1
>  > $ make check
>  >
>  > P.S. There is no longer a need to set -std=[c/gnu]++17 in your own
>  > flags; configure will detect up to c++17. For gnu-ish compilers
>  > (gcc/clang) it will try to use gnu extensions — in fact if you search
>  > for ‘checkCxxDialect' in you configure.log, you’ll see it appropriately
>  > selects gnu++17.
>  >
>
> Thank you all.
> --
> ---
> Antonio Trande
> Fedora Project
> mailto: sagitter at fedoraproject.org
> GPG key: 0x29FBC85D7A51CC2F
> GPG key server: https://keyserver1.pgp.com/
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20211002/e368bd8a/attachment.html>


More information about the petsc-dev mailing list