[petsc-dev] libpetsc.so: undefined references
Antonio T. sagitter
sagitter at fedoraproject.org
Sat Oct 2 11:14:39 CDT 2021
Yes, i noted. Previous PETSc's versions worked with that flag, but the
3.16.0 no longer.
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x29FBC85D7A51CC2F.asc
Type: application/pgp-keys
Size: 4212 bytes
Desc: OpenPGP public key
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20211002/b3927b33/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20211002/b3927b33/attachment-0001.sig>
More information about the petsc-dev
mailing list